This is a cloud app written in nodeJS that is to be deployed in a push project in RHMAP. The app will serve as the backend of the RHMAP-push-test-suite that performs integration tests against the UPS in order to stress the server and detect performance issues.
Install all dependencies and start it by running:
$ npm install && npm start
You should be able to see if it's running by opening http://localhost:8001.
Create a node Cloud App inside your project and push this code to its git repository (git link in Details section), then simply deploy the app (In Deploy section). Remember to select a node version greater than or equal to 4.4.
Use this alongside with rhmap-push-test-driver.
In order to authenticate a mobile app that is to send a notification, its pushApplicationID and masterSecret must be stored in a dictionary-like JSON file named app-auth.json
.
The format is like this:
{
"<appId>": {
"pushApplicationID": "<pushApplicationID>",
"masterSecret": "<masterSecret>"
},
"<appId2>": {
"pushApplicationID": "<pushApplicationID2>",
"masterSecret": "<masterSecret2>"
},
}
Note: this is only necessary when using the push/ups routes.