Skip to content

Commit

Permalink
apply api version range on vm zone test (Azure#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
yugangw-msft authored Aug 8, 2017
1 parent 9e79e60 commit 9f071df
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@

import six
from azure.cli.core.util import CLIError
from azure.cli.core.profiles import ResourceType
from azure.cli.testsdk.vcr_test_base import (VCRTestBase,
ResourceGroupVCRTestBase,
JMESPathCheck,
NoneCheck, MOCKED_SUBSCRIPTION_ID)
from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer, LiveScenarioTest
from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer, LiveScenarioTest, api_version_constraint
from azure.cli.testsdk import JMESPathCheck as JMESPathCheckV2
from azure.cli.testsdk.checkers import NoneCheck as NoneCheckV2

Expand Down Expand Up @@ -2100,6 +2101,7 @@ def test_vm_create_progress(self, resource_group):
self.assertTrue('Succeeded: {} (Microsoft.Compute/virtualMachines)'.format(vm_name) in lines)


@api_version_constraint(ResourceType.MGMT_COMPUTE, min_api='2017-03-30')
class VMZoneScenarioTest(ScenarioTest):

@ResourceGroupPreparer(location='eastus2')
Expand Down

0 comments on commit 9f071df

Please sign in to comment.