test/k8s: Add basic attestation test

- Add basic test case to check that a ruuning
pod can use the api-server-rest (and attestation-agent
and confidential-data-hub indirectly) to get a resource
from a remote KBS

Fixes #9057

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
Co-authored-by: Linda Yu <linda.yu@intel.com>
Co-authored-by: stevenhorsman <steven@uk.ibm.com>
Co-authored-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
Gabriela Cervantes
2024-02-22 20:43:01 +00:00
committed by stevenhorsman
parent f0edec84f6
commit 6d85025e59
6 changed files with 110 additions and 9 deletions

View File

@@ -0,0 +1,19 @@
# Copyright (c) 2023-2024 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
apiVersion: v1
kind: Pod
metadata:
name: aa-test-cc
spec:
runtimeClassName: kata
containers:
- name: bash-curl
image: storytel/alpine-bash-curl:latest
imagePullPolicy: Always
command:
- sh
- -c
- |
curl http://127.0.0.1:8006/cdh/resource/default/aa/key; sleep 1000