CloudServices/Roadmaps/SimplePush-Server: Difference between revisions

Line 64: Line 64:


==Test Framework==
==Test Framework==
A simple module test framework is provided in the ./mod_test directory. This tests the active server by
* connecting as a websocket,
* issuing a "hello" as UAID "test",
* registering a "test1" ChannelID,
* Sending a PUT request to the returned endpoint URL
* Monitoring the websocket for an update for the "test1" ChannelID
* Unregistering the "test1" ChannelID
* Tearing down the websocket connection
A module test approach was preferred since unit tests would require too much mock work to provide meaningful tests.
This framework should be extended to include negative tests.
=Security and Privacy=
=Security and Privacy=
Fill out the security & privacy bug template: https://bugzilla.mozilla.org/form.moz-project-review
Fill out the security & privacy bug template: https://bugzilla.mozilla.org/form.moz-project-review
Confirmed users
1,018

edits