Skip to content

Commit

Permalink
test: shared cred provisioning for non-ostree case
Browse files Browse the repository at this point in the history
Signed-off-by: Kostiantyn Bushko <[email protected]>
  • Loading branch information
kbushgit committed Feb 14, 2020
1 parent 3d5d2b9 commit 66fefa1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
__pycache__
*.pyc
.idea/
1 change: 1 addition & 0 deletions lib/oeqa/selftest/cases/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def qemu_boot_image(imagename, **kwargs):
args.overlay = kwargs.get('overlay', None)
args.dry_run = kwargs.get('dry_run', False)
args.secondary_network = kwargs.get('secondary_network', False)
args.uboot_enable = kwargs.get('uboot_enable', 'yes')

qemu = QemuCommand(args)
cmdline = qemu.command_line()
Expand Down
26 changes: 26 additions & 0 deletions lib/oeqa/selftest/cases/updater_qemux86_64.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,32 @@ def test_provisioning(self):
verifyProvisioned(self, machine, hwid)


class SharedCredProvTestsNonOSTree(SharedCredProvTests):

def setUpLocal(self):
layer = "meta-updater-qemux86-64"
result = runCmd('bitbake-layers show-layers')
if re.search(layer, result.output) is None:
self.meta_qemu = metadir() + layer
runCmd('bitbake-layers add-layer "%s"' % self.meta_qemu)
else:
self.meta_qemu = None
self.append_config('MACHINE = "qemux86-64"')
self.append_config('SOTA_CLIENT_PROV = ""')
self.append_config('IMAGE_FSTYPES_remove = "ostreepush garagesign garagecheck"')
self.append_config('SOTA_HARDWARE_ID = "plain_reibekuchen_314"')

self.append_config('DISTRO = "poky"')
self.append_config('DISTRO_FEATURES_append = " systemd"')
self.append_config('VIRTUAL-RUNTIME_init_manager = "systemd"')
self.append_config('PREFERRED_RPROVIDER_virtual/network-configuration ??= "networkd-dhcp-conf"')
self.append_config('PACKAGECONFIG_pn-aktualizr = ""')
self.append_config('SOTA_DEPLOY_CREDENTIALS = "1"')
self.append_config('IMAGE_INSTALL_append += "aktualizr"')
self.append_config('IMAGE_INSTALL_append += " aktualizr-shared-prov"')
self.qemu, self.s = qemu_launch(machine='qemux86-64', uboot_enable='no')


class ManualControlTests(OESelftestTestCase):

def setUpLocal(self):
Expand Down

0 comments on commit 66fefa1

Please sign in to comment.