h3. What
(Re)start the UPS server with FCM endpoint override to mockbackend (e.g. Wiremock)
h3. Why
For stress-testing we should not talk directly to FCM, but against some other mock tool, like wiremock
h3. How
There are two ways of doing this: * In the $JBOSS/standalone/config/standalone-full.xml file, provide a System property, with the right URL to the mock system : {code} ... </extensions>
<system-properties> <property name="custom.aerogear.fcm.push.host" value="http://URL_OF_MY_WIREMOCK"/> </system-properties> {code}
* provide system property on the command line, when starting the server: {code} /JBOSS_HOME/bin/standalone.sh -b 0.0.0.0 --server-config=standalone-full.xml -Dcustom.aerogear.fcm.push.host=http://URL_OF_MY_WIREMOCK {code}
h3. Result/Verification
Calls are not going to FCM, but to our mockbackend |
|