Skip to content

Commit 09c017e

Browse files
committed
Changing tests for the token cache change
1 parent 25472a3 commit 09c017e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/test_token_cache.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,48 +151,48 @@ def testAddByAdfs(self):
151151
'environment': 'fs.msidlab8.com',
152152
'expires_on': "4600",
153153
'extended_expires_on': "4600",
154-
'home_account_id': "subject.adfs",
154+
'home_account_id': "subject",
155155
'realm': 'adfs',
156156
'secret': 'an access token',
157157
'target': 's2 s1 s3',
158158
},
159159
self.cache._cache["AccessToken"].get(
160-
'subject.adfs-fs.msidlab8.com-accesstoken-my_client_id-adfs-s2 s1 s3')
160+
'subject-fs.msidlab8.com-accesstoken-my_client_id-adfs-s2 s1 s3')
161161
)
162162
self.assertEqual(
163163
{
164164
'client_id': 'my_client_id',
165165
'credential_type': 'RefreshToken',
166166
'environment': 'fs.msidlab8.com',
167-
'home_account_id': "subject.adfs",
167+
'home_account_id': "subject",
168168
'secret': 'a refresh token',
169169
'target': 's2 s1 s3',
170170
},
171171
self.cache._cache["RefreshToken"].get(
172-
'subject.adfs-fs.msidlab8.com-refreshtoken-my_client_id--s2 s1 s3')
172+
'subject-fs.msidlab8.com-refreshtoken-my_client_id--s2 s1 s3')
173173
)
174174
self.assertEqual(
175175
{
176-
'home_account_id': "subject.adfs",
176+
'home_account_id': "subject",
177177
'environment': 'fs.msidlab8.com',
178178
'realm': 'adfs',
179179
'local_account_id': "subject",
180180
'username': "[email protected]",
181181
'authority_type': "ADFS",
182182
},
183-
self.cache._cache["Account"].get('subject.adfs-fs.msidlab8.com-adfs')
183+
self.cache._cache["Account"].get('subject-fs.msidlab8.com-adfs')
184184
)
185185
self.assertEqual(
186186
{
187187
'credential_type': 'IdToken',
188188
'secret': id_token,
189-
'home_account_id': "subject.adfs",
189+
'home_account_id': "subject",
190190
'environment': 'fs.msidlab8.com',
191191
'realm': 'adfs',
192192
'client_id': 'my_client_id',
193193
},
194194
self.cache._cache["IdToken"].get(
195-
'subject.adfs-fs.msidlab8.com-idtoken-my_client_id-adfs-')
195+
'subject-fs.msidlab8.com-idtoken-my_client_id-adfs-')
196196
)
197197
self.assertEqual(
198198
{

0 commit comments

Comments
 (0)