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: