From 887ffb3536f8dfc72d5478c4ac97acbaadeb3ef0 Mon Sep 17 00:00:00 2001 From: Jonathan Jin Date: Sun, 9 Jun 2024 11:54:37 +0100 Subject: [PATCH] fix integration tests --- tests/integration/test-integration.el | 2 ++ tests/integration/test-ui.el | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration/test-integration.el b/tests/integration/test-integration.el index e6b8d88..d6c082b 100644 --- a/tests/integration/test-integration.el +++ b/tests/integration/test-integration.el @@ -93,6 +93,8 @@ (describe "kele-get" (it "fetches the resource" + ;; FIXME: This should not be necessary for all-namespace GET-ing; see #222 + (kele-namespace-switch-for-current-context "kube-system") (async-wait (kele--cache-update kele--global-discovery-cache)) (async-wait (kele--cache-update kele--global-kubeconfig-cache)) (with-simulated-input diff --git a/tests/integration/test-ui.el b/tests/integration/test-ui.el index d1d61f1..5260b25 100644 --- a/tests/integration/test-ui.el +++ b/tests/integration/test-ui.el @@ -29,7 +29,7 @@ (expect (buffer-string) :to-match "--context=kind-kele-test-cluster0"))) (it "sets the current context's default namespace as the default value" (with-current-buffer transient--buffer-name - (expect (buffer-string) :to-match "--namespace=kube-public")))) + (expect (buffer-string) :to-match "--namespace=kube-system")))) ;; TODO: This is blocked on some odd behavior when calling Transient from ;; batch mode. See: magit/transient#180