mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-06-10 02:26:09 +00:00
The `older_openshift_fail.yml` test playbook fails with Python 3.7 because the old `kubernetes.client.apis.admissionregistration_api` module uses the new `async` keyword as a function parameter name. From: https://docs.python.org/3/whatsnew/3.7.html Backwards incompatible syntax changes: `async` and `await` are now reserved keywords. In this case, we get a `SyntaxError` exception instead of the expected `Failed to import the required Python library (openshift >= 0.7.2)`.
Wait tests
wait tests require at least one node, and don't work on the normal k8s openshift-origin container as provided by ansible-test --docker -v k8s
minikube, Kubernetes from Docker or any other Kubernetes service will suffice.
If kubectl is already using the right config file and context, you can just do
cd tests/integration/targets/k8s
./runme.sh -vv
otherwise set one or both of K8S_AUTH_KUBECONFIG and K8S_AUTH_CONTEXT
and use the same command