From 72d84c7f813a6e5968db49260b1d05080118962e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89douard=20Lopez?= Date: Mon, 14 Aug 2023 18:04:40 +0200 Subject: [PATCH] test: add kubernetes config check --- tests/_pure.test.fish | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/_pure.test.fish b/tests/_pure.test.fish index b2426553..16ae5767 100644 --- a/tests/_pure.test.fish +++ b/tests/_pure.test.fish @@ -302,3 +302,28 @@ setup source (dirname (status filename))/../conf.d/pure.fish echo $pure_symbol_ssh_prefix ) = "" + + +@test "configure: pure_enable_k8s" ( + set --erase pure_enable_k8s + source (dirname (status filename))/../conf.d/pure.fish + echo $pure_enable_k8s +) = false + +@test "configure: pure_symbol_k8s_prefix" ( + set --erase pure_symbol_k8s_prefix + source (dirname (status filename))/../conf.d/pure.fish + echo $pure_symbol_k8s_prefix +) = "☸" + +@test "configure: pure_color_k8s_context" ( + set --erase pure_color_k8s_context + source (dirname (status filename))/../conf.d/pure.fish + echo $pure_color_k8s_context +) = pure_color_success + +@test "configure: pure_color_k8s_namespace" ( + set --erase pure_color_k8s_namespace + source (dirname (status filename))/../conf.d/pure.fish + echo $pure_color_k8s_namespace +) = pure_color_primary