示例#1
0
 def test_VM_set_tag_regularVM_regularVIF_regularValue_negativeOVS(self):
     vif_ref = BNVMAPI_Util.get_first_VIF(self.vm_with_vdi)
     value = 1
     ovs = "NEGATIVE_OVS"
     self.assertEqual("Failure", self.vmapi._VM_set_tag(self.session, self.vm_with_vdi, vif_ref, value, ovs).get('Status'))
示例#2
0
 def test_VM_set_tag_regularVM_regularVIF_regularValue_sameOVS(self):
     vif_ref = BNVMAPI_Util.get_first_VIF(self.vm_with_vdi)
     value = 1
     ovs = BNVMAPI_Util.get_VIF_ovs_bridge(vif_ref)
     self.assertEqual("Success", self.vmapi._VM_set_tag(self.session, self.vm_with_vdi, vif_ref, value, ovs).get('Status'))
示例#3
0
 def test_VM_set_tag_regularVM_regularVIF_negativeValue_regularOVS(self):
     vif_ref = BNVMAPI_Util.get_first_VIF(self.vm_with_vdi)
     value = "a"
     ovs = "ovs0"
     self.assertRaises(Exception, self.vmapi._VM_set_tag, self.session, self.vm_with_vdi, vif_ref, value, ovs)