Skip to content

Cloud App project for testing $fh.push with various options and express routes

License

Notifications You must be signed in to change notification settings

feedhenry/rhmap-push-test-cloud-app

Repository files navigation

Cloud App for Stress Testing UPS integrated in RHMAP

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.

Usage

Local

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.

RHMAP

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.

APP authentication

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.

About

Cloud App project for testing $fh.push with various options and express routes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published