Skip to content

Commit 0db1de2

Browse files
authored
Change to use dynamic resource connection string for chat tests and identity samples (#18502)
1 parent f1de40a commit 0db1de2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

sdk/communication/azure-communication-chat/tests/_shared/testcase.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def setUp(self):
7575
if self.is_playback():
7676
self.connection_str = "endpoint=https://sanitized/;accesskey=fake==="
7777
else:
78-
self.connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING')
78+
self.connection_str = os.getenv('COMMUNICATION_CONNECTION_STRING')
7979
endpoint, _ = parse_connection_str(self.connection_str)
8080
self._resource_name = endpoint.split(".")[0]
8181
self.scrubber.register_name_pair(self._resource_name, "sanitized")

sdk/communication/azure-communication-identity/samples/identity_samples.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class CommunicationIdentityClientSamples(object):
2626

2727
def __init__(self):
28-
self.connection_string = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING')
28+
self.connection_string = os.getenv('COMMUNICATION_CONNECTION_STRING')
2929
self.client_id = os.getenv('AZURE_CLIENT_ID')
3030
self.client_secret = os.getenv('AZURE_CLIENT_SECRET')
3131
self.tenant_id = os.getenv('AZURE_TENANT_ID')

sdk/communication/azure-communication-identity/samples/identity_samples_async.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
class CommunicationIdentityClientSamples(object):
2929

3030
def __init__(self):
31-
self.connection_string = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING')
31+
self.connection_string = os.getenv('COMMUNICATION_CONNECTION_STRING')
3232
self.endpoint = os.getenv('AZURE_COMMUNICATION_SERVICE_ENDPOINT')
3333
self.client_id = os.getenv('AZURE_CLIENT_ID')
3434
self.client_secret = os.getenv('AZURE_CLIENT_SECRET')

sdk/communication/test-resources.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@
8181
"value": "[listKeys(resourceId('Microsoft.Communication/CommunicationServices',variables('uniqueSubDomainName')), '2020-08-20-preview').primaryConnectionString]"
8282
}
8383
}
84-
}
84+
}

0 commit comments

Comments
 (0)