From 8a325293b1e0ec8a244c253ff6bd8bb249fb6484 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Mon, 11 Jul 2022 19:45:11 -0400 Subject: [PATCH] Add tests around ingress_path feature --- molecule/default/tasks/awx_test.yml | 4 ++-- molecule/default/templates/awx_cr_molecule.yml.j2 | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/molecule/default/tasks/awx_test.yml b/molecule/default/tasks/awx_test.yml index de844150..97e6c39a 100644 --- a/molecule/default/tasks/awx_test.yml +++ b/molecule/default/tasks/awx_test.yml @@ -49,13 +49,13 @@ name: Demo Job Template wait: yes validate_certs: no - controller_host: localhost + controller_host: localhost/awx/ controller_username: admin controller_password: "{{ admin_pw_secret.resources[0].data.password | b64decode }}" rescue: - name: Get list of project updates and jobs uri: - url: "http://localhost/api/v2/{{ resource }}/" + url: "http://localhost/awx/api/v2/{{ resource }}/" user: admin password: "{{ admin_pw_secret.resources[0].data.password | b64decode }}" force_basic_auth: yes diff --git a/molecule/default/templates/awx_cr_molecule.yml.j2 b/molecule/default/templates/awx_cr_molecule.yml.j2 index d3864408..5ba3d55d 100644 --- a/molecule/default/templates/awx_cr_molecule.yml.j2 +++ b/molecule/default/templates/awx_cr_molecule.yml.j2 @@ -11,6 +11,7 @@ spec: image_version: {{ awx_version }} {% endif %} ingress_type: ingress + ingress_path: /awx ingress_annotations: | kubernetes.io/ingress.class: nginx web_resource_requirements: