Merge pull request #10517 from microsoft/saulparedes/remove_manifest_v1_test

tests: remove manifest v1 test
This commit is contained in:
Fabiano Fidêncio 2024-11-09 23:40:51 +01:00 committed by GitHub
commit 0d8c4ce251
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 3 additions and 64 deletions

View File

@ -24,4 +24,3 @@ kubernetes:
- k8s-number-cpus
- k8s-oom
- k8s-qos-pods
- k8s-pod-manifest-v1.bats

View File

@ -12,4 +12,3 @@ kubernetes:
- k8s-limit-range
- k8s-number-cpus
- k8s-oom
- k8s-pod-manifest-v1.bats

View File

@ -7,4 +7,3 @@ kubernetes:
- k8s-caps
- k8s-inotify
- k8s-sandbox-vcpus-allocation # see https://github.com/kata-containers/kata-containers/issues/9093
- k8s-pod-manifest-v1.bats

View File

@ -1,31 +0,0 @@
#!/usr/bin/env bats
#
# Copyright (c) 2024 Microsoft.
#
# SPDX-License-Identifier: Apache-2.0
#
load "${BATS_TEST_DIRNAME}/../../common.bash"
load "${BATS_TEST_DIRNAME}/tests_common.sh"
setup() {
get_pod_config_dir
pod_name="nginxhttps"
pod_yaml="${pod_config_dir}/pod-manifest-v1.yaml"
auto_generate_policy "${pod_config_dir}" "${pod_yaml}"
}
@test "Deploy manifest v1 pod" {
kubectl create -f "${pod_yaml}"
# Wait for pod to start
kubectl wait --for=condition=Ready --timeout=$timeout pod "$pod_name"
}
teardown() {
# Debugging information
kubectl describe "pod/$pod_name"
kubectl delete pod "$pod_name"
}

View File

@ -86,15 +86,6 @@ else
"k8s-nginx-connectivity.bats" \
)
# When testing auto-generated policy, the genpolicy tool:
# - Is able to pull this older format container image by pulling through containerd.
# - Fails to pull the same container image by using the oci_distribution crate.
# Pulling through containerd might not be practical for all users, so both pulling
# methods are supported for most container images.
if [ "${GENPOLICY_PULL_METHOD}" == "containerd" ]; then
K8S_TEST_SMALL_HOST_UNION+=("k8s-pod-manifest-v1.bats")
fi
K8S_TEST_NORMAL_HOST_UNION=( \
"k8s-number-cpus.bats" \
"k8s-parallel.bats" \

View File

@ -1,18 +0,0 @@
#
# Copyright (c) 2024 Microsoft
#
# SPDX-License-Identifier: Apache-2.0
#
apiVersion: v1
kind: Pod
metadata:
name: nginxhttps
spec:
runtimeClassName: kata
terminationGracePeriodSeconds: 0
containers:
- name: nginxhttps
image: "docker.io/ymqytw/nginxhttps:1.5"
ports:
- containerPort: 80