Skip to content

Commit

Permalink
Change to use dynamic resource connection string for chat tests and i…
Browse files Browse the repository at this point in the history
…dentity samples (#18502)
  • Loading branch information
sacheun authored May 4, 2021
1 parent f1de40a commit 0db1de2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def setUp(self):
if self.is_playback():
self.connection_str = "endpoint=https://sanitized/;accesskey=fake==="
else:
self.connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING')
self.connection_str = os.getenv('COMMUNICATION_CONNECTION_STRING')
endpoint, _ = parse_connection_str(self.connection_str)
self._resource_name = endpoint.split(".")[0]
self.scrubber.register_name_pair(self._resource_name, "sanitized")
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class CommunicationIdentityClientSamples(object):

def __init__(self):
self.connection_string = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING')
self.connection_string = os.getenv('COMMUNICATION_CONNECTION_STRING')
self.client_id = os.getenv('AZURE_CLIENT_ID')
self.client_secret = os.getenv('AZURE_CLIENT_SECRET')
self.tenant_id = os.getenv('AZURE_TENANT_ID')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
class CommunicationIdentityClientSamples(object):

def __init__(self):
self.connection_string = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING')
self.connection_string = os.getenv('COMMUNICATION_CONNECTION_STRING')
self.endpoint = os.getenv('AZURE_COMMUNICATION_SERVICE_ENDPOINT')
self.client_id = os.getenv('AZURE_CLIENT_ID')
self.client_secret = os.getenv('AZURE_CLIENT_SECRET')
Expand Down
2 changes: 1 addition & 1 deletion sdk/communication/test-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@
"value": "[listKeys(resourceId('Microsoft.Communication/CommunicationServices',variables('uniqueSubDomainName')), '2020-08-20-preview').primaryConnectionString]"
}
}
}
}

0 comments on commit 0db1de2

Please sign in to comment.