summaryrefslogtreecommitdiffstats
path: root/lib/oeqa
diff options
context:
space:
mode:
authorKostiantyn Bushko <kbushko@intellias.com>2020-02-14 16:06:11 +0200
committerKostiantyn Bushko <kbushko@intellias.com>2020-02-14 16:06:11 +0200
commit66fefa15a79a8a0c93c687c059b9cbec45d5f417 (patch)
treed6a3d3107aba34dc6030fafeeef596b14298fd85 /lib/oeqa
parent3d5d2b924a51ef74b666a40881327c4af8dbbeaf (diff)
downloadmeta-updater-66fefa15a79a8a0c93c687c059b9cbec45d5f417.tar.gz
test: shared cred provisioning for non-ostree casefeat/OTA-4310/non-ostree/oe-tests
Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
Diffstat (limited to 'lib/oeqa')
-rw-r--r--lib/oeqa/selftest/cases/testutils.py1
-rw-r--r--lib/oeqa/selftest/cases/updater_qemux86_64.py26
2 files changed, 27 insertions, 0 deletions
diff --git a/lib/oeqa/selftest/cases/testutils.py b/lib/oeqa/selftest/cases/testutils.py
index ea7781b..3455fa8 100644
--- a/lib/oeqa/selftest/cases/testutils.py
+++ b/lib/oeqa/selftest/cases/testutils.py
@@ -49,6 +49,7 @@ def qemu_boot_image(imagename, **kwargs):
49 args.overlay = kwargs.get('overlay', None) 49 args.overlay = kwargs.get('overlay', None)
50 args.dry_run = kwargs.get('dry_run', False) 50 args.dry_run = kwargs.get('dry_run', False)
51 args.secondary_network = kwargs.get('secondary_network', False) 51 args.secondary_network = kwargs.get('secondary_network', False)
52 args.uboot_enable = kwargs.get('uboot_enable', 'yes')
52 53
53 qemu = QemuCommand(args) 54 qemu = QemuCommand(args)
54 cmdline = qemu.command_line() 55 cmdline = qemu.command_line()
diff --git a/lib/oeqa/selftest/cases/updater_qemux86_64.py b/lib/oeqa/selftest/cases/updater_qemux86_64.py
index 5f152ad..08220f4 100644
--- a/lib/oeqa/selftest/cases/updater_qemux86_64.py
+++ b/lib/oeqa/selftest/cases/updater_qemux86_64.py
@@ -112,6 +112,32 @@ class SharedCredProvTests(OESelftestTestCase):
112 verifyProvisioned(self, machine, hwid) 112 verifyProvisioned(self, machine, hwid)
113 113
114 114
115class SharedCredProvTestsNonOSTree(SharedCredProvTests):
116
117 def setUpLocal(self):
118 layer = "meta-updater-qemux86-64"
119 result = runCmd('bitbake-layers show-layers')
120 if re.search(layer, result.output) is None:
121 self.meta_qemu = metadir() + layer
122 runCmd('bitbake-layers add-layer "%s"' % self.meta_qemu)
123 else:
124 self.meta_qemu = None
125 self.append_config('MACHINE = "qemux86-64"')
126 self.append_config('SOTA_CLIENT_PROV = ""')
127 self.append_config('IMAGE_FSTYPES_remove = "ostreepush garagesign garagecheck"')
128 self.append_config('SOTA_HARDWARE_ID = "plain_reibekuchen_314"')
129
130 self.append_config('DISTRO = "poky"')
131 self.append_config('DISTRO_FEATURES_append = " systemd"')
132 self.append_config('VIRTUAL-RUNTIME_init_manager = "systemd"')
133 self.append_config('PREFERRED_RPROVIDER_virtual/network-configuration ??= "networkd-dhcp-conf"')
134 self.append_config('PACKAGECONFIG_pn-aktualizr = ""')
135 self.append_config('SOTA_DEPLOY_CREDENTIALS = "1"')
136 self.append_config('IMAGE_INSTALL_append += "aktualizr"')
137 self.append_config('IMAGE_INSTALL_append += " aktualizr-shared-prov"')
138 self.qemu, self.s = qemu_launch(machine='qemux86-64', uboot_enable='no')
139
140
115class ManualControlTests(OESelftestTestCase): 141class ManualControlTests(OESelftestTestCase):
116 142
117 def setUpLocal(self): 143 def setUpLocal(self):