Skip to content

Commit 132519f

Browse files
committed
need a valid user
Issue: AAH-2421
1 parent 2909148 commit 132519f

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

dev/galaxy_collection_plays/vars.yml

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

dev/oci_env_integration/actions/action_lib.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,19 +132,20 @@ def run_test(self):
132132
def install_galaxy_collection(self, env):
133133
self.exec_cmd(
134134
env,
135-
"exec git clone https://github.com/ansible/galaxy_collection /src/galaxy_collection_test"
135+
"exec git clone https://github.com/ansible/galaxy_collection /src/galaxy_collection_test" # noqa E501
136136
)
137137

138-
# The ansible.cfg defined in the collection repository might break the test. We want the same variables for installation and running.
138+
# The ansible.cfg defined in the collection repository might break the test.
139+
# We want the same variables for installation and running.
139140
self.exec_cmd(env, "exec rm -f /src/galaxy_collection_test/ansible.cfg")
140141
self.exec_cmd(env, "exec rm -f /src/galaxy_collection_test/galaxy.yml")
141-
self.exec_cmd(env, "exec mv /src/galaxy_collection_test/.github/files/galaxy.yml.j2 /src/galaxy_collection_test/")
142+
self.exec_cmd(env, "exec mv /src/galaxy_collection_test/.github/files/galaxy.yml.j2 /src/galaxy_collection_test/") # noqa E501
142143
self.exec_cmd(
143144
env,
144-
'exec ansible all -i localhost, -c local -m template -a "src=/src/galaxy_collection_test/galaxy.yml.j2 dest=/src/galaxy_collection_test/galaxy.yml" -e collection_namespace=galaxy -e collection_name=galaxy -e collection_version=1.0.0 -e collection_repo=https://github.com/ansible/automation_hub_collection'
145+
'exec ansible all -i localhost, -c local -m template -a "src=/src/galaxy_collection_test/galaxy.yml.j2 dest=/src/galaxy_collection_test/galaxy.yml" -e collection_namespace=galaxy -e collection_name=galaxy -e collection_version=1.0.0 -e collection_repo=https://github.com/ansible/automation_hub_collection' # noqa E501
145146
)
146-
self.exec_cmd(env, "exec ansible-galaxy collection build --output-path /src/galaxy_collection_test/ /src/galaxy_collection_test/ -vvv")
147-
self.exec_cmd(env, "exec ansible-galaxy collection install /src/galaxy_collection_test/galaxy-galaxy-1.0.0.tar.gz -vvv --force")
147+
self.exec_cmd(env, "exec ansible-galaxy collection build --output-path /src/galaxy_collection_test/ /src/galaxy_collection_test/ -vvv") # noqa E501
148+
self.exec_cmd(env, "exec ansible-galaxy collection install /src/galaxy_collection_test/galaxy-galaxy-1.0.0.tar.gz -vvv --force") # noqa E501
148149
self.exec_cmd(env, "exec rm -rf /src/galaxy_collection_test")
149150

150151
def run_playbooks(self):
@@ -161,7 +162,7 @@ def run_playbooks(self):
161162
print(f"testing the {playbook} playbook")
162163
self.exec_cmd(
163164
env,
164-
f"exec ansible-playbook src/galaxy_ng/dev/galaxy_collection_plays/{playbook} -vvv"
165+
f"exec ansible-playbook src/galaxy_ng/dev/galaxy_collection_plays/{playbook} -vvv" # noqa E501
165166
)
166167

167168
def dump_logs(self):

0 commit comments

Comments
 (0)