mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-16 08:26:16 +00:00
tests/k8s: call teardown_common in k8s-sandbox-vcpus-allocation.bats
The teardown_common will print the description of the running pods, kill them all and print the system's syslogs afterwards. Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
parent
4a79c2520d
commit
c8f40fe12c
@ -6,6 +6,7 @@
|
||||
#
|
||||
|
||||
load "${BATS_TEST_DIRNAME}/../../common.bash"
|
||||
load "${BATS_TEST_DIRNAME}/lib.sh"
|
||||
load "${BATS_TEST_DIRNAME}/tests_common.sh"
|
||||
|
||||
setup() {
|
||||
@ -14,11 +15,13 @@ setup() {
|
||||
[ "${KATA_HYPERVISOR}" = "qemu-runtime-rs" ] && skip "Requires CPU hotplug which isn't supported on ${KATA_HYPERVISOR} yet"
|
||||
[ "$(uname -m)" == "aarch64" ] && skip "See: https://github.com/kata-containers/kata-containers/issues/10928"
|
||||
|
||||
setup_common
|
||||
get_pod_config_dir
|
||||
pods=( "vcpus-less-than-one-with-no-limits" "vcpus-less-than-one-with-limits" "vcpus-more-than-one-with-limits" )
|
||||
expected_vcpus=( 1 1 2 )
|
||||
|
||||
yaml_file="${pod_config_dir}/pod-sandbox-vcpus-allocation.yaml"
|
||||
set_node "$yaml_file" "$node"
|
||||
add_allow_all_policy_to_yaml "${yaml_file}"
|
||||
}
|
||||
|
||||
@ -45,5 +48,5 @@ teardown() {
|
||||
kubectl logs ${pod}
|
||||
done
|
||||
|
||||
kubectl delete -f "${yaml_file}"
|
||||
teardown_common "${node}" "${node_start_time:-}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user