Skip to content

Commit 1e8a0ca

Browse files
committed
more updates
Signed-off-by: NilashishC <nchakrab@redhat.com>
1 parent 6abd5b5 commit 1e8a0ca

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/collection.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ jobs:
3535
- name: Cleanup services
3636
run: make cleanup-services
3737

38-
- name: Extract gateway_admin_password and write to config
39-
run: |
40-
ADMIN_PW=$(awk '/gateway_admin_password/{print $2}' container-startup.yml | xargs echo) &&
41-
echo "gateway_password: $ADMIN_PW" > \
42-
/tmp/collections/ansible_collections/ansible/platform/tests/integration/integration_config.yml
43-
4438
- name: Validate that password is set
4539
run: |
4640
cat /tmp/collections/ansible_collections/ansible/platform/tests/integration/integration_config.yml

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ collection-lint: collection-install
7070
ansible-lint --profile=production
7171

7272
## Run the collection tests
73-
collection-test: collection-install
73+
collection-test: collection-install
74+
$(eval ADMIN_PW=$(shell awk '/gateway_admin_password/{print $$2}' $(GITHUB_WORKSPACE)/ansible.platform/aap-gateway/container-startup.yml | xargs echo))
75+
echo 'gateway_password: $(ADMIN_PW)' > \
76+
/tmp/collections/ansible_collections/ansible/platform/tests/integration/integration_config.yml
7477
cd /tmp/collections/ansible_collections/ansible/platform && \
7578
ansible-test integration --venv --requirements --coverage

0 commit comments

Comments
 (0)