Skip to content

Commit 85e8455

Browse files
committed
Switch collection testing over to oci-env.
No-Issue Signed-off-by: James Tanner <tanner.jc@gmail.com>
1 parent 8326785 commit 85e8455

File tree

3 files changed

+33
-10
lines changed

3 files changed

+33
-10
lines changed

.github/workflows/ci_automation_hub_collection.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,30 @@ jobs:
4545
ansible-galaxy collection build -vvv
4646
ansible-galaxy collection install galaxy-galaxy-1.0.0.tar.gz -vvv
4747
48-
- name: Spin up a standalone galaxy_ng installation
48+
#- name: Spin up a standalone galaxy_ng installation
49+
# run: |
50+
# echo "COMPOSE_PROFILE=standalone" > .compose.env
51+
# echo "DEV_SOURCE_PATH=galaxy_ng" >> .compose.env
52+
# make docker/all
53+
# ./compose up -d
54+
# pip3 install --upgrade requests pyyaml
55+
# python3 dev/common/poll.py
56+
57+
- name: set env vars
58+
run: |
59+
echo "OCI_ENV_PATH=${HOME}/work/galaxy_ng/oci_env" >> $GITHUB_ENV
60+
echo "COMPOSE_INTERACTIVE_NO_CLI=1" >> $GITHUB_ENV
61+
echo "OCI_VERBOSE=1" >> $GITHUB_ENV
62+
echo "GH_DUMP_LOGS=0" >> $GITHUB_ENV
63+
64+
- name: setup oci-env
4965
run: |
50-
echo "COMPOSE_PROFILE=standalone" > .compose.env
51-
echo "DEV_SOURCE_PATH=galaxy_ng" >> .compose.env
52-
make docker/all
53-
./compose up -d
54-
pip3 install --upgrade requests pyyaml
55-
python3 dev/common/poll.py
66+
git clone https://github.com/pulp/oci_env.git $OCI_ENV_PATH
67+
pip install -e $OCI_ENV_PATH/client/
68+
mkdir $OCI_ENV_PATH/db_backup/
69+
70+
- name: run the standalone stack detached
71+
run: OCI_COMPOSE_DETACH=1 make oci/standalone
5672

5773
- name: Test the user playbook
5874
run: ansible-playbook dev/galaxy_collection_plays/user.yml -vvv

dev/galaxy_collection_plays/vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ah_host: http://localhost:5001
1+
ah_host: http://localhost:55001
22
ah_username: iqe_admin
33
ah_password: redhat
4-
ah_path_prefix: automation-hub
4+
ah_path_prefix: galaxy
55
ah_artifact_runner_absolute_path: /home/runner/work/galaxy_ng/galaxy_ng/galaxy_collection/galaxy-galaxy-1.0.0.tar.gz

dev/oci_start

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ echo "USING PROFILE ${profile}"
99
OCI_ENV_PATH=$(dirname $(pip show oci-env | egrep ^Location | awk '{print $2}'))
1010
echo "FOUND OCI_ENV_PATH: ${OCI_ENV_PATH}"
1111

12+
13+
if [[ -n $OCI_COMPOSE_DETACH ]]; then
14+
DETACH_ARGS="--detach"
15+
else
16+
DETACH_ARGS=""
17+
fi
18+
1219
export COMPOSE_INTERACTIVE_NO_CLI=1
1320
env_path=dev/oci_env_integration/oci_env_configs/$profile.compose.env
1421
oci-env -e ${env_path} compose build --progress=plain
15-
oci-env -e ${env_path} compose up
22+
oci-env -e ${env_path} compose up ${DETACH_ARGS}

0 commit comments

Comments
 (0)