-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alexander V. Nikolaev <[email protected]>
- Loading branch information
Showing
3 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,19 +77,20 @@ in | |
admin = lib.head adminConfig.addresses; | ||
services = [ | ||
"[email protected]" | ||
"microvm@foot-vm.service" | ||
"microvm@chromium-vm.service" | ||
"poweroff.target" | ||
"reboot.target" | ||
"sleep.target" | ||
"suspend.target" | ||
]; | ||
tls = mkTls "ghaf-host"; | ||
}; | ||
systemd.services."microvm@foot-vm" = { | ||
systemd.services."microvm@chromium-vm" = { | ||
script = '' | ||
# Do nothing script, simulating microvm service | ||
while true; do sleep 10; done | ||
''; | ||
wantedBy = lib.mkForce []; | ||
}; | ||
}; | ||
guivm = | ||
|
@@ -302,6 +303,7 @@ in | |
time.sleep(1) | ||
# Ensure, that hostvm's agent registered in admin service. It take ~10 seconds to spin up and register itself | ||
print(hostvm.succeed("${cli} --addr ${admin.addr} --port ${admin.port} --cacert ${nodes.hostvm.givc.host.tls.caCertPath} --cert ${nodes.hostvm.givc.host.tls.certPath} --key ${nodes.hostvm.givc.host.tls.keyPath} ${if tls then "" else "--notls"} --name ${admin.name} test ensure --retry 60 ${expected}")) | ||
hostvm.require_unit_state("microvm@chromium-vm", "inactive") # MicroVM should be down! | ||
with subtest("setup gui vm"): | ||
# Ensure that sway in guiVM finished startup | ||
|
@@ -324,6 +326,7 @@ in | |
with subtest("Clean run"): | ||
print(hostvm.succeed("${cli} --addr ${admin.addr} --port ${admin.port} --cacert ${nodes.hostvm.givc.host.tls.caCertPath} --cert ${nodes.hostvm.givc.host.tls.certPath} --key ${nodes.hostvm.givc.host.tls.keyPath} ${if tls then "" else "--notls"} --name ${admin.name} start --vm chromium-vm foot")) | ||
hostvm.require_unit_state("microvm@chromium-vm", "active") # MicroVM should be up! | ||
time.sleep(10) # Give few seconds to application to spin up | ||
wait_for_window("ghaf@appvm") | ||
|