mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-01 08:56:32 +00:00
test/k8s: Fix up node logging typo
We had a typo in the attestation tests that we've copied around a lot and Wainer spotted it in the authenticated registry tests, so let's fix it up now Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
committed by
Wainer dos Santos Moschetta
parent
0015c8ef51
commit
567b4d5788
@@ -103,7 +103,7 @@ teardown() {
|
|||||||
[ -n "${pod_name:-}" ] && kubectl describe "pod/${pod_name}" || true
|
[ -n "${pod_name:-}" ] && kubectl describe "pod/${pod_name}" || true
|
||||||
[ -n "${pod_config_dir:-}" ] && kubectl delete -f "${K8S_TEST_YAML}" || true
|
[ -n "${pod_config_dir:-}" ] && kubectl delete -f "${K8S_TEST_YAML}" || true
|
||||||
|
|
||||||
if [[ -n "${node_start_time}:-}" && -z "$BATS_TEST_COMPLETED" ]]; then
|
if [[ -n "${node_start_time:-}" && -z "$BATS_TEST_COMPLETED" ]]; then
|
||||||
echo "DEBUG: system logs of node '$node' since test start time ($node_start_time)"
|
echo "DEBUG: system logs of node '$node' since test start time ($node_start_time)"
|
||||||
print_node_journal "$node" "kata" --since "$node_start_time" || true
|
print_node_journal "$node" "kata" --since "$node_start_time" || true
|
||||||
fi
|
fi
|
||||||
|
@@ -131,7 +131,7 @@ teardown() {
|
|||||||
kubectl describe pods
|
kubectl describe pods
|
||||||
k8s_delete_all_pods_if_any_exists || true
|
k8s_delete_all_pods_if_any_exists || true
|
||||||
|
|
||||||
if [[ -n "${node_start_time}:-}" && -z "$BATS_TEST_COMPLETED" ]]; then
|
if [[ -n "${node_start_time:-}" && -z "$BATS_TEST_COMPLETED" ]]; then
|
||||||
echo "DEBUG: system logs of node '$node' since test start time ($node_start_time)"
|
echo "DEBUG: system logs of node '$node' since test start time ($node_start_time)"
|
||||||
print_node_journal "$node" "kata" --since "$node_start_time" || true
|
print_node_journal "$node" "kata" --since "$node_start_time" || true
|
||||||
fi
|
fi
|
||||||
|
@@ -99,7 +99,7 @@ teardown() {
|
|||||||
|
|
||||||
rm -f "${yaml_file}"
|
rm -f "${yaml_file}"
|
||||||
|
|
||||||
if [[ -n "${node_start_time}:-}" && -z "$BATS_TEST_COMPLETED" ]]; then
|
if [[ -n "${node_start_time:-}" && -z "$BATS_TEST_COMPLETED" ]]; then
|
||||||
echo "DEBUG: system logs of node '$node' since test start time ($node_start_time)"
|
echo "DEBUG: system logs of node '$node' since test start time ($node_start_time)"
|
||||||
print_node_journal "$node" "kata" --since "$node_start_time" || true
|
print_node_journal "$node" "kata" --since "$node_start_time" || true
|
||||||
fi
|
fi
|
||||||
|
@@ -114,7 +114,7 @@ teardown() {
|
|||||||
kubectl delete secret sealed-secret --ignore-not-found
|
kubectl delete secret sealed-secret --ignore-not-found
|
||||||
kubectl delete secret not-sealed-secret --ignore-not-found
|
kubectl delete secret not-sealed-secret --ignore-not-found
|
||||||
|
|
||||||
if [[ -n "${node_start_time}:-}" && -z "$BATS_TEST_COMPLETED" ]]; then
|
if [[ -n "${node_start_time:-}" && -z "$BATS_TEST_COMPLETED" ]]; then
|
||||||
echo "DEBUG: system logs of node '$node' since test start time ($node_start_time)"
|
echo "DEBUG: system logs of node '$node' since test start time ($node_start_time)"
|
||||||
print_node_journal "$node" "kata" --since "$node_start_time" || true
|
print_node_journal "$node" "kata" --since "$node_start_time" || true
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user