From 36b9edcd698346fc637f2fe2f9360c83a79c69a4 Mon Sep 17 00:00:00 2001
From: Varac <varac@varac.net>
Date: Wed, 15 Dec 2021 16:41:34 +0100
Subject: [PATCH] Get admin secret in ci for taiko e2e tests

---
 .gitlab-ci.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4c557f96d..eeb0f554c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -711,6 +711,8 @@ prometheus-alerts:
   script:
     # Retry taiko tests 60 times until they succeed,
     # with a sleep interval of 10s in between tests
+    - export SSO_USERNAME=admin@${DOMAIN}
+    - export SSO_USER_PW=$(python3 -m stackspin $HOSTNAME secrets | grep userbackend_admin_password | cut -d'=' -f2)
     - bash ./.gitlab/ci_scripts/retry_cmd_until_success.sh 60 10 unbuffer python3 -m stackspin $HOSTNAME test --apps $RESOURCE | ts -i | ts
   artifacts:
     paths:
-- 
GitLab