-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker: add support for crio based e2e tests #1919
docker: add support for crio based e2e tests #1919
Conversation
Depends on crio support for CoCo operator - confidential-containers/operator#376 Here is a sample run.
provision_docker.properties file used
|
dc4c635
to
bed1dc9
Compare
bed1dc9
to
744f78a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good, once the dependent operator change is made I'll give it a try
A new parameter CONTAINER_RUNTIME is added. Default value is "containerd". Set the value to "crio" to execute e2e tests on a crio based kind cluster. Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
DoTestCreateSimplePod should work with both cri-o and the default containerd runtime Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
744f78a
to
df2790f
Compare
Ping used to check external ip access requires privileged capabilities. Introduce a new method to create priv pod and execute the test case Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
@stevenhorsman I found that DoTestCreatePeerPodContainerWithExternalIPAccess was not working due to capabilities issue. So fixed it. But didn't enable it for libvirt yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now the operator changes are merged I've tried it out and the non KBS tests worked fine:
# make CLOUD_PROVIDER=docker TEST_PROVISION="yes" TEST_PROVISION_FILE=$(pwd)/test/provisioner/docker/provision_docker.properties test-e2e
go test -v -tags=docker -timeout 60m -count=1 -run '' ./test/e2e
time="2024-07-15T03:23:38-07:00" level=info msg="Do setup"
time="2024-07-15T03:23:38-07:00" level=info msg="Container runtime: crio"
time="2024-07-15T03:23:38-07:00" level=info msg="Cluster provisioning"
Check if the cluster peer-pods already exists
No kind clusters found.
fs.inotify.max_user_watches = 524288
fs.inotify.max_user_instances = 512
runtime: crio
Creating a kind cluster with crio runtime
Creating a kind cluster
Creating cluster "peer-pods" ...
• Ensuring node image (quay.io/confidential-containers/kind-crio:v1.29.4) 🖼 ...
✓ Ensuring node image (quay.io/confidential-containers/kind-crio:v1.29.4) 🖼
• Preparing nodes 📦 📦 ...
✓ Preparing nodes 📦 📦
• Writing configuration 📜 ...
✓ Writing configuration 📜
• Starting control-plane 🕹️ ...
✓ Starting control-plane 🕹️
• Installing StorageClass 💾 ...
✓ Installing StorageClass 💾
• Joining worker nodes 🚜 ...
✓ Joining worker nodes 🚜
Set kubectl context to "kind-peer-pods"
You can now use your cluster with:
kubectl cluster-info --context kind-peer-pods
Not sure what to do next? 😅 Check out https://kind.sigs.k8s.io/docs/user/quick-start/
poddisruptionbudget.policy/calico-kube-controllers created
serviceaccount/calico-kube-controllers created
serviceaccount/calico-node created
serviceaccount/calico-cni-plugin created
configmap/calico-config created
customresourcedefinition.apiextensions.k8s.io/bgpconfigurations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/bgpfilters.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/bgppeers.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/blockaffinities.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/caliconodestatuses.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/clusterinformations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/felixconfigurations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/globalnetworkpolicies.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/globalnetworksets.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/hostendpoints.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ipamblocks.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ipamconfigs.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ipamhandles.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ippools.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ipreservations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/kubecontrollersconfigurations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/networkpolicies.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/networksets.crd.projectcalico.org created
clusterrole.rbac.authorization.k8s.io/calico-kube-controllers created
clusterrole.rbac.authorization.k8s.io/calico-node created
clusterrole.rbac.authorization.k8s.io/calico-cni-plugin created
clusterrolebinding.rbac.authorization.k8s.io/calico-kube-controllers created
clusterrolebinding.rbac.authorization.k8s.io/calico-node created
clusterrolebinding.rbac.authorization.k8s.io/calico-cni-plugin created
daemonset.apps/calico-node created
deployment.apps/calico-kube-controllers created
Adding worker label to nodes belonging to: peer-pods
time="2024-07-15T03:25:03-07:00" level=info msg="Install Cloud API Adaptor"
time="2024-07-15T03:25:03-07:00" level=info msg="Deploy the Cloud API Adaptor"
time="2024-07-15T03:25:03-07:00" level=info msg="Install the controller manager"
Wait for the cc-operator-controller-manager deployment be available
time="2024-07-15T03:26:07-07:00" level=info msg="Customize the overlay yaml file"
time="2024-07-15T03:26:09-07:00" level=info msg="Install the cloud-api-adaptor"
Wait for the cc-operator-daemon-install DaemonSet be available
Wait for the pod cc-operator-daemon-install-xncb2 be ready
Wait for the cloud-api-adaptor-daemonset DaemonSet be available
Wait for the pod cloud-api-adaptor-daemonset-qqc4m be ready
Wait for the kata-remote runtimeclass be created
time="2024-07-15T03:27:24-07:00" level=info msg="Installing peerpod-ctrl"
time="2024-07-15T03:27:46-07:00" level=info msg="Wait for the peerpod-ctrl deployment to be available"
time="2024-07-15T03:28:11-07:00" level=info msg="Creating namespace 'coco-pp-e2e-test-c337e1b8'..."
time="2024-07-15T03:28:11-07:00" level=info msg="Wait for namespace 'coco-pp-e2e-test-c337e1b8' be ready..."
time="2024-07-15T03:28:16-07:00" level=info msg="Wait for default serviceaccount in namespace 'coco-pp-e2e-test-c337e1b8'..."
time="2024-07-15T03:28:16-07:00" level=info msg="default serviceAccount exists, namespace 'coco-pp-e2e-test-c337e1b8' is ready for use"
=== RUN TestDockerCreateSimplePod
=== RUN TestDockerCreateSimplePod/SimplePeerPod_test
assessment_runner.go:265: Waiting for containers in pod: simple-test are ready
=== RUN TestDockerCreateSimplePod/SimplePeerPod_test/PodVM_is_created
time="2024-07-15T03:28:36-07:00" level=info msg="Deleting pod simple-test..."
time="2024-07-15T03:28:41-07:00" level=info msg="Pod simple-test has been successfully deleted within 60s"
--- PASS: TestDockerCreateSimplePod (25.07s)
--- PASS: TestDockerCreateSimplePod/SimplePeerPod_test (25.07s)
--- PASS: TestDockerCreateSimplePod/SimplePeerPod_test/PodVM_is_created (0.01s)
=== RUN TestDockerCreatePodWithConfigMap
=== RUN TestDockerCreatePodWithConfigMap/ConfigMapPeerPod_test
assessment_runner.go:265: Waiting for containers in pod: busybox-configmap-pod are ready
=== RUN TestDockerCreatePodWithConfigMap/ConfigMapPeerPod_test/Configmap_is_created_and_contains_data
assessment_runner.go:415: Output when execute test commands:
time="2024-07-15T03:29:01-07:00" level=info msg="Deleting Configmap... busybox-configmap"
time="2024-07-15T03:29:01-07:00" level=info msg="Deleting pod busybox-configmap-pod..."
time="2024-07-15T03:29:06-07:00" level=info msg="Pod busybox-configmap-pod has been successfully deleted within 60s"
--- PASS: TestDockerCreatePodWithConfigMap (25.18s)
--- PASS: TestDockerCreatePodWithConfigMap/ConfigMapPeerPod_test (25.18s)
--- PASS: TestDockerCreatePodWithConfigMap/ConfigMapPeerPod_test/Configmap_is_created_and_contains_data (5.12s)
=== RUN TestDockerCreatePodWithSecret
=== RUN TestDockerCreatePodWithSecret/SecretPeerPod_test
assessment_runner.go:265: Waiting for containers in pod: busybox-secret-pod are ready
=== RUN TestDockerCreatePodWithSecret/SecretPeerPod_test/Secret_has_been_created_and_contains_data
assessment_runner.go:415: Output when execute test commands:
time="2024-07-15T03:29:26-07:00" level=info msg="Deleting Secret... busybox-secret"
time="2024-07-15T03:29:26-07:00" level=info msg="Deleting pod busybox-secret-pod..."
time="2024-07-15T03:29:31-07:00" level=info msg="Pod busybox-secret-pod has been successfully deleted within 60s"
--- PASS: TestDockerCreatePodWithSecret (25.14s)
--- PASS: TestDockerCreatePodWithSecret/SecretPeerPod_test (25.14s)
--- PASS: TestDockerCreatePodWithSecret/SecretPeerPod_test/Secret_has_been_created_and_contains_data (5.08s)
=== RUN TestDockerCreatePeerPodContainerWithExternalIPAccess
=== RUN TestDockerCreatePeerPodContainerWithExternalIPAccess/IPAccessPeerPod_test
assessment_runner.go:265: Waiting for containers in pod: busybox-priv are ready
=== RUN TestDockerCreatePeerPodContainerWithExternalIPAccess/IPAccessPeerPod_test/Peer_Pod_Container_Connected_to_External_IP
assessment_runner.go:415: Output when execute test commands:
time="2024-07-15T03:29:51-07:00" level=info msg="Deleting pod busybox-priv..."
time="2024-07-15T03:29:56-07:00" level=info msg="Pod busybox-priv has been successfully deleted within 60s"
--- PASS: TestDockerCreatePeerPodContainerWithExternalIPAccess (25.27s)
--- PASS: TestDockerCreatePeerPodContainerWithExternalIPAccess/IPAccessPeerPod_test (25.27s)
--- PASS: TestDockerCreatePeerPodContainerWithExternalIPAccess/IPAccessPeerPod_test/Peer_Pod_Container_Connected_to_External_IP (5.24s)
=== RUN TestDockerCreatePeerPodWithJob
=== RUN TestDockerCreatePeerPodWithJob/JobPeerPod_test
=== RUN TestDockerCreatePeerPodWithJob/JobPeerPod_test/Job_has_been_created
assessment_helpers.go:291: SUCCESS: job-pi-gx5fd - Completed - LOG: 3.14156
time="2024-07-15T03:30:07-07:00" level=info msg="Output Log from Pod: 3.14156"
time="2024-07-15T03:30:07-07:00" level=info msg="Deleting Job... job-pi"
time="2024-07-15T03:30:07-07:00" level=info msg="Deleting pods created by job... job-pi-gx5fd"
--- PASS: TestDockerCreatePeerPodWithJob (10.14s)
--- PASS: TestDockerCreatePeerPodWithJob/JobPeerPod_test (10.14s)
--- PASS: TestDockerCreatePeerPodWithJob/JobPeerPod_test/Job_has_been_created (0.06s)
=== RUN TestDockerCreatePeerPodAndCheckUserLogs
common_suite.go:165: Skipping Test until issue kata-containers/kata-containers#5732 is Fixed
--- SKIP: TestDockerCreatePeerPodAndCheckUserLogs (0.00s)
=== RUN TestDockerCreatePeerPodAndCheckWorkDirLogs
=== RUN TestDockerCreatePeerPodAndCheckWorkDirLogs/WorkDirPeerPod_test
=== RUN TestDockerCreatePeerPodAndCheckWorkDirLogs/WorkDirPeerPod_test/Peer_pod_with_work_directory_has_been_created
assessment_runner.go:362: Log output of peer pod:/other
time="2024-07-15T03:30:27-07:00" level=info msg="Deleting pod workdirpod..."
time="2024-07-15T03:30:32-07:00" level=info msg="Pod workdirpod has been successfully deleted within 60s"
--- PASS: TestDockerCreatePeerPodAndCheckWorkDirLogs (25.06s)
--- PASS: TestDockerCreatePeerPodAndCheckWorkDirLogs/WorkDirPeerPod_test (25.06s)
--- PASS: TestDockerCreatePeerPodAndCheckWorkDirLogs/WorkDirPeerPod_test/Peer_pod_with_work_directory_has_been_created (5.02s)
=== RUN TestDockerCreatePeerPodAndCheckEnvVariableLogsWithImageOnly
=== RUN TestDockerCreatePeerPodAndCheckEnvVariableLogsWithImageOnly/EnvVariablePeerPodWithImageOnly_test
=== RUN TestDockerCreatePeerPodAndCheckEnvVariableLogsWithImageOnly/EnvVariablePeerPodWithImageOnly_test/Peer_pod_with_environmental_variables_has_been_created
assessment_runner.go:362: Log output of peer pod:KUBERNETES_SERVICE_PORT=443
KUBERNETES_PORT=tcp://10.96.0.1:443
HOSTNAME=env-variable-in-image
SHLVL=1
HOME=/root
TERM=xterm
KUBERNETES_PORT_443_TCP_ADDR=10.96.0.1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
KUBERNETES_PORT_443_TCP_PORT=443
KUBERNETES_PORT_443_TCP_PROTO=tcp
KUBERNETES_SERVICE_PORT_HTTPS=443
KUBERNETES_PORT_443_TCP=tcp://10.96.0.1:443
ISPRODUCTION=false
KUBERNETES_SERVICE_HOST=10.96.0.1
PWD=/
time="2024-07-15T03:30:52-07:00" level=info msg="Deleting pod env-variable-in-image..."
time="2024-07-15T03:30:57-07:00" level=info msg="Pod env-variable-in-image has been successfully deleted within 60s"
--- PASS: TestDockerCreatePeerPodAndCheckEnvVariableLogsWithImageOnly (25.05s)
--- PASS: TestDockerCreatePeerPodAndCheckEnvVariableLogsWithImageOnly/EnvVariablePeerPodWithImageOnly_test (25.05s)
--- PASS: TestDockerCreatePeerPodAndCheckEnvVariableLogsWithImageOnly/EnvVariablePeerPodWithImageOnly_test/Peer_pod_with_environmental_variables_has_been_created (5.01s)
=== RUN TestDockerCreatePeerPodAndCheckEnvVariableLogsWithDeploymentOnly
=== RUN TestDockerCreatePeerPodAndCheckEnvVariableLogsWithDeploymentOnly/EnvVariablePeerPodWithDeploymentOnly_test
=== RUN TestDockerCreatePeerPodAndCheckEnvVariableLogsWithDeploymentOnly/EnvVariablePeerPodWithDeploymentOnly_test/Peer_pod_with_environmental_variables_has_been_created
assessment_runner.go:362: Log output of peer pod:KUBERNETES_SERVICE_PORT=443
KUBERNETES_PORT=tcp://10.96.0.1:443
HOSTNAME=env-variable-in-config
SHLVL=1
HOME=/root
TERM=xterm
KUBERNETES_PORT_443_TCP_ADDR=10.96.0.1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
KUBERNETES_PORT_443_TCP_PORT=443
KUBERNETES_PORT_443_TCP_PROTO=tcp
KUBERNETES_SERVICE_PORT_HTTPS=443
KUBERNETES_PORT_443_TCP=tcp://10.96.0.1:443
ISPRODUCTION=true
KUBERNETES_SERVICE_HOST=10.96.0.1
PWD=/
time="2024-07-15T03:31:12-07:00" level=info msg="Deleting pod env-variable-in-config..."
time="2024-07-15T03:31:17-07:00" level=info msg="Pod env-variable-in-config has been successfully deleted within 60s"
--- PASS: TestDockerCreatePeerPodAndCheckEnvVariableLogsWithDeploymentOnly (20.06s)
--- PASS: TestDockerCreatePeerPodAndCheckEnvVariableLogsWithDeploymentOnly/EnvVariablePeerPodWithDeploymentOnly_test (20.06s)
--- PASS: TestDockerCreatePeerPodAndCheckEnvVariableLogsWithDeploymentOnly/EnvVariablePeerPodWithDeploymentOnly_test/Peer_pod_with_environmental_variables_has_been_created (5.02s)
=== RUN TestDockerCreatePeerPodAndCheckEnvVariableLogsWithImageAndDeployment
=== RUN TestDockerCreatePeerPodAndCheckEnvVariableLogsWithImageAndDeployment/EnvVariablePeerPodWithBoth_test
=== RUN TestDockerCreatePeerPodAndCheckEnvVariableLogsWithImageAndDeployment/EnvVariablePeerPodWithBoth_test/Peer_pod_with_environmental_variables_has_been_created
assessment_runner.go:362: Log output of peer pod:KUBERNETES_SERVICE_PORT=443
KUBERNETES_PORT=tcp://10.96.0.1:443
HOSTNAME=env-variable-in-both
SHLVL=1
HOME=/root
TERM=xterm
KUBERNETES_PORT_443_TCP_ADDR=10.96.0.1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
KUBERNETES_PORT_443_TCP_PORT=443
KUBERNETES_PORT_443_TCP_PROTO=tcp
KUBERNETES_SERVICE_PORT_HTTPS=443
KUBERNETES_PORT_443_TCP=tcp://10.96.0.1:443
ISPRODUCTION=true
KUBERNETES_SERVICE_HOST=10.96.0.1
PWD=/
time="2024-07-15T03:31:32-07:00" level=info msg="Deleting pod env-variable-in-both..."
time="2024-07-15T03:31:37-07:00" level=info msg="Pod env-variable-in-both has been successfully deleted within 60s"
--- PASS: TestDockerCreatePeerPodAndCheckEnvVariableLogsWithImageAndDeployment (20.06s)
--- PASS: TestDockerCreatePeerPodAndCheckEnvVariableLogsWithImageAndDeployment/EnvVariablePeerPodWithBoth_test (20.06s)
--- PASS: TestDockerCreatePeerPodAndCheckEnvVariableLogsWithImageAndDeployment/EnvVariablePeerPodWithBoth_test/Peer_pod_with_environmental_variables_has_been_created (5.02s)
=== RUN TestDockerCreateNginxDeployment
=== RUN TestDockerCreateNginxDeployment/Nginx_image_deployment_test
time="2024-07-15T03:31:37-07:00" level=info msg="Creating nginx deployment..."
time="2024-07-15T03:31:42-07:00" level=info msg="Current deployment available replicas: 0"
time="2024-07-15T03:31:47-07:00" level=info msg="Current deployment available replicas: 0"
time="2024-07-15T03:31:52-07:00" level=info msg="Current deployment available replicas: 0"
time="2024-07-15T03:31:57-07:00" level=info msg="Current deployment available replicas: 0"
time="2024-07-15T03:32:02-07:00" level=info msg="Current deployment available replicas: 1"
time="2024-07-15T03:32:07-07:00" level=info msg="Current deployment available replicas: 2"
time="2024-07-15T03:32:07-07:00" level=info msg="nginx deployment is available now"
=== RUN TestDockerCreateNginxDeployment/Nginx_image_deployment_test/Access_for_nginx_deployment_test
time="2024-07-15T03:32:07-07:00" level=info msg="Deleting webserver deployment..."
time="2024-07-15T03:32:07-07:00" level=info msg="Deleting deployment nginx-deployment..."
time="2024-07-15T03:32:12-07:00" level=info msg="Deployment nginx-deployment has been successfully deleted within 120s"
--- PASS: TestDockerCreateNginxDeployment (35.04s)
--- PASS: TestDockerCreateNginxDeployment/Nginx_image_deployment_test (35.04s)
--- PASS: TestDockerCreateNginxDeployment/Nginx_image_deployment_test/Access_for_nginx_deployment_test (0.01s)
=== RUN TestDockerDeletePod
=== RUN TestDockerDeletePod/DeletePod_test
assessment_runner.go:265: Waiting for containers in pod: deletion-test are ready
=== RUN TestDockerDeletePod/DeletePod_test/Deletion_complete
time="2024-07-15T03:32:27-07:00" level=info msg="Deleting pod deletion-test..."
time="2024-07-15T03:32:32-07:00" level=info msg="Pod deletion-test has been successfully deleted within 60s"
--- PASS: TestDockerDeletePod (20.05s)
--- PASS: TestDockerDeletePod/DeletePod_test (20.05s)
--- PASS: TestDockerDeletePod/DeletePod_test/Deletion_complete (0.01s)
=== RUN TestDockerPodToServiceCommunication
=== RUN TestDockerPodToServiceCommunication/TestExtraPods_test
assessment_runner.go:265: Waiting for containers in pod: nginx are ready
time="2024-07-15T03:33:02-07:00" level=info msg="webserver service is available on cluster IP: 10.96.201.75"
Provision extra pod busybox assessment_helpers.go:425: Waiting for containers in pod: busybox are ready
=== RUN TestDockerPodToServiceCommunication/TestExtraPods_test/Failed_to_test_extra_pod.
time="2024-07-15T03:33:22-07:00" level=info msg="Success to access nginx service. <!DOCTYPE html>\n<html>\n<head>\n<title>Welcome to nginx!</title>\n<style>\nhtml { color-scheme: light dark; }\nbody { width: 35em; margin: 0 auto;\nfont-family: Tahoma, Verdana, Arial, sans-serif; }\n</style>\n</head>\n<body>\n<h1>Welcome to nginx!</h1>\n<p>If you see this page, the nginx web server is successfully installed and\nworking. Further configuration is required.</p>\n\n<p>For online documentation and support please refer to\n<a href=\"http://nginx.org/\">nginx.org</a>.<br/>\nCommercial support is available at\n<a href=\"http://nginx.com/\">nginx.com</a>.</p>\n\n<p><em>Thank you for using nginx.</em></p>\n</body>\n</html>\n"
assessment_runner.go:516: Output when execute test commands:<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>
time="2024-07-15T03:33:22-07:00" level=info msg="Deleting pod nginx..."
time="2024-07-15T03:33:27-07:00" level=info msg="Pod nginx has been successfully deleted within 60s"
time="2024-07-15T03:33:27-07:00" level=info msg="Deleting pod busybox..."
time="2024-07-15T03:33:32-07:00" level=info msg="Pod busybox has been successfully deleted within 60s"
time="2024-07-15T03:33:32-07:00" level=info msg="Deleting Service... nginx"
--- PASS: TestDockerPodToServiceCommunication (60.27s)
--- PASS: TestDockerPodToServiceCommunication/TestExtraPods_test (60.27s)
--- PASS: TestDockerPodToServiceCommunication/TestExtraPods_test/Failed_to_test_extra_pod. (5.08s)
=== RUN TestDockerPodsMTLSCommunication
=== RUN TestDockerPodsMTLSCommunication/TestPodsMTLSCommunication_test
assessment_runner.go:265: Waiting for containers in pod: nginx are ready
time="2024-07-15T03:33:52-07:00" level=info msg="webserver service is available on cluster IP: 10.96.186.218"
Provision extra pod curl assessment_helpers.go:425: Waiting for containers in pod: curl are ready
=== RUN TestDockerPodsMTLSCommunication/TestPodsMTLSCommunication_test/Pods_communication_with_mTLS
time="2024-07-15T03:34:12-07:00" level=info msg="Success to access nginx service. <!DOCTYPE html>\n<html>\n<head>\n<title>Welcome to nginx!</title>\n<style>\nhtml { color-scheme: light dark; }\nbody { width: 35em; margin: 0 auto;\nfont-family: Tahoma, Verdana, Arial, sans-serif; }\n</style>\n</head>\n<body>\n<h1>Welcome to nginx!</h1>\n<p>If you see this page, the nginx web server is successfully installed and\nworking. Further configuration is required.</p>\n\n<p>For online documentation and support please refer to\n<a href=\"http://nginx.org/\">nginx.org</a>.<br/>\nCommercial support is available at\n<a href=\"http://nginx.com/\">nginx.com</a>.</p>\n\n<p><em>Thank you for using nginx.</em></p>\n</body>\n</html>\n"
assessment_runner.go:516: Output when execute test commands:<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>
time="2024-07-15T03:34:12-07:00" level=info msg="Deleting Configmap... nginx-conf"
time="2024-07-15T03:34:12-07:00" level=info msg="Deleting Secret... server-certs"
time="2024-07-15T03:34:12-07:00" level=info msg="Deleting extra Secret... curl-certs"
time="2024-07-15T03:34:12-07:00" level=info msg="Deleting pod nginx..."
time="2024-07-15T03:34:17-07:00" level=info msg="Pod nginx has been successfully deleted within 60s"
time="2024-07-15T03:34:17-07:00" level=info msg="Deleting pod curl..."
time="2024-07-15T03:34:22-07:00" level=info msg="Pod curl has been successfully deleted within 60s"
time="2024-07-15T03:34:23-07:00" level=info msg="Deleting Service... nginx"
--- PASS: TestDockerPodsMTLSCommunication (50.33s)
--- PASS: TestDockerPodsMTLSCommunication/TestPodsMTLSCommunication_test (50.33s)
--- PASS: TestDockerPodsMTLSCommunication/TestPodsMTLSCommunication_test/Pods_communication_with_mTLS (5.11s)
=== RUN TestDockerKbsKeyRelease
docker_test.go:102: Skipping kbs related test as kbs is not deployed
--- SKIP: TestDockerKbsKeyRelease (0.00s)
PASS
time="2024-07-15T03:34:23-07:00" level=info msg="Deleting namespace 'coco-pp-e2e-test-c337e1b8'..."
time="2024-07-15T03:34:33-07:00" level=info msg="Namespace 'coco-pp-e2e-test-c337e1b8' has been successfully deleted within 60s"
Deleting the kind cluster
Deleting cluster "peer-pods" ...
Deleted nodes: ["peer-pods-worker" "peer-pods-control-plane"]
time="2024-07-15T03:34:35-07:00" level=info msg="Delete the Cloud API Adaptor installation"
time="2024-07-15T03:34:35-07:00" level=info msg="Uninstall the cloud-api-adaptor"
ok github.com/confidential-containers/cloud-api-adaptor/src/cloud-api-adaptor/test/e2e 657.598s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall, thanks!
96a6e33
into
confidential-containers:main
A new parameter CONTAINER_RUNTIME is added. Default value is "containerd". Set the value to "crio" to execute e2e tests on a crio based kind cluster.
Also fix few test cases.