Skip to content

Commit

Permalink
Add poison logic to prevent re-recording tests that need updating. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tjprescott authored Nov 22, 2016
1 parent a1130a8 commit a5c27f5
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ class VMCombinedListTest(VCRTestBase):

def __init__(self, test_method):
super(VMCombinedListTest, self).__init__(__file__, test_method)
if not self.playback:
raise Exception('TODO: modify this test to use ResourceGroupVCRTestBase')

def test_vm_combined_list(self):
self.execute()
Expand Down Expand Up @@ -113,6 +115,8 @@ def body(self):
class VMResizeTest(VCRTestBase):
def __init__(self, test_method):
super(VMResizeTest, self).__init__(__file__, test_method)
if not self.playback:
raise Exception('TODO: modify this test to use ResourceGroupVCRTestBase')

def test_vm_resize(self):
self.execute()
Expand Down Expand Up @@ -385,6 +389,8 @@ def __init__(self, test_method):
self.resource_group = 'cliTestRg_Availset'
self.location = 'westus'
self.name = 'availset-test'
if not self.playback:
raise Exception('TODO: modify this test to use ResourceGroupVCRTestBase')

def test_vm_availset(self):
self.execute()
Expand Down Expand Up @@ -448,6 +454,8 @@ def __init__(self, test_method):
self.location = 'westus'
self.vm_name = 'windows-ext'
self.extension_name = 'IaaSDiagnostics'
if not self.playback:
raise Exception('TODO: modify this test to use ResourceGroupVCRTestBase')

def test_vm_extension(self):
self.execute()
Expand Down Expand Up @@ -520,6 +528,8 @@ def __init__(self, test_method):
self.resource_group = 'CLI_TEST1'
self.ss_name = 'clitestvm'
self.location = 'westus'
if not self.playback:
raise Exception('TODO: modify this test to use ResourceGroupVCRTestBase')

def test_vm_scaleset_gets(self):
self.execute()
Expand Down Expand Up @@ -555,6 +565,8 @@ def __init__(self, test_method):
super(VMScaleSetStatesScenarioTest, self).__init__(__file__, test_method)
self.resource_group = 'cliTestRg_ScaleSet1'
self.ss_name = 'scaleset1'
if not self.playback:
raise Exception('TODO: modify this test to use ResourceGroupVCRTestBase')

def test_vm_scaleset_states(self):
self.execute()
Expand All @@ -574,6 +586,8 @@ def __init__(self, test_method):
super(VMScaleSetScaleUpScenarioTest, self).__init__(__file__, test_method)
self.resource_group = 'yugangwvmss'
self.ss_name = 'yugangwvm'
if not self.playback:
raise Exception('TODO: modify this test to use ResourceGroupVCRTestBase')

def test_vm_scaleset_scaleup(self):
self.execute()
Expand All @@ -594,6 +608,8 @@ def __init__(self, test_method):
self.ss_name = 'yugangwvm'
self.vm_count = 3
self.instance_id_to_delete = 2
if not self.playback:
raise Exception('TODO: modify this test to use ResourceGroupVCRTestBase')

def test_vm_scaleset_delete(self):
self.execute()
Expand Down Expand Up @@ -633,6 +649,8 @@ def __init__(self, test_method):
self.ss_name = 'scaleset3'
self.vm_count = 5
self.instance_ids = ['1', '2', '3', '6', '7']
if not self.playback:
raise Exception('TODO: modify this test to use ResourceGroupVCRTestBase')

def test_vm_scaleset_vms(self):
self.execute()
Expand Down Expand Up @@ -826,6 +844,8 @@ class VMAccessAddRemoveLinuxUser(VCRTestBase):

def __init__(self, test_method):
super(VMAccessAddRemoveLinuxUser, self).__init__(__file__, test_method)
if not self.playback:
raise Exception('TODO: modify this test to use ResourceGroupVCRTestBase')

def test_vm_add_remove_linux_user(self):
self.execute()
Expand Down Expand Up @@ -946,6 +966,8 @@ class VMBootDiagnostics(VCRTestBase):

def __init__(self, test_method):
super(VMBootDiagnostics, self).__init__(__file__, test_method)
if not self.playback:
raise Exception('TODO: modify this test to use ResourceGroupVCRTestBase')

def test_vm_enable_disable_boot_diagnostic(self):
self.execute()
Expand All @@ -970,6 +992,8 @@ class VMExtensionInstallTest(VCRTestBase):

def __init__(self, test_method):
super(VMExtensionInstallTest, self).__init__(__file__, test_method)
if not self.playback:
raise Exception('TODO: modify this test to use ResourceGroupVCRTestBase')

def test_vm_extension_install(self):
self.execute()
Expand Down Expand Up @@ -997,6 +1021,8 @@ class VMSSExtensionInstallTest(VCRTestBase):

def __init__(self, test_method):
super(VMSSExtensionInstallTest, self).__init__(__file__, test_method)
if not self.playback:
raise Exception('TODO: modify this test to use ResourceGroupVCRTestBase')

def test_vmss_extension_install(self):
self.execute()
Expand Down

0 comments on commit a5c27f5

Please sign in to comment.