From 91438aaa90c3e5adf8444f64ab0d7eba1197dc63 Mon Sep 17 00:00:00 2001 From: Rebecca Mahany-Horton Date: Wed, 24 Jan 2024 15:29:49 -0500 Subject: [PATCH] Actually enable desktop this time --- tests/k2server.py | 2 +- tests/kolide-launcher.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/k2server.py b/tests/k2server.py index b570fd8..5bac1f1 100755 --- a/tests/k2server.py +++ b/tests/k2server.py @@ -77,7 +77,7 @@ def subsystems(): def get_subsystem(hash): if hash != agent_flags_hash: return '', 404 - return jsonify({"desktop_enabled": "1"}) + return jsonify({"desktop_enabled_v1": "enabled"}) # Version endpoint @application.route("/version", methods=['GET']) diff --git a/tests/kolide-launcher.nix b/tests/kolide-launcher.nix index b5795fd..bdbc829 100644 --- a/tests/kolide-launcher.nix +++ b/tests/kolide-launcher.nix @@ -102,7 +102,7 @@ pkgs.nixosTest { with subtest("launcher service runs and is set up correctly"): machine.systemctl("stop kolide-launcher.service") machine.systemctl("start kolide-launcher.service") - machine.wait_for_unit("kolide-launcher.service", timeout=120) + machine.wait_for_unit("kolide-launcher.service", timeout=60) machine.wait_for_file("/var/kolide-k2/k2device.kolide.com/debug.json") machine.sleep(60) machine.screenshot("test-screen2.png")