Skip to content

Commit 9fb0a05

Browse files
committed
Remove bogus name in pattern matches
1 parent 3afa5bc commit 9fb0a05

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

integration/test/Test/Spar/MultiIngressIdp.hs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ testMultiIngressIdpSimpleCase = do
4747
void $ setTeamFeatureStatus owner tid "sso" "enabled"
4848

4949
-- Create IdP for one domain
50-
SAML.SampleIdP idpmeta _pCreds _ _ <- SAML.makeSampleIdPMetadata
50+
SAML.SampleIdP idpmeta _ _ _ <- SAML.makeSampleIdPMetadata
5151
idpId <-
5252
createIdpWithZHost owner (Just ernieZHost) idpmeta `bindResponse` \resp -> do
5353
resp.status `shouldMatchInt` 201
@@ -89,7 +89,7 @@ testUnconfiguredDomain = forM_ [Nothing, Just kermitZHost] $ \unconfiguredZHost
8989
(owner, tid, _) <- createTeam domain 1
9090
void $ setTeamFeatureStatus owner tid "sso" "enabled"
9191

92-
SAML.SampleIdP idpmeta1 _pCreds _ _ <- SAML.makeSampleIdPMetadata
92+
SAML.SampleIdP idpmeta1 _ _ _ <- SAML.makeSampleIdPMetadata
9393
idpId1 <-
9494
createIdpWithZHost owner (Just ernieZHost) idpmeta1 `bindResponse` \resp -> do
9595
resp.status `shouldMatchInt` 201
@@ -115,7 +115,7 @@ testUnconfiguredDomain = forM_ [Nothing, Just kermitZHost] $ \unconfiguredZHost
115115
resp.jsonBody %. "extraInfo.domain" `shouldMatch` ernieZHost
116116

117117
-- Create unconfigured -> no multi-ingress domain
118-
SAML.SampleIdP idpmeta2 _pCreds _ _ <- SAML.makeSampleIdPMetadata
118+
SAML.SampleIdP idpmeta2 _ _ _ <- SAML.makeSampleIdPMetadata
119119
idpId2 <-
120120
createIdpWithZHost owner (unconfiguredZHost) idpmeta2 `bindResponse` \resp -> do
121121
resp.status `shouldMatchInt` 201
@@ -127,7 +127,7 @@ testUnconfiguredDomain = forM_ [Nothing, Just kermitZHost] $ \unconfiguredZHost
127127
resp.jsonBody %. "extraInfo.domain" `shouldMatch` Null
128128

129129
-- Create a second unconfigured -> no multi-ingress domain
130-
SAML.SampleIdP idpmeta3 _pCreds _ _ <- SAML.makeSampleIdPMetadata
130+
SAML.SampleIdP idpmeta3 _ _ _ <- SAML.makeSampleIdPMetadata
131131
idpId3 <-
132132
createIdpWithZHost owner (unconfiguredZHost) idpmeta3 `bindResponse` \resp -> do
133133
resp.status `shouldMatchInt` 201
@@ -202,51 +202,51 @@ testNonMultiIngressSetupsCanHaveMoreIdPsPerDomain = do
202202
void $ setTeamFeatureStatus owner tid "sso" "enabled"
203203

204204
-- With Z-Host header
205-
SAML.SampleIdP idpmeta1 _pCreds _ _ <- SAML.makeSampleIdPMetadata
205+
SAML.SampleIdP idpmeta1 _ _ _ <- SAML.makeSampleIdPMetadata
206206
idpId1 <-
207207
createIdpWithZHost owner (Just ernieZHost) idpmeta1 `bindResponse` \resp -> do
208208
resp.status `shouldMatchInt` 201
209209
resp.jsonBody %. "extraInfo.domain" `shouldMatch` Null
210210
resp.jsonBody %. "id" >>= asString
211211

212-
SAML.SampleIdP idpmeta2 _pCreds _ _ <- SAML.makeSampleIdPMetadata
212+
SAML.SampleIdP idpmeta2 _ _ _ <- SAML.makeSampleIdPMetadata
213213
idpId2 <-
214214
createIdpWithZHost owner (Just ernieZHost) idpmeta2 `bindResponse` \resp -> do
215215
resp.status `shouldMatchInt` 201
216216
resp.jsonBody %. "extraInfo.domain" `shouldMatch` Null
217217
resp.jsonBody %. "id" >>= asString
218218

219-
SAML.SampleIdP idpmeta3 _pCreds _ _ <- SAML.makeSampleIdPMetadata
219+
SAML.SampleIdP idpmeta3 _ _ _ <- SAML.makeSampleIdPMetadata
220220
updateIdpWithZHost owner (Just ernieZHost) idpId1 idpmeta3 `bindResponse` \resp -> do
221221
resp.status `shouldMatchInt` 200
222222
resp.jsonBody %. "extraInfo.domain" `shouldMatch` Null
223223

224-
SAML.SampleIdP idpmeta4 _pCreds _ _ <- SAML.makeSampleIdPMetadata
224+
SAML.SampleIdP idpmeta4 _ _ _ <- SAML.makeSampleIdPMetadata
225225
updateIdpWithZHost owner (Just ernieZHost) idpId2 idpmeta4 `bindResponse` \resp -> do
226226
resp.status `shouldMatchInt` 200
227227
resp.jsonBody %. "extraInfo.domain" `shouldMatch` Null
228228

229229
-- Without Z-Host header
230-
SAML.SampleIdP idpmeta5 _pCreds _ _ <- SAML.makeSampleIdPMetadata
230+
SAML.SampleIdP idpmeta5 _ _ _ <- SAML.makeSampleIdPMetadata
231231
idpId5 <-
232232
createIdpWithZHost owner Nothing idpmeta5 `bindResponse` \resp -> do
233233
resp.status `shouldMatchInt` 201
234234
resp.jsonBody %. "extraInfo.domain" `shouldMatch` Null
235235
resp.jsonBody %. "id" >>= asString
236236

237-
SAML.SampleIdP idpmeta6 _pCreds _ _ <- SAML.makeSampleIdPMetadata
237+
SAML.SampleIdP idpmeta6 _ _ _ <- SAML.makeSampleIdPMetadata
238238
idpId6 <-
239239
createIdpWithZHost owner Nothing idpmeta6 `bindResponse` \resp -> do
240240
resp.status `shouldMatchInt` 201
241241
resp.jsonBody %. "extraInfo.domain" `shouldMatch` Null
242242
resp.jsonBody %. "id" >>= asString
243243

244-
SAML.SampleIdP idpmeta7 _pCreds _ _ <- SAML.makeSampleIdPMetadata
244+
SAML.SampleIdP idpmeta7 _ _ _ <- SAML.makeSampleIdPMetadata
245245
updateIdpWithZHost owner Nothing idpId5 idpmeta7 `bindResponse` \resp -> do
246246
resp.status `shouldMatchInt` 200
247247
resp.jsonBody %. "extraInfo.domain" `shouldMatch` Null
248248

249-
SAML.SampleIdP idpmeta8 _pCreds _ _ <- SAML.makeSampleIdPMetadata
249+
SAML.SampleIdP idpmeta8 _ _ _ <- SAML.makeSampleIdPMetadata
250250
updateIdpWithZHost owner Nothing idpId6 idpmeta8 `bindResponse` \resp -> do
251251
resp.status `shouldMatchInt` 200
252252
resp.jsonBody %. "extraInfo.domain" `shouldMatch` Null

0 commit comments

Comments
 (0)