1
1
.SILENT :
2
2
3
+ # set the USER_ID to the current user uid
4
+ export USER_ID = $(shell id --user)
5
+
3
6
.DEFAULT :
4
7
.PHONY : help
5
8
help : # # Show the help.
@@ -173,11 +176,12 @@ test/unit: ## Run unit tests
173
176
tox -e py311
174
177
175
178
.PHONY : test/integration/standalone
176
- test/integration/standalone : # # Run integration tests
179
+ test/integration/standalone : # # Run standalone integration tests
177
180
# if pytest is not found raise a warning and install it
178
181
@which pytest || (echo " pytest not found, installing it now" && pip install -r integration_requirements.txt)
179
- @echo " Running integration tests"
180
- HUB_ADMIN_PASS=admin \
182
+ @echo " Running standalone integration tests"
183
+ HUB_LOCAL=1 \
184
+ HUB_USE_MOVE_ENDPOINT=" true" \
181
185
HUB_API_ROOT=http://localhost:5001/api/galaxy/ \
182
186
GALAXYKIT_SLEEP_SECONDS_POLLING=.5 \
183
187
GALAXYKIT_SLEEP_SECONDS_ONETIME =.5 \
@@ -188,3 +192,59 @@ test/integration/standalone: ## Run integration tests
188
192
pytest galaxy_ng/tests/integration \
189
193
-p 'no:pulpcore' -p 'no:pulp_ansible' \
190
194
-v -r sx --color=yes -m 'deployment_standalone or all'
195
+
196
+ .PHONY : test/integration/community
197
+ test/integration/community : # # Run community integration tests
198
+ # if pytest is not found raise a warning and install it
199
+ @which pytest || (echo " pytest not found, installing it now" && pip install -r integration_requirements.txt)
200
+ @echo " Running community integration tests"
201
+ HUB_LOCAL=1 \
202
+ HUB_TEST_AUTHENTICATION_BACKEND=community \
203
+ HUB_API_ROOT=http://localhost:5001/api/ \
204
+ GALAXYKIT_SLEEP_SECONDS_POLLING=.5 \
205
+ GALAXYKIT_SLEEP_SECONDS_ONETIME =.5 \
206
+ GALAXYKIT_POLLING_MAX_ATTEMPTS=50 \
207
+ GALAXY_SLEEP_SECONDS_POLLING=.5 \
208
+ GALAXY_SLEEP_SECONDS_ONETIME=.5 \
209
+ GALAXY_POLLING_MAX_ATTEMPTS=50 \
210
+ pytest galaxy_ng/tests/integration \
211
+ -p 'no:pulpcore' -p 'no:pulp_ansible' \
212
+ -v -r sx --color=yes -m 'deployment_community'
213
+
214
+ .PHONY : test/integration/certified
215
+ test/integration/certified : # # Run certified-sync integration tests
216
+ # if pytest is not found raise a warning and install it
217
+ @which pytest || (echo " pytest not found, installing it now" && pip install -r integration_requirements.txt)
218
+ @echo " Running certified-sync integration tests"
219
+ HUB_LOCAL=1 \
220
+ HUB_API_ROOT=http://localhost:5001/api/galaxy/ \
221
+ HUB_USE_MOVE_ENDPOINT=" true" \
222
+ GALAXYKIT_SLEEP_SECONDS_POLLING=.5 \
223
+ GALAXYKIT_SLEEP_SECONDS_ONETIME =.5 \
224
+ GALAXYKIT_POLLING_MAX_ATTEMPTS=50 \
225
+ GALAXY_SLEEP_SECONDS_POLLING=.5 \
226
+ GALAXY_SLEEP_SECONDS_ONETIME=.5 \
227
+ GALAXY_POLLING_MAX_ATTEMPTS=50 \
228
+ pytest galaxy_ng/tests/integration \
229
+ -p 'no:pulpcore' -p 'no:pulp_ansible' \
230
+ -v -r sx --color=yes -m 'sync'
231
+
232
+ .PHONY : test/integration/insights
233
+ test/integration/insights : # # Run insights integration tests
234
+ # if pytest is not found raise a warning and install it
235
+ @which pytest || (echo " pytest not found, installing it now" && pip install -r integration_requirements.txt)
236
+ @echo " Running insights integration tests"
237
+ HUB_LOCAL=1 \
238
+ HUB_API_ROOT=http://localhost:8080/api/automation-hub/ \
239
+ HUB_AUTH_URL=http://localhost:8080/auth/realms/redhat-external/protocol/openid-connect/token \
240
+ HUB_USE_MOVE_ENDPOINT ="true" \
241
+ HUB_UPLOAD_SIGNATURES="true" \
242
+ GALAXYKIT_SLEEP_SECONDS_POLLING=.5 \
243
+ GALAXYKIT_SLEEP_SECONDS_ONETIME=.5 \
244
+ GALAXYKIT_POLLING_MAX_ATTEMPTS=50 \
245
+ GALAXY_SLEEP_SECONDS_POLLING=.5 \
246
+ GALAXY_SLEEP_SECONDS_ONETIME=.5 \
247
+ GALAXY_POLLING_MAX_ATTEMPTS=50 \
248
+ pytest galaxy_ng/tests/integration \
249
+ -p 'no:pulpcore' -p 'no:pulp_ansible' \
250
+ -v -r sx --color=yes -m 'deployment_cloud or all'
0 commit comments