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" description: "The resource group to use"
required: false required: false
test: 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 required: true
sonobuoyTestSuiteCmd: sonobuoyTestSuiteCmd:
description: "The sonobuoy test suite to run." description: "The sonobuoy test suite to run."
@ -50,7 +50,7 @@ runs:
using: "composite" using: "composite"
steps: steps:
- name: Check input - 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 shell: bash
run: | run: |
echo "Invalid input for test field: ${{ inputs.test }}" echo "Invalid input for test field: ${{ inputs.test }}"
@ -117,6 +117,11 @@ runs:
# Test payloads # 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 - name: Run sonobuoy quick test
if: inputs.test == 'sonobuoy quick' if: inputs.test == 'sonobuoy quick'
uses: ./.github/actions/e2e_sonobuoy uses: ./.github/actions/e2e_sonobuoy

View File

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

View File

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