Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Compute] Convert test back to scenario test. #7862

Merged
merged 1 commit into from
Nov 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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 @@ -830,8 +830,9 @@ def test_vm_availset_convert(self, resource_group):
])


class ComputeListSkusScenarioTest(LiveScenarioTest):
class ComputeListSkusScenarioTest(ScenarioTest):

@AllowLargeResponse(size_kb=8144)
def test_list_compute_skus_table_output(self):
result = self.cmd('vm list-skus -l eastus2 -otable')
lines = result.output.split('\n')
Expand All @@ -855,7 +856,8 @@ def test_list_compute_skus_table_output(self):
self.assertTrue(size_found)
self.assertTrue(zone_found)

def test_list_compute_skus_fiter(self):
@AllowLargeResponse(size_kb=8144)
def test_list_compute_skus_filter(self):
result = self.cmd('vm list-skus -l eastus2 --size Standard_DS1_V2 --zone').get_output_in_json()
self.assertTrue(result and len(result) == len([x for x in result if x['name'] == 'Standard_DS1_v2' and x['locationInfo'][0]['zones']]))
result = self.cmd('vm list-skus -l westus --resource-type disks').get_output_in_json()
Expand Down