예제 #1
0
 def test_casing_as(self):
     version = "1.15.0"
     vm_type = helpers._set_vm_set_type("Availabilityset", version)
     self.assertEqual(vm_type, "AvailabilitySet")
예제 #2
0
 def test_no_vm_set(self):
     version = "1.15.0"
     vm_type = helpers._set_vm_set_type("", version)
     self.assertEqual(vm_type, "VirtualMachineScaleSets")
예제 #3
0
 def test_casing_vmss(self):
     version = "1.15.0"
     vm_type = helpers._set_vm_set_type("virtualmachineScaleSets", version)
     self.assertEqual(vm_type, "VirtualMachineScaleSets")
예제 #4
0
 def test_archaic_k8_version_with_vm_set(self):
     version = "1.11.9"
     vm_type = helpers._set_vm_set_type("AvailabilitySet", version)
     self.assertEqual(vm_type, "AvailabilitySet")