Skip to content

Commit

Permalink
Check if mock k2 server is reachable
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Jan 23, 2024
1 parent 1c7a962 commit 254de46
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/kolide-launcher.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,17 @@ pkgs.nixosTest {
in
''
if "${ci}":
start_all()
# Wait for mock k2 server to be online
k2server.start()
k2server.wait_for_unit("network-online.target")
k2server.wait_for_unit("mock-k2-server.service")
k2server.wait_for_open_port(80)
k2server.succeed("curl --fail http://app.kolide.test/version")
# Start VM for test launcher installation
machine.start()
# Ensure machine can reach mock k2 server
machine.wait_for_unit("network-online.target")
machine.succeed("curl --fail http://app.kolide.test/version")
with subtest("log in to MATE"):
machine.wait_for_unit("display-manager.service", timeout=120)
Expand Down

0 comments on commit 254de46

Please sign in to comment.