Skip to content

Commit 5031824

Browse files
committed
python files
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 70272b3 commit 5031824

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/integration/component/test_rootvolume_resize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def getDiskController(self, vm, diskcontroller="ide"):
308308
vmid = int(qresultvmuuid[0][0])
309309
qresult = self.dbclient.execute(
310310
"select rootDiskController from"
311-
" user_vm_details where id = '%s';" % vmid
311+
" vm_instance_details where id = '%s';" % vmid
312312
)
313313
self.debug("Query result: %s" % qresult)
314314
diskcontroller = qresult[0][0]

test/integration/component/test_update_vm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def test_update_vm_details_admin(self):
186186
vm_db_id = dbresult[0][0]
187187
self.debug("VM has database id %d" % vm_db_id)
188188

189-
self.dbclient.execute("insert into user_vm_details (vm_id, name, value, display) values (%d,'%s','HOST', 0)" % (vm_db_id, hidden_detail_name))
189+
self.dbclient.execute("insert into vm_instance_details (vm_id, name, value, display) values (%d,'%s','HOST', 0)" % (vm_db_id, hidden_detail_name))
190190

191191
vm = self.listVmById(self.virtual_machine.id)
192192
self.debug("VirtualMachine fetched with details: %s of type %s" % (vm.details, type(vm.details)))
@@ -227,7 +227,7 @@ def test_update_vm_details_admin(self):
227227

228228

229229
def detailInDatabase(self, vm_id, detail_name):
230-
dbresult = self.dbclient.execute("select id from user_vm_details where vm_id=%s and name='%s'" % (vm_id, detail_name))
230+
dbresult = self.dbclient.execute("select id from vm_instance_details where vm_id=%s and name='%s'" % (vm_id, detail_name))
231231
self.debug("Detail %s for VM %s: %s" % (detail_name, vm_id, dbresult))
232232
if validateList(dbresult)[0] == PASS:
233233
return True

test/integration/smoke/test_deploy_vgpu_enabled_vm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def test_3d_gpu_support(self):
319319

320320
qresultset = self.dbclient.execute("select id from vm_instance where uuid = '%s';" % self.virtual_machine.id)
321321
vm_id = qresultset[0]
322-
qresultset = self.dbclient.execute("select name, value from user_vm_details where vm_id = '%d';" % vm_id)
322+
qresultset = self.dbclient.execute("select name, value from vm_instance_details where vm_id = '%d';" % vm_id)
323323
detailKeys = [x[0] for x in qresultset]
324324

325325
self.assertTrue('mks.enable3d' in detailKeys and 'mks.use3dRenderer' in detailKeys and 'svga.autodetect' in detailKeys and 'svga.vramSize' in detailKeys, "VM details do not contain 3D GPU details")

0 commit comments

Comments
 (0)