From e7d027fa1d1cdf49a65e1ebc1746d79c48354842 Mon Sep 17 00:00:00 2001 From: Philipp Eder Date: Fri, 14 Feb 2025 11:11:42 +0100 Subject: [PATCH] Remove smoketests as it is moved to functional --- .github/workflows/control.yml | 8 +---- .github/workflows/smoketest.yaml | 51 -------------------------------- 2 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 .github/workflows/smoketest.yaml diff --git a/.github/workflows/control.yml b/.github/workflows/control.yml index 4f5861a83..236889de9 100644 --- a/.github/workflows/control.yml +++ b/.github/workflows/control.yml @@ -143,17 +143,11 @@ jobs: email: ${{ secrets.GREENBONE_BOT_MAIL }} gpg_key: ${{ secrets.GPG_KEY }} gpg_pass: ${{ secrets.GPG_PASSPHRASE }} - smoketests: + helm: if: github.event_name != 'pull_request' needs: [container, init] - uses: ./.github/workflows/smoketest.yaml - with: - docker_repo: ${{ github.repository }} - docker_tag: ${{needs.init.outputs.docker_test_tag}} - helm: permissions: packages: write - needs: [smoketests] if: vars.IMAGE_REGISTRY != '' uses: ./.github/workflows/push-helm-chart.yml secrets: diff --git a/.github/workflows/smoketest.yaml b/.github/workflows/smoketest.yaml deleted file mode 100644 index 66cff980f..000000000 --- a/.github/workflows/smoketest.yaml +++ /dev/null @@ -1,51 +0,0 @@ -name: Smoketests - -on: - workflow_call: - inputs: - docker_repo: - type: string - default: "greenbone/openvas-scanner" - docker_tag: - required: true - type: string - -# smoke test definition. -# It depends on build.yml that is controlled via control.yml -# -jobs: - openvasd: - runs-on: self-hosted-generic - steps: - - uses: actions/checkout@v4 - - name: 'Set openvas-scanner-image' - run: | - echo "openvas:" >> st.yaml - echo " repository: ${{ inputs.docker_repo }}" >> st.yaml - echo " pullPolicy: Always" >> st.yaml - echo " tag: \"${{ inputs.docker_tag }}\"" >> st.yaml - cat st.yaml - - name: Start a local k8s cluster - uses: jupyterhub/action-k3s-helm@v4 - with: - k3s-channel: latest - metrics-enabled: false - - name: deploy openvasd - run: | - cd rust/examples/tls/self-signed - make delete deploy - cd - - - helm uninstall openvasd --namespace openvasd|| true - helm install --namespace openvasd --create-namespace openvasd charts/openvasd/ --values charts/openvasd/values.yaml --values charts/openvasd/mtls-wo-ingress.yaml --values st.yaml - - kubectl rollout status --watch --timeout 600s deployment/openvasd --namespace openvasd - echo "OPENVASD_SERVER=https://$(kubectl get svc -n openvasd | awk 'FNR == 2 {print $(3)}')" >> $GITHUB_ENV - - name: smoketest - working-directory: rust/crates/smoketest - env: - SCAN_CONFIG: configs/simple_scan_ssh_only.json - CLIENT_KEY: ../examples/tls/self-signed/client.rsa - CLIENT_CERT: ../examples/tls/self-signed/client.pem - run: | - make build run