Skip to content

Commit

Permalink
tests: k8s: skip tests that are not working for cloud hypervisor
Browse files Browse the repository at this point in the history
This PR skips k8s tests that are not working for cloud hypervisor runtime-rs.

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
  • Loading branch information
GabyCT committed Dec 11, 2023
1 parent 2bd773c commit 07b9726
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integration/kubernetes/k8s-attach-handlers.bats
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ load "${BATS_TEST_DIRNAME}/../../common.bash"
load "${BATS_TEST_DIRNAME}/tests_common.sh"

setup() {
[ "${KATA_HYPERVISOR}" == "cloud-hypervisor" ] && skip "test not working"
nginx_version="${docker_images_nginx_version}"
nginx_image="nginx:$nginx_version"

Expand All @@ -18,6 +19,7 @@ setup() {
}

@test "Running with postStart and preStop handlers" {
[ "${KATA_HYPERVISOR}" == "cloud-hypervisor" ] && skip "test not working"
# Create yaml
sed -e "s/\${nginx_version}/${nginx_image}/" \
"${pod_config_dir}/lifecycle-events.yaml" > "${pod_config_dir}/test-lifecycle-events.yaml"
Expand All @@ -34,6 +36,7 @@ setup() {
}

teardown(){
[ "${KATA_HYPERVISOR}" == "cloud-hypervisor" ] && skip "test not working"
# Debugging information
kubectl describe "pod/$pod_name"

Expand Down
3 changes: 3 additions & 0 deletions tests/integration/kubernetes/k8s-number-cpus.bats
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ load "${BATS_TEST_DIRNAME}/../../common.bash"
load "${BATS_TEST_DIRNAME}/tests_common.sh"

setup() {
[ "${KATA_HYPERVISOR}" == "cloud-hypervisor" ] && skip "test not working"
pod_name="cpu-test"
container_name="c1"
get_pod_config_dir
}

# Skip on aarch64 due to missing cpu hotplug related functionality.
@test "Check number of cpus" {
[ "${KATA_HYPERVISOR}" == "cloud-hypervisor" ] && skip "test not working"
# Create pod
kubectl create -f "${pod_config_dir}/pod-number-cpu.yaml"

Expand All @@ -40,6 +42,7 @@ setup() {
}

teardown() {
[ "${KATA_HYPERVISOR}" == "cloud-hypervisor" ] && skip "test not working"
# Debugging information
kubectl describe "pod/$pod_name"

Expand Down

0 comments on commit 07b9726

Please sign in to comment.