e2e: add nop payload to only test infra creation

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2022-10-28 15:51:43 +02:00
parent 42a2f124e1
commit 050223e4c5
3 changed files with 9 additions and 2 deletions

View File

@ -40,7 +40,7 @@ inputs:
description: "The resource group to use"
required: false
test:
description: "The test to run. Can currently be one of [sonobuoy full, sonobuoy quick, autoscaling]."
description: "The test to run. Can currently be one of [sonobuoy full, sonobuoy quick, autoscaling, nop]."
required: true
sonobuoyTestSuiteCmd:
description: "The sonobuoy test suite to run."
@ -50,7 +50,7 @@ runs:
using: "composite"
steps:
- name: Check input
if: ${{ !contains(fromJson('["sonobuoy full", "sonobuoy quick", "autoscaling"]'), inputs.test) }}
if: ${{ !contains(fromJson('["sonobuoy full", "sonobuoy quick", "autoscaling", "nop"]'), inputs.test) }}
shell: bash
run: |
echo "Invalid input for test field: ${{ inputs.test }}"
@ -117,6 +117,11 @@ runs:
# Test payloads
#
- name: Nop test payload
if: inputs.test == 'nop'
shell: bash
run: echo "::warning::This test has a nop payload. It doesn't run any tests."
- name: Run sonobuoy quick test
if: inputs.test == 'sonobuoy quick'
uses: ./.github/actions/e2e_sonobuoy

View File

@ -26,6 +26,7 @@ on:
- "sonobuoy quick"
- "sonobuoy full"
- "autoscaling"
- "nop"
required: true
kubernetesVersion:
description: "Kubernetes version to create the cluster from."

View File

@ -26,6 +26,7 @@ on:
- "sonobuoy quick"
- "sonobuoy full"
- "autoscaling"
- "nop"
required: true
kubernetesVersion:
description: "Kubernetes version to create the cluster from."