replaced underscore by dash and update test accordingly
This commit is contained in:
parent
0eb978c59b
commit
a0d45aac9c
@ -476,6 +476,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
|
||||
del vm.default_user
|
||||
self.assertPropertyDefaultValue(vm, 'default_user', 'user')
|
||||
self.assertPropertyValue(vm, 'default_user', 123, '123', '123')
|
||||
vm.default_user = 'user'
|
||||
# TODO: check propagation for template-based VMs
|
||||
|
||||
@unittest.skip('TODO')
|
||||
@ -901,7 +902,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
|
||||
self.assertEqual(test_qubesdb.data, {
|
||||
'/name': 'test-inst-test',
|
||||
'/type': 'StandaloneVM',
|
||||
'/default_user': 'user',
|
||||
'/default-user': 'user',
|
||||
'/qubes-vm-type': 'AppVM',
|
||||
'/qubes-debug-mode': '0',
|
||||
'/qubes-base-template': '',
|
||||
|
@ -1798,7 +1798,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
|
||||
|
||||
self.untrusted_qdb.write('/name', self.name)
|
||||
self.untrusted_qdb.write('/type', self.__class__.__name__)
|
||||
self.untrusted_qdb.write('/default_user', self.default_user)
|
||||
self.untrusted_qdb.write('/default-user', self.default_user)
|
||||
self.untrusted_qdb.write('/qubes-vm-updateable', str(self.updateable))
|
||||
self.untrusted_qdb.write('/qubes-vm-persistence',
|
||||
'full' if self.updateable else 'rw-only')
|
||||
|
Loading…
Reference in New Issue
Block a user