Skip to content

Commit 76cb1b8

Browse files
committed
Fix identity tests
1 parent b5eb71d commit 76cb1b8

15 files changed

+103
-20
lines changed

identity/.snapshots/TestHandler-case=should_be_able_to_import_users-with_cleartext_password_and_oidc_credentials.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,20 @@
5050
"provider": "okta",
5151
"initial_id_token": "",
5252
"initial_access_token": "",
53-
"initial_refresh_token": ""
53+
"initial_refresh_token": "",
54+
"last_id_token": "",
55+
"last_access_token": "",
56+
"last_refresh_token": ""
5457
},
5558
{
5659
"subject": "import-saml-2",
5760
"provider": "onelogin",
5861
"initial_id_token": "",
5962
"initial_access_token": "",
60-
"initial_refresh_token": ""
63+
"initial_refresh_token": "",
64+
"last_id_token": "",
65+
"last_access_token": "",
66+
"last_refresh_token": ""
6167
}
6268
]
6369
},

identity/.snapshots/TestHandler-case=should_be_able_to_import_users-with_organization_oidc_and_saml_credentials.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"initial_id_token": "",
1111
"initial_access_token": "",
1212
"initial_refresh_token": "",
13+
"last_id_token": "",
14+
"last_access_token": "",
15+
"last_refresh_token": "",
1316
"organization": "ad6a7dac-4eef-4f09-8e58-c099c14b6c36"
1417
},
1518
{
@@ -18,6 +21,9 @@
1821
"initial_id_token": "",
1922
"initial_access_token": "",
2023
"initial_refresh_token": "",
24+
"last_id_token": "",
25+
"last_access_token": "",
26+
"last_refresh_token": "",
2127
"organization": "ad6a7dac-4eef-4f09-8e58-c099c14b6c36"
2228
}
2329
]
@@ -46,6 +52,9 @@
4652
"initial_id_token": "",
4753
"initial_access_token": "",
4854
"initial_refresh_token": "",
55+
"last_id_token": "",
56+
"last_access_token": "",
57+
"last_refresh_token": "",
4958
"organization": "ad6a7dac-4eef-4f09-8e58-c099c14b6c36"
5059
},
5160
{
@@ -54,6 +63,9 @@
5463
"initial_id_token": "",
5564
"initial_access_token": "",
5665
"initial_refresh_token": "",
66+
"last_id_token": "",
67+
"last_access_token": "",
68+
"last_refresh_token": "",
5769
"organization": "ad6a7dac-4eef-4f09-8e58-c099c14b6c36"
5870
}
5971
]
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"{\"providers\":[{\"initial_id_token\":\"id_token0\",\"initial_access_token\":\"access_token0\",\"initial_refresh_token\":\"refresh_token0\",\"last_id_token\":\"id_token_current0\",\"last_access_token\":\"access_token_current0\",\"last_refresh_token\":\"refresh_token_current0\",\"subject\":\"foo\",\"provider\":\"bar\",\"organization\":\"\"},{\"initial_id_token\":\"id_token1\",\"initial_access_token\":\"access_token1\",\"initial_refresh_token\":\"refresh_token1\",\"last_id_token\":\"id_token_current1\",\"last_access_token\":\"access_token_current1\",\"last_refresh_token\":\"refresh_token_current1\",\"subject\":\"baz\",\"provider\":\"zab\",\"organization\":\"\"}]}"
1+
"{\"providers\":[{\"initial_id_token\":\"id_token0\",\"initial_access_token\":\"access_token0\",\"initial_refresh_token\":\"refresh_token0\",\"last_id_token\":\"id_token_current0\",\"last_access_token\":\"access_token_current0\",\"last_refresh_token\":\"refresh_token_current0\",\"subject\":\"foo\",\"provider\":\"bar\"},{\"initial_id_token\":\"id_token1\",\"initial_access_token\":\"access_token1\",\"initial_refresh_token\":\"refresh_token1\",\"last_id_token\":\"id_token_current1\",\"last_access_token\":\"access_token_current1\",\"last_refresh_token\":\"refresh_token_current1\",\"subject\":\"baz\",\"provider\":\"zab\"}]}"

identity/.snapshots/TestImportCredentials-OIDC_new_credential_with_organization.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"initial_id_token": "",
1212
"initial_access_token": "",
1313
"initial_refresh_token": "",
14+
"last_id_token": "",
15+
"last_access_token": "",
16+
"last_refresh_token": "",
1417
"organization": "e7e3cbae-04cc-45f3-ae52-ea749a2ffaff"
1518
}
1619
]

identity/.snapshots/TestImportCredentials-OIDC_new_credential_without_organization.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"provider": "github",
1111
"initial_id_token": "",
1212
"initial_access_token": "",
13-
"initial_refresh_token": ""
13+
"initial_refresh_token": "",
14+
"last_id_token": "",
15+
"last_access_token": "",
16+
"last_refresh_token": ""
1417
}
1518
]
1619
},

identity/.snapshots/TestImportCredentials-OIDC_update_credential_with_organization.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,20 @@
1111
"provider": "google",
1212
"initial_id_token": "",
1313
"initial_access_token": "",
14-
"initial_refresh_token": ""
14+
"initial_refresh_token": "",
15+
"last_id_token": "",
16+
"last_access_token": "",
17+
"last_refresh_token": ""
1518
},
1619
{
1720
"subject": "12345",
1821
"provider": "github",
1922
"initial_id_token": "",
2023
"initial_access_token": "",
2124
"initial_refresh_token": "",
25+
"last_id_token": "",
26+
"last_access_token": "",
27+
"last_refresh_token": "",
2228
"organization": "e7e3cbae-04cc-45f3-ae52-ea749a2ffaff"
2329
}
2430
]

identity/.snapshots/TestImportCredentials-OIDC_update_credential_without_organization.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,20 @@
1111
"provider": "google",
1212
"initial_id_token": "",
1313
"initial_access_token": "",
14-
"initial_refresh_token": ""
14+
"initial_refresh_token": "",
15+
"last_id_token": "",
16+
"last_access_token": "",
17+
"last_refresh_token": ""
1518
},
1619
{
1720
"subject": "12345",
1821
"provider": "github",
1922
"initial_id_token": "",
2023
"initial_access_token": "",
21-
"initial_refresh_token": ""
24+
"initial_refresh_token": "",
25+
"last_id_token": "",
26+
"last_access_token": "",
27+
"last_refresh_token": ""
2228
}
2329
]
2430
},

identity/.snapshots/TestImportCredentials-OIDC_update_with_multiple_providers.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,31 @@
1212
"provider": "google",
1313
"initial_id_token": "",
1414
"initial_access_token": "",
15-
"initial_refresh_token": ""
15+
"initial_refresh_token": "",
16+
"last_id_token": "",
17+
"last_access_token": "",
18+
"last_refresh_token": ""
1619
},
1720
{
1821
"subject": "12345",
1922
"provider": "github",
2023
"initial_id_token": "",
2124
"initial_access_token": "",
2225
"initial_refresh_token": "",
26+
"last_id_token": "",
27+
"last_access_token": "",
28+
"last_refresh_token": "",
2329
"organization": "e7e3cbae-04cc-45f3-ae52-ea749a2ffaff"
2430
},
2531
{
2632
"subject": "abcdef",
2733
"provider": "gitlab",
2834
"initial_id_token": "",
2935
"initial_access_token": "",
30-
"initial_refresh_token": ""
36+
"initial_refresh_token": "",
37+
"last_id_token": "",
38+
"last_access_token": "",
39+
"last_refresh_token": ""
3140
}
3241
]
3342
},

identity/.snapshots/TestImportCredentials-SAML_new_credential_with_organization.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"initial_id_token": "",
1212
"initial_access_token": "",
1313
"initial_refresh_token": "",
14+
"last_id_token": "",
15+
"last_access_token": "",
16+
"last_refresh_token": "",
1417
"organization": "e7e3cbae-04cc-45f3-ae52-ea749a2ffaff"
1518
}
1619
]

identity/.snapshots/TestImportCredentials-SAML_new_credential_without_organization.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"provider": "okta",
1111
"initial_id_token": "",
1212
"initial_access_token": "",
13-
"initial_refresh_token": ""
13+
"initial_refresh_token": "",
14+
"last_id_token": "",
15+
"last_access_token": "",
16+
"last_refresh_token": ""
1417
}
1518
]
1619
},

0 commit comments

Comments
 (0)