Skip to content

Commit

Permalink
gundeck: integration test docs (#2754)
Browse files Browse the repository at this point in the history
* services/gundeck: move appName closer to where it's used

* services/gundeck: document SNS Platform Application requirements
  • Loading branch information
flokli authored Oct 10, 2022
1 parent 9d1847c commit 1db0a1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/gundeck-integration-test-docs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Documentation on what SNS platform applications the gundeck integration test expects was added.
10 changes: 7 additions & 3 deletions services/gundeck/test/integration/API.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ import Util (runRedisProxy, withSettingsOverrides)
import Wire.API.Internal.Notification
import qualified Prelude

appName :: AppName
appName = AppName "test"

tests :: IO TestSetup -> TestTree
tests s =
testGroup
Expand Down Expand Up @@ -736,6 +733,10 @@ testUnregisterClient = do

-----------------------------------------------------------------------------
-- Native push token registration
-- This expects the following SNS Platform applications to be present in AWS:

-- ${env}-test (FCM), ${env}-test (APNS_SANDBOX), ${env}-com.wire.ent (APNS_SANDBOX),
-- with ${env} normally being integration.

testRegisterPushToken :: TestM ()
testRegisterPushToken = do
Expand Down Expand Up @@ -1121,6 +1122,9 @@ buildPush sdr rcps pload =
where
rcpt u c = recipient u RouteAny & recipientClients .~ c

appName :: AppName
appName = AppName "test"

data TokenSpec = TokenSpec {trans :: Transport, tSize :: Int, tName :: AppName}

gcmToken :: TokenSpec
Expand Down

0 comments on commit 1db0a1a

Please sign in to comment.