Skip to content

Commit

Permalink
Adding test for managed disk config
Browse files Browse the repository at this point in the history
  • Loading branch information
SandeepBelagavi committed Oct 1, 2020
1 parent b05d9be commit d758a49
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/test_clusterv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,26 @@ def test_azure_storage_config(self):
}
})

def test_azure_managed_disk_config(self):
sys.argv = ['qds.py', '--version', 'v2', '--cloud', 'AZURE', 'cluster', 'create', '--label', 'test_label',
'--storage-access-key', 'testkey', '--storage-account-name', 'test_account_name',
'--managed-disk-account-type' 'test_managed_disk']
Qubole.cloud = None
print_command()
Connection._api_call = Mock(return_value={})
qds.main()
Connection._api_call.assert_called_with('POST', 'clusters',
{'cluster_info':
{'label': ['test_label']},
'cloud_config':
{'storage_config':
{'storage_access_key': 'testkey',
'storage_account_name': 'test_account_name',
'managed_disk_account_type': 'test_managed_disk'
}
}
})

def test_azure_network_config(self):
sys.argv = ['qds.py', '--version', 'v2', '--cloud', 'AZURE', 'cluster', 'create', '--label', 'test_label',
'--vnet-name', 'testvnet', '--subnet-name', 'testsubnet',
Expand Down

0 comments on commit d758a49

Please sign in to comment.