Skip to content

Commit

Permalink
fix: ACNA-1533 - update integration_type in config.json schema (#520)
Browse files Browse the repository at this point in the history
make enum span multiple lines for easy change tracking
  • Loading branch information
shazron authored Mar 7, 2022
1 parent 511a1b9 commit 9b3be9c
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 1 deletion.
11 changes: 10 additions & 1 deletion schema/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,16 @@
},
"integration_type": {
"type": "string",
"enum": [ "oauthweb", "oauthios", "oauthandroid", "service", "apikey" ]
"enum": [
"oauthweb",
"oauthios",
"oauthandroid",
"service",
"apikey",
"oauthwebapp",
"oauthnativeapp",
"oauthsinglepageapp"
]
},
"oauth2": { "$ref": "#/definitions/oauth2" },
"jwt": { "$ref": "#/definitions/jwt" }
Expand Down
15 changes: 15 additions & 0 deletions test/__fixtures__/existing.merged.aio
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@
"id": "17950",
"name": "New_Test_Intégration_8",
"integration_type": "oauthandroid"
},
{
"id": "17951",
"name": "New_Test_Intégration_9",
"integration_type": "oauthwebapp"
},
{
"id": "17952",
"name": "New_Test_Intégration_10",
"integration_type": "oauthnativeapp"
},
{
"id": "17953",
"name": "New_Test_Intégration_11",
"integration_type": "oauthsinglepageapp"
}
],
"services": [
Expand Down
12 changes: 12 additions & 0 deletions test/__fixtures__/existing.merged.env
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@ AIO_ims_contexts_New__Test__Intégration__8_client__id=XRXRXRXRXRXRXRXRXR
AIO_ims_contexts_New__Test__Intégration__8_client__secret=XRXRXRXRXRXRXRXRXRX
AIO_ims_contexts_New__Test__Intégration__8_redirect__uri=["https://abc123/foo"]
AIO_ims_contexts_New__Test__Intégration__8_defaultRedirectUri=https://abc123/foo
AIO_ims_contexts_New__Test__Intégration__9_client__id=TYTYTYYUTYEWTEWRW
AIO_ims_contexts_New__Test__Intégration__9_client__secret=STWEGSDGEVBEGE
AIO_ims_contexts_New__Test__Intégration__9_redirect__uri=["https://abc123/foo2"]
AIO_ims_contexts_New__Test__Intégration__9_defaultRedirectUri=https://abc123/foo2
AIO_ims_contexts_New__Test__Intégration__10_client__id=XXXTYTYTYYUTYEWTEWRW
AIO_ims_contexts_New__Test__Intégration__10_client__secret=XXXSTWEGSDGEVBEGE
AIO_ims_contexts_New__Test__Intégration__10_redirect__uri=["https://abc123/foo3"]
AIO_ims_contexts_New__Test__Intégration__10_defaultRedirectUri=https://abc123/foo3
AIO_ims_contexts_New__Test__Intégration__11_client__id=YYYYXXXTYTYTYYUTYEWTEWRW
AIO_ims_contexts_New__Test__Intégration__11_client__secret=YYYYXXXSTWEGSDGEVBEGE
AIO_ims_contexts_New__Test__Intégration__11_redirect__uri=["https://abc123/foo4"]
AIO_ims_contexts_New__Test__Intégration__11_defaultRedirectUri=https://abc123/foo4
15 changes: 15 additions & 0 deletions test/__fixtures__/valid.config.aio
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@
"id": "17950",
"name": "New_Test_Intégration_8",
"integration_type": "oauthandroid"
},
{
"id": "17951",
"name": "New_Test_Intégration_9",
"integration_type": "oauthwebapp"
},
{
"id": "17952",
"name": "New_Test_Intégration_10",
"integration_type": "oauthnativeapp"
},
{
"id": "17953",
"name": "New_Test_Intégration_11",
"integration_type": "oauthsinglepageapp"
}
],
"services": [
Expand Down
12 changes: 12 additions & 0 deletions test/__fixtures__/valid.config.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,15 @@ AIO_ims_contexts_New__Test__Intégration__8_client__id=XRXRXRXRXRXRXRXRXR
AIO_ims_contexts_New__Test__Intégration__8_client__secret=XRXRXRXRXRXRXRXRXRX
AIO_ims_contexts_New__Test__Intégration__8_redirect__uri=["https://abc123/foo"]
AIO_ims_contexts_New__Test__Intégration__8_defaultRedirectUri=https://abc123/foo
AIO_ims_contexts_New__Test__Intégration__9_client__id=TYTYTYYUTYEWTEWRW
AIO_ims_contexts_New__Test__Intégration__9_client__secret=STWEGSDGEVBEGE
AIO_ims_contexts_New__Test__Intégration__9_redirect__uri=["https://abc123/foo2"]
AIO_ims_contexts_New__Test__Intégration__9_defaultRedirectUri=https://abc123/foo2
AIO_ims_contexts_New__Test__Intégration__10_client__id=XXXTYTYTYYUTYEWTEWRW
AIO_ims_contexts_New__Test__Intégration__10_client__secret=XXXSTWEGSDGEVBEGE
AIO_ims_contexts_New__Test__Intégration__10_redirect__uri=["https://abc123/foo3"]
AIO_ims_contexts_New__Test__Intégration__10_defaultRedirectUri=https://abc123/foo3
AIO_ims_contexts_New__Test__Intégration__11_client__id=YYYYXXXTYTYTYYUTYEWTEWRW
AIO_ims_contexts_New__Test__Intégration__11_client__secret=YYYYXXXSTWEGSDGEVBEGE
AIO_ims_contexts_New__Test__Intégration__11_redirect__uri=["https://abc123/foo4"]
AIO_ims_contexts_New__Test__Intégration__11_defaultRedirectUri=https://abc123/foo4
33 changes: 33 additions & 0 deletions test/__fixtures__/valid.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,39 @@
"redirect_uri": [ "https://abc123/foo" ],
"defaultRedirectUri": "https://abc123/foo"
}
},
{
"id": "17951",
"name": "New Test Intégration 9",
"integration_type": "oauthwebapp",
"oauth2": {
"client_id": "TYTYTYYUTYEWTEWRW",
"client_secret": "STWEGSDGEVBEGE",
"redirect_uri": [ "https://abc123/foo2" ],
"defaultRedirectUri": "https://abc123/foo2"
}
},
{
"id": "17952",
"name": "New Test Intégration 10",
"integration_type": "oauthnativeapp",
"oauth2": {
"client_id": "XXXTYTYTYYUTYEWTEWRW",
"client_secret": "XXXSTWEGSDGEVBEGE",
"redirect_uri": [ "https://abc123/foo3" ],
"defaultRedirectUri": "https://abc123/foo3"
}
},
{
"id": "17953",
"name": "New Test Intégration 11",
"integration_type": "oauthsinglepageapp",
"oauth2": {
"client_id": "YYYYXXXTYTYTYYUTYEWTEWRW",
"client_secret": "YYYYXXXSTWEGSDGEVBEGE",
"redirect_uri": [ "https://abc123/foo4" ],
"defaultRedirectUri": "https://abc123/foo4"
}
}
],
"services": [
Expand Down

0 comments on commit 9b3be9c

Please sign in to comment.