Skip to content

Commit 7b50812

Browse files
committed
set gateway password for dev env
Signed-off-by: NilashishC <nchakrab@redhat.com>
1 parent 604c660 commit 7b50812

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/collection.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
3535
- name: Cleanup services
3636
run: make cleanup-services
37+
38+
- name: Set Gateway Password
39+
run: make set-gateway_password
3740

3841
- uses: actions/checkout@v3
3942

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PYTHON := $(notdir $(shell for i in python3.11 python3; do command -v $$i; done|
55
RM ?= /bin/rm
66
UID := $(shell id -u)
77
WORKSPACE := $(if $(GITHUB_WORKSPACE),$(GITHUB_WORKSPACE),$(shell pwd))
8+
ADMIN_PW := $(shell awk '/gateway_admin_password/{print $$2}' container-startup.yml | xargs echo)
89
ANSIBLE_CONFIG ?= tools/ansible/ansible.cfg
910
export ANSIBLE_CONFIG
1011

@@ -69,10 +70,11 @@ collection-lint: collection-install
6970
# ansible-lint gets its settings from ansible_platform_collection/.ansible-lint
7071
ansible-lint --profile=production
7172

72-
## Run the collection tests
73-
collection-test: collection-install
74-
$(eval ADMIN_PW=$(shell awk '/gateway_admin_password/{print $$2}' $(WORKSPACE)/aap-gateway/container-startup.yml | xargs echo))
73+
set-gateway_password:
7574
echo 'gateway_password: $(ADMIN_PW)' > \
7675
/tmp/collections/ansible_collections/ansible/platform/tests/integration/integration_config.yml
76+
77+
## Run the collection tests
78+
collection-test: collection-install
7779
cd /tmp/collections/ansible_collections/ansible/platform && \
7880
ansible-test integration --venv --requirements --coverage

0 commit comments

Comments
 (0)