Skip to content

Commit 85ad823

Browse files
Add auto-refresh test cases and rename test methods for clarity (Azure#28359)
1 parent 12c5349 commit 85ad823

File tree

72 files changed

+184
-165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+184
-165
lines changed

sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.pyTestClienttest_create_user.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"X-Azure-Ref": "sanitized",
3030
"X-Cache": "CONFIG_NOCACHE",
3131
"x-ms-client-request-id": "sanitized",
32-
"X-Processing-Time": "101ms"
32+
"X-Processing-Time": "81ms"
3333
},
3434
"ResponseBody": {
3535
"identity": {

sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.pyTestClienttest_create_user_and_token[chat&voip-value2].json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"StatusCode": 201,
2727
"ResponseHeaders": {
2828
"api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01",
29-
"Content-Length": "115",
29+
"Content-Length": "113",
3030
"Content-Type": "application/json; charset=utf-8",
3131
"Date": "sanitized",
3232
"MS-CV": "sanitized",
@@ -35,15 +35,15 @@
3535
"X-Azure-Ref": "sanitized",
3636
"X-Cache": "CONFIG_NOCACHE",
3737
"x-ms-client-request-id": "sanitized",
38-
"X-Processing-Time": "114ms"
38+
"X-Processing-Time": "88ms"
3939
},
4040
"ResponseBody": {
4141
"identity": {
4242
"id": "sanitized"
4343
},
4444
"accessToken": {
4545
"token": "sanitized",
46-
"expiresOn": "2023-01-13T11:26:20.7467648\u002B00:00"
46+
"expiresOn": "2023-01-17T13:47:51.33864\u002B00:00"
4747
}
4848
}
4949
}

sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.pyTestClienttest_create_user_and_token[chat-value0].json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434
"X-Azure-Ref": "sanitized",
3535
"X-Cache": "CONFIG_NOCACHE",
3636
"x-ms-client-request-id": "sanitized",
37-
"X-Processing-Time": "112ms"
37+
"X-Processing-Time": "89ms"
3838
},
3939
"ResponseBody": {
4040
"identity": {
4141
"id": "sanitized"
4242
},
4343
"accessToken": {
4444
"token": "sanitized",
45-
"expiresOn": "2023-01-13T11:26:19.8758972\u002B00:00"
45+
"expiresOn": "2023-01-17T13:47:50.4853074\u002B00:00"
4646
}
4747
}
4848
}

sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.pyTestClienttest_create_user_and_token[voip-value1].json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434
"X-Azure-Ref": "sanitized",
3535
"X-Cache": "CONFIG_NOCACHE",
3636
"x-ms-client-request-id": "sanitized",
37-
"X-Processing-Time": "111ms"
37+
"X-Processing-Time": "88ms"
3838
},
3939
"ResponseBody": {
4040
"identity": {
4141
"id": "sanitized"
4242
},
4343
"accessToken": {
4444
"token": "sanitized",
45-
"expiresOn": "2023-01-13T11:26:20.3039373\u002B00:00"
45+
"expiresOn": "2023-01-17T13:47:50.8890974\u002B00:00"
4646
}
4747
}
4848
}

sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.pyTestClienttest_create_user_and_token_with_invalid_custom_expirations[max_invalid_mins-1441].json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"X-Azure-Ref": "sanitized",
3535
"X-Cache": "CONFIG_NOCACHE",
3636
"x-ms-client-request-id": "sanitized",
37-
"X-Processing-Time": "38ms"
37+
"X-Processing-Time": "12ms"
3838
},
3939
"ResponseBody": {
4040
"error": {

sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.pyTestClienttest_create_user_and_token_with_invalid_custom_expirations[min_invalid_mins-59].json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"X-Azure-Ref": "sanitized",
3535
"X-Cache": "CONFIG_NOCACHE",
3636
"x-ms-client-request-id": "sanitized",
37-
"X-Processing-Time": "38ms"
37+
"X-Processing-Time": "14ms"
3838
},
3939
"ResponseBody": {
4040
"error": {

sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.pyTestClienttest_create_user_and_token_with_no_scopes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"X-Azure-Ref": "sanitized",
3333
"X-Cache": "CONFIG_NOCACHE",
3434
"x-ms-client-request-id": "sanitized",
35-
"X-Processing-Time": "109ms"
35+
"X-Processing-Time": "82ms"
3636
},
3737
"ResponseBody": {
3838
"identity": {

sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.pyTestClienttest_create_user_and_token_with_valid_custom_expirations_new[max_valid_hours-24].json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"StatusCode": 201,
2626
"ResponseHeaders": {
2727
"api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01",
28-
"Content-Length": "114",
28+
"Content-Length": "115",
2929
"Content-Type": "application/json; charset=utf-8",
3030
"Date": "sanitized",
3131
"MS-CV": "sanitized",
@@ -34,15 +34,15 @@
3434
"X-Azure-Ref": "sanitized",
3535
"X-Cache": "CONFIG_NOCACHE",
3636
"x-ms-client-request-id": "sanitized",
37-
"X-Processing-Time": "110ms"
37+
"X-Processing-Time": "91ms"
3838
},
3939
"ResponseBody": {
4040
"identity": {
4141
"id": "sanitized"
4242
},
4343
"accessToken": {
4444
"token": "sanitized",
45-
"expiresOn": "2023-01-13T11:26:21.696677\u002B00:00"
45+
"expiresOn": "2023-01-17T13:47:52.3552475\u002B00:00"
4646
}
4747
}
4848
}

sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.pyTestClienttest_create_user_and_token_with_valid_custom_expirations_new[min_valid_hours-1].json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434
"X-Azure-Ref": "sanitized",
3535
"X-Cache": "CONFIG_NOCACHE",
3636
"x-ms-client-request-id": "sanitized",
37-
"X-Processing-Time": "111ms"
37+
"X-Processing-Time": "88ms"
3838
},
3939
"ResponseBody": {
4040
"identity": {
4141
"id": "sanitized"
4242
},
4343
"accessToken": {
4444
"token": "sanitized",
45-
"expiresOn": "2023-01-12T12:26:21.1845117\u002B00:00"
45+
"expiresOn": "2023-01-16T14:47:51.8287937\u002B00:00"
4646
}
4747
}
4848
}

sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.pyTestClienttest_create_user_from_managed_identity.json renamed to sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.pyTestClienttest_create_user_from_token_credential.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
"X-Azure-Ref": "sanitized",
195195
"X-Cache": "CONFIG_NOCACHE",
196196
"x-ms-client-request-id": "sanitized",
197-
"X-Processing-Time": "123ms"
197+
"X-Processing-Time": "258ms"
198198
},
199199
"ResponseBody": {
200200
"identity": {

0 commit comments

Comments
 (0)