Update ansible-test openshift plugin tests (#80064)

Update ansible-test openshift plugin tests to use config to get server endpoint.

Also update the comment explaining why the tests are disabled.
This commit is contained in:
Matt Clay 2023-02-21 14:56:25 -08:00 committed by GitHub
parent 1108c0f331
commit 5f6ebebce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,4 @@
cloud/openshift
shippable/generic/group1
disabled # disabled due to requirements conflict: botocore 1.20.6 has requirement urllib3<1.27,>=1.25.4, but you have urllib3 1.24.3.
disabled # the container crashes when using a non-default network on some docker hosts (such as Ubuntu 20.04)
context/controller

View File

@ -1,6 +1,13 @@
- name: Load kubeconfig
include_vars: "{{ lookup('env', 'K8S_AUTH_KUBECONFIG') }}"
- name: Verify endpoints exist
assert:
that: clusters
- name: Verify endpoints respond
uri:
url: "{{ item }}"
url: "{{ item.cluster.server }}"
validate_certs: no
with_items:
- https://openshift-origin:8443/
- "{{ clusters }}"