From e7b4e5e38644200b30afbb68f4de7446c05896e2 Mon Sep 17 00:00:00 2001 From: Niteesh Dubey Date: Tue, 9 Jul 2024 15:17:08 +0000 Subject: [PATCH] gha: add SNP attestation test This tests the attestation of SNP guest. Signed-off-by: Niteesh Dubey --- .github/workflows/run-kata-coco-tests.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/run-kata-coco-tests.yaml b/.github/workflows/run-kata-coco-tests.yaml index 8c96b8c2a7..25b95e6c49 100644 --- a/.github/workflows/run-kata-coco-tests.yaml +++ b/.github/workflows/run-kata-coco-tests.yaml @@ -174,6 +174,8 @@ jobs: KUBECONFIG: /home/kata/.kube/config KUBERNETES: "vanilla" USING_NFD: "false" + KBS: "true" + KBS_INGRESS: "nodeport" K8S_TEST_HOST_TYPE: "baremetal" SNAPSHOTTER: ${{ matrix.snapshotter }} PULL_TYPE: ${{ matrix.pull-type }} @@ -199,6 +201,18 @@ jobs: timeout-minutes: 10 run: bash tests/integration/kubernetes/gha-run.sh deploy-kata-snp + - name: Uninstall previous `kbs-client` + timeout-minutes: 10 + run: bash tests/integration/kubernetes/gha-run.sh uninstall-kbs-client + + - name: Deploy CoCo KBS + timeout-minutes: 10 + run: bash tests/integration/kubernetes/gha-run.sh deploy-coco-kbs + + - name: Install `kbs-client` + timeout-minutes: 10 + run: bash tests/integration/kubernetes/gha-run.sh install-kbs-client + - name: Run tests timeout-minutes: 30 run: bash tests/integration/kubernetes/gha-run.sh run-tests @@ -211,6 +225,10 @@ jobs: if: always() run: bash tests/integration/kubernetes/gha-run.sh cleanup-snapshotter + - name: Delete CoCo KBS + if: always() + run: bash tests/integration/kubernetes/gha-run.sh delete-coco-kbs + # Generate jobs for testing CoCo on non-TEE environments run-k8s-tests-coco-nontee: strategy: