Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-6705

Configure UPS server with mock URLs for FCM

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None

      What

      (Re)start the UPS server with FCM endpoint override to mockbackend (e.g. Wiremock)

      Why

      For stress-testing we should not talk directly to FCM, but against some other mock tool, like wiremock

      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:
        ...
        </extensions>
        
        <system-properties>
            <property name="custom.aerogear.fcm.push.host" value="http://URL_OF_MY_WIREMOCK"/>
        </system-properties>
        
      • provide system property on the command line, when starting the server:
        /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
        

      Result/Verification

      Calls are not going to FCM, but to our mockbackend

            Unassigned Unassigned
            mwessend@redhat.com Matthias Wessendorf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: