Verified Commit 7f03636a authored by Bohdan Parkhomchuk's avatar Bohdan Parkhomchuk 💬 Committed by GitLab
Browse files

refactor(e2e): declarative test runner with live logs

parent 26965e33
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -973,7 +973,9 @@ e2e:
  after_script:
    - bash e2e/scripts/teardown.sh --sha="${CI_COMMIT_SHORT_SHA}" -y
  artifacts:
    when: on_failure
    when: always
    paths:
      - e2e/diagnostics/
    reports:
      junit: e2e/diagnostics/junit.xml
    expire_in: 3 days
+17 −0
Original line number Diff line number Diff line
@@ -27,6 +27,23 @@ stringData:
---
apiVersion: v1
kind: Secret
metadata:
  name: gitlab-gitlab-initial-root-password
  namespace: {{ .Values.namespaces.gitlab }}
type: Opaque
stringData:
  password: {{ .Values.secrets.gitlabRootPass | quote }}
---
apiVersion: v1
kind: Secret
metadata:
  name: gitlab-root-credentials
type: Opaque
stringData:
  password: {{ .Values.secrets.gitlabRootPass | quote }}
---
apiVersion: v1
kind: Secret
metadata:
  name: gkg-secrets
type: Opaque
+1 −0
Original line number Diff line number Diff line
@@ -11,3 +11,4 @@ secrets:
  chDatalakePass: ""
  chGraphPass: ""
  chGraphReadPass: ""
  gitlabRootPass: ""
+10 −4
Original line number Diff line number Diff line
@@ -17,15 +17,21 @@ spec:
          pip install --quiet --disable-pip-version-check --root-user-action=ignore \
            robotframework=={{ .Values.robotframework.version }} \
            robotframework-requests=={{ .Values.robotframework.requestsVersion }} &&
          robot --outputdir /tmp/results --consolecolors off --exitonfailure /tests/
          robot --outputdir /tmp/results --xunit /tmp/results/xunit.xml \
            --consolecolors off --exitonfailure /tests/
          RC=$?
          echo "---XUNIT_REPORT_START---"
          cat /tmp/results/xunit.xml 2>/dev/null
          echo "---XUNIT_REPORT_END---"
          exit $RC
        env:
        - name: GITLAB_URL
          value: "http://gitlab-webservice-default.{{ .Values.namespaces.gitlab }}.svc.cluster.local:8181"
        - name: GITLAB_PAT
        - name: GITLAB_ROOT_PASSWORD
          valueFrom:
            secretKeyRef:
              name: {{ .Values.credentialsSecret }}
              key: gitlab-pat
              name: {{ .Values.rootCredentialsSecret }}
              key: password
        volumeMounts:
        - name: tests
          mountPath: /tests
+1 −1
Original line number Diff line number Diff line
@@ -17,5 +17,5 @@ namespaces:
  gkg: ""

configMap: e2e-robot-tests
credentialsSecret: e2e-test-credentials
rootCredentialsSecret: gitlab-root-credentials
ttlSecondsAfterFinished: 600
Loading