@@ -132,19 +132,20 @@ def run_test(self):
132
132
def install_galaxy_collection (self , env ):
133
133
self .exec_cmd (
134
134
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
136
136
)
137
137
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.
139
140
self .exec_cmd (env , "exec rm -f /src/galaxy_collection_test/ansible.cfg" )
140
141
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
142
143
self .exec_cmd (
143
144
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
145
146
)
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
148
149
self .exec_cmd (env , "exec rm -rf /src/galaxy_collection_test" )
149
150
150
151
def run_playbooks (self ):
@@ -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