Skip to content

Commit

Permalink
update session records
Browse files Browse the repository at this point in the history
  • Loading branch information
wanyang7 committed Sep 16, 2021
1 parent 6433729 commit 0d32487
Show file tree
Hide file tree
Showing 10 changed files with 2,111 additions and 996 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 @@ -18,7 +18,7 @@ class SynapseScenarioTests(ScenarioTest):

@record_only()
@ResourceGroupPreparer(name_prefix='synapse-cli', random_name_length=16)
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, hns=True, key='storage-account')
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, key='storage-account')
def test_workspaces(self, resource_group, storage_account):
# create a workspace
self._create_workspace()
Expand Down Expand Up @@ -59,7 +59,7 @@ def test_workspaces(self, resource_group, storage_account):

@record_only()
@ResourceGroupPreparer(name_prefix='synapse-cli', random_name_length=16)
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, hns=True, key='storage-account')
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, key='storage-account')
def test_managed_virtual_network_workspace(self):
# test workspace with managed virtual network
self._create_workspace("--enable-managed-virtual-network")
Expand All @@ -72,12 +72,10 @@ def test_managed_virtual_network_workspace(self):

@record_only()
@ResourceGroupPreparer(name_prefix='synapse-cli', random_name_length=16)
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, hns=True, key='storage-account')
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, key='storage-account')
def test_spark_pool(self):
self.kwargs.update({
'location': 'eastus',
'workspace': 'testsynapseworkspace',
'rg': 'rg',
'spark-pool': self.create_random_name(prefix='testpool', length=15),
'spark-version': '2.4'
})
Expand Down Expand Up @@ -232,7 +230,7 @@ def test_workspace_with_cmk(self):

@record_only()
@ResourceGroupPreparer(name_prefix='synapse-cli', random_name_length=16)
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, hns=True, key='storage-account')
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, key='storage-account')
def test_sql_pool(self):
self.kwargs.update({
'location': 'eastus2euap',
Expand Down Expand Up @@ -704,7 +702,7 @@ def test_sql_pool_audit_policy_logentry_eventhub(self):
self.check('retentionDays', self.kwargs['retention-days']),
self.check('auditActionsAndGroups', self.kwargs['audit-actions-expected'])])

## create log analytics workspace
# create log analytics workspace
self.kwargs['log_analytics_workspace_id']= self.cmd('az monitor log-analytics workspace create --resource-group {rg} '
'--workspace-name {log_analytics_workspace_name}',
checks=[
Expand Down Expand Up @@ -843,11 +841,9 @@ def test_sql_aad_admin(self):

@record_only()
@ResourceGroupPreparer(name_prefix='synapse-cli', random_name_length=16)
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, hns=True, key='storage-account')
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, key='storage-account')
def test_ip_firewall_rules(self, resource_group, storage_account):
self.kwargs.update({
'workspace': 'testsynapseworkspace',
'rg': 'rg',
'ruleName': self.create_random_name(prefix='rule', length=8),
'startIpAddress': "0.0.0.0",
'endIpAddress': "255.255.255.255",
Expand Down Expand Up @@ -1150,7 +1146,7 @@ def _create_workspace(self, *additional_create_params):
})

# Create adlsgen2
# self._create_storage_account()
self._create_storage_account()

# Wait some time to improve robustness
if self.is_live or self.in_recording:
Expand Down Expand Up @@ -1190,7 +1186,7 @@ def _create_storage_account(self):

@record_only()
@ResourceGroupPreparer(name_prefix='synapse-cli', random_name_length=16)
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, hns=True, key='storage-account')
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, key='storage-account')
def test_linked_service(self):
self.kwargs.update({
'name': 'linkedservice',
Expand Down Expand Up @@ -1239,7 +1235,7 @@ def test_linked_service(self):

@record_only()
@ResourceGroupPreparer(name_prefix='synapse-cli', random_name_length=16)
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, hns=True, key='storage-account')
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, key='storage-account')
def test_dataset(self):
self.kwargs.update({
'name': 'dataset'})
Expand Down Expand Up @@ -1470,7 +1466,7 @@ def test_data_flow(self):

@record_only()
@ResourceGroupPreparer(name_prefix='synapse-cli', random_name_length=16)
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, hns=True, key='storage-account')
@StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, key='storage-account')
def test_notebook(self):
self.kwargs.update({
'workspace': 'testsynapseworkspace',
Expand Down

0 comments on commit 0d32487

Please sign in to comment.