Skip to content

Commit

Permalink
{Storage} Rerun tests influenced by `az storage account show-connecti…
Browse files Browse the repository at this point in the history
…on-string` new changes (#22347)

* Rerun tests influenced by `az storage account show-connection-string` new changes

* fix test
  • Loading branch information
evelyn-ys authored May 11, 2022
1 parent 5a4a23d commit 2a21e70
Show file tree
Hide file tree
Showing 14 changed files with 8,335 additions and 12,817 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def test_iot_hub(self, resource_group, resource_group_location, storage_account)
])

# Storage Connection String Pattern
storage_cs_pattern = 'DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName='
storage_cs_pattern = 'DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;'
# Test 'az iot hub update'
updated_hub = self.cmd('iot hub update -n {0} --fnd 80 --rd 4 --ct 34 --cdd 46 --ft 43 --fld 10 --fd 76'
' --fn true --fnt 32 --fst 3 --fcs {1} --fc {2}'
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5,277 changes: 1,595 additions & 3,682 deletions src/azure-cli/azure/cli/command_modules/iot/tests/latest/recordings/test_iot_hub.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_iot_hub(self, resource_group, resource_group_location, storage_account)
])

# Storage Connection String Pattern
storage_cs_pattern = 'DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName='
storage_cs_pattern = 'DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;'
# Test 'az iot hub update'
updated_hub = self.cmd('iot hub update -n {0} --fnd 80 --rd 4 --ct 34 --cdd 46 --ft 43 --fld 10 --fd 76'
' --fn true --fnt 32 --fst 3 --fcs {1} --fc {2} --tags e=f g=h'
Expand Down Expand Up @@ -449,7 +449,7 @@ def test_identity_hub(self, resource_group, resource_group_location, storage_acc
storageConnectionString = self._get_azurestorage_connectionstring(rg, containerName, storage_account)
endpoint_name = 'Event1'
endpoint_type = 'EventHub'
storage_cs_pattern = 'DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName='
storage_cs_pattern = 'DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;'

identity_storage_role = 'Storage Blob Data Contributor'
storage_account_id = self.cmd('storage account show -n {0} -g {1}'.format(storage_account, rg)).get_output_in_json()['id']
Expand Down Expand Up @@ -701,7 +701,7 @@ def test_hub_file_upload(self, resource_group, resource_group_location, storage_
storageConnectionString = self._get_azurestorage_connectionstring(rg, containerName, storage_account)
identity_based_auth = 'identityBased'
key_based_auth = 'keyBased'
storage_cs_pattern = 'DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName='
storage_cs_pattern = 'DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;'

# create user-assigned identity
with mock.patch('azure.cli.command_modules.role.custom._gen_guid', side_effect=self.create_guid):
Expand Down

0 comments on commit 2a21e70

Please sign in to comment.