From 57e2f64c85c2863b1cd26fdebded3e8359b88d19 Mon Sep 17 00:00:00 2001 From: Lukasz Zajaczkowski Date: Thu, 28 Nov 2024 16:20:01 +0100 Subject: [PATCH] fix plural cd login --- test/plural/lib/cluster-setup.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/plural/lib/cluster-setup.yml b/test/plural/lib/cluster-setup.yml index 41df13bc..94fdc02e 100644 --- a/test/plural/lib/cluster-setup.yml +++ b/test/plural/lib/cluster-setup.yml @@ -5,8 +5,9 @@ input: region: '' steps: - - script: | - plural ops kubeconfig --cluster {{ .input.name }} --provider {{ .input.provider }} --region {{ .input.region }} - plural cd login --url https://console.{{ .input.name }}.onplural.sh/gql --token $(kubectl get secret console-auth-token -n plrl-console -o jsonpath='{.data.access-token}' | base64 --decode) + - script: plural ops kubeconfig --cluster {{ .input.name }} --provider {{ .input.provider }} --region {{ .input.region }} + assertions: + - result.code ShouldEqual 0 + - script: plural cd login --url https://console.{{ .input.name }}.onplural.sh/gql --token $(kubectl get secret console-auth-token -n plrl-console -o jsonpath='{.data.access-token}' | base64 --decode) assertions: - result.code ShouldEqual 0 \ No newline at end of file