Skip to content

Commit

Permalink
Merge pull request #1731 from RedHatInsights/integration-test-konflux…
Browse files Browse the repository at this point in the history
…-cypress

chore: add bonfire template task
  • Loading branch information
Hyperkid123 authored Dec 13, 2024
2 parents 3285117 + ba25cc7 commit f333e07
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .tekton/integration-tests/cypress-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,31 @@ spec:
# Output the standardized TEST_OUTPUT result in JSON form
TEST_OUTPUT=$(jq -rc --arg date $(date -u --iso-8601=seconds) --arg RESULT "${RESULT}" --null-input \
'{result: $RESULT, timestamp: $date, failures: 0, successes: 1, warnings: 0}')
echo -n "${TEST_OUTPUT}" | tee $(results.TEST_OUTPUT.path)
echo -n "${TEST_OUTPUT}" | tee $(results.TEST_OUTPUT.path)
- name: cypress-e2e-run
description: Run Cypress E2E tests
taskRef:
name: cypress-e2e
params:
- name: SNAPSHOT
value: $(params.SNAPSHOT)
- name: BONFIRE_IMAGE
type: string
description: The container Bonfire image to use for the tekton tasks
default: quay.io/redhat-services-prod/hcm-eng-prod-tenant/cicd-tools:latest
taskSpec:
params:
- name: SNAPSHOT
- name: BONFIRE_IMAGE
finally:
- name: ephemeral-cleanup
taskSpec:
steps:
- name: release-namespace
image: "$(params.BONFIRE_IMAGE)"
script: |
#!/bin/bash
set -e
echo "Releasing ephemeral namespace"
# this will fail as we don't have credentials to do this for now
release-ns.sh "foo" "bar"

0 comments on commit f333e07

Please sign in to comment.