@@ -32,7 +32,8 @@ class OCIEnvIntegrationTest:
32
32
env_file (string, required): oci-env env file to use for the tests. These are all loaded
33
33
from dev/oci_env_integration/oci_env_configs
34
34
run_tests (boolean, required): if true, integration tests will be run inside this instance
35
- run_playbooks (boolean, required): if true, Galaxy Collection playbook tests will be run inside this instance
35
+ run_playbooks (boolean, required): if true, Galaxy Collection playbook tests will be run
36
+ inside this instance
36
37
db_restore (string, optional): database backup to restore before running tests These are all
37
38
loaded from dev/oci_env_integration/oci_env_configs. When defining this, omit
38
39
the file extension (ex: fixture, not fixtur.tar.gz)
@@ -132,20 +133,20 @@ def run_test(self):
132
133
def install_galaxy_collection (self , env ):
133
134
self .exec_cmd (
134
135
env ,
135
- "exec git clone https://github.com/ansible/galaxy_collection /src/galaxy_collection_test"
136
+ "exec git clone https://github.com/ansible/galaxy_collection /src/galaxy_collection_test" # noqa E501
136
137
)
137
138
138
- # The ansible.cfg defined in the collection repository might break the test. We want the same variables for installation and running.
139
+ # The ansible.cfg defined in the collection repository might break the test.
140
+ # We want the same variables for installation and running.
139
141
self .exec_cmd (env , "exec rm -f /src/galaxy_collection_test/ansible.cfg" )
140
142
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/" )
143
+ self .exec_cmd (env , "exec mv /src/galaxy_collection_test/.github/files/galaxy.yml.j2 /src/galaxy_collection_test/" ) # noqa E501
142
144
self .exec_cmd (
143
145
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'
146
+ '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
145
147
)
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" )
148
- self .exec_cmd (env , "exec rm -rf /src/galaxy_collection_test" )
148
+ self .exec_cmd (env , "exec ansible-galaxy collection build --output-path /src/galaxy_collection_test/ /src/galaxy_collection_test/ -vvv" ) # noqa E501
149
+ self .exec_cmd (env , "exec ansible-galaxy collection install /src/galaxy_collection_test/galaxy-galaxy-1.0.0.tar.gz -vvv --force" ) # noqa E501
149
150
150
151
def run_playbooks (self ):
151
152
for env in self .envs :
@@ -161,7 +162,7 @@ def run_playbooks(self):
161
162
print (f"testing the { playbook } playbook" )
162
163
self .exec_cmd (
163
164
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
165
166
)
166
167
167
168
def dump_logs (self ):
0 commit comments