From bf4a9faf469e21481a97c193209a711dc11ab33f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Je=C5=99=C3=A1bek=20=28Jiri=20Jerabek=29?= Date: Tue, 19 Sep 2023 18:53:56 +0200 Subject: [PATCH] add repository_name=published (#1854) Issue: AAH-2638 --- CHANGES/2638.misc | 1 + .../tests/integration/api/test_cross_repository_search.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 CHANGES/2638.misc diff --git a/CHANGES/2638.misc b/CHANGES/2638.misc new file mode 100644 index 0000000000..99817eeb8d --- /dev/null +++ b/CHANGES/2638.misc @@ -0,0 +1 @@ +Improve ``test_x_repo_search_acl_social_user`` and ``test_x_repo_search_acl_anonymous_user`` integration test stability diff --git a/galaxy_ng/tests/integration/api/test_cross_repository_search.py b/galaxy_ng/tests/integration/api/test_cross_repository_search.py index 46fd76030f..56506c55b0 100644 --- a/galaxy_ng/tests/integration/api/test_cross_repository_search.py +++ b/galaxy_ng/tests/integration/api/test_cross_repository_search.py @@ -69,7 +69,7 @@ def test_x_repo_search_acl_anonymous_user(ansible_config, auto_approved_artifact search_url = ( api_prefix + '/v3/plugin/ansible/search/collection-versions/' - + f'?namespace={namespace}&name={name}' + + f'?namespace={namespace}&name={name}&repository_name=published' ) resp = api_client.request(search_url) assert resp['meta']['count'] == 2 @@ -108,14 +108,14 @@ def test_x_repo_search_acl_social_user(ansible_config, auto_approved_artifacts): search_url = ( api_prefix + '/v3/plugin/ansible/search/collection-versions/' - + f'?namespace={namespace}&name={name}' + + f'?namespace={namespace}&name={name}&repository_name=published' ) resp = api_client.request(search_url) assert resp['meta']['count'] == 2 search_url = ( 'v3/plugin/ansible/search/collection-versions/' - + f'?namespace={namespace}&name={name}' + + f'?namespace={namespace}&name={name}&repository_name=published' ) cfg = ansible_config('github_user_1') with SocialGithubClient(config=cfg) as client: