From bd3c2595ac2c7e8b8e054d2f427b900e311d4ee7 Mon Sep 17 00:00:00 2001 From: miampf Date: Thu, 13 Feb 2025 13:55:09 +0100 Subject: [PATCH] Wrote structure for e2e test --- .github/actions/e2e_test/action.yml | 6 +++++- .github/workflows/e2e-ssh.yml | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/e2e-ssh.yml diff --git a/.github/actions/e2e_test/action.yml b/.github/actions/e2e_test/action.yml index 505e61d4c..8554afa67 100644 --- a/.github/actions/e2e_test/action.yml +++ b/.github/actions/e2e_test/action.yml @@ -56,7 +56,7 @@ inputs: description: "Azure credentials authorized to create an IAM configuration." required: true test: - description: "The test to run. Can currently be one of [sonobuoy full, sonobuoy quick, sonobuoy conformance, autoscaling, lb, perf-bench, verify, recover, malicious join, nop, upgrade]." + description: "The test to run. Can currently be one of [sonobuoy full, sonobuoy quick, sonobuoy conformance, autoscaling, lb, perf-bench, verify, recover, malicious join, nop, upgrade, emergency ssh]." required: true sonobuoyTestSuiteCmd: description: "The sonobuoy test suite to run." @@ -444,3 +444,7 @@ runs: s3AccessKey: ${{ inputs.s3AccessKey }} s3SecretKey: ${{ inputs.s3SecretKey }} githubToken: ${{ inputs.githubToken }} + + - name: Run emergency ssh test + if: inputs.test == 'emergency ssh' + uses: ./.github/actions/e2e_emergency_ssh diff --git a/.github/workflows/e2e-ssh.yml b/.github/workflows/e2e-ssh.yml new file mode 100644 index 000000000..2c08e0b05 --- /dev/null +++ b/.github/workflows/e2e-ssh.yml @@ -0,0 +1,19 @@ +name: e2e test emergency ssh + +on: + workflow_dispatch: + push: + paths: + - cli/internal/cmd/ssh*.go + - terraform/infrastructure/aws/** + - terraform/infrastructure/azure/** + - terraform/infrastructure/gcp/** + +jobs: + ssh: + strategy: + matrix: + csp: [aws, azure, gcp] + - name: Checkout + id: checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2