From e5e4170a65d668d1bc38dec2380d50b9e93e9919 Mon Sep 17 00:00:00 2001 From: Varac <varac@varac.net> Date: Wed, 24 Aug 2022 15:04:24 +0200 Subject: [PATCH] Make CYPRESS_PROJECT_ID and CYPRESS_RECORD_KEY optional --- .gitignore | 5 ++++- templates/tests/cypress-test-nc-oo.yaml | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1cb9c00d..a1e149a9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ -values-local.yaml charts *.swp node_modules/ cypress/videos/ cypress/screenshots/ +# Ignore local dev files +Taskfile.yaml +values-stackspin.yaml +values-local.yaml diff --git a/templates/tests/cypress-test-nc-oo.yaml b/templates/tests/cypress-test-nc-oo.yaml index 16395e85..6d712118 100644 --- a/templates/tests/cypress-test-nc-oo.yaml +++ b/templates/tests/cypress-test-nc-oo.yaml @@ -49,10 +49,14 @@ spec: {{- end }} - name: CYPRESS_ONLYOFFICE_URL value: {{ .Values.onlyoffice.server_name }} + {{- if .Values.tests.cypress.projectId }} - name: CYPRESS_PROJECT_ID value: {{ .Values.tests.cypress.projectId }} + {{- end }} + {{- if .Values.tests.cypress.recordKey }} - name: CYPRESS_RECORD_KEY value: {{ .Values.tests.cypress.recordKey }} + {{- end }} {{- if .Values.tests.cypress.commitInfo }} {{- if .Values.tests.cypress.commitInfo.branch }} - name: COMMIT_INFO_BRANCH -- GitLab