Skip to content

Commit

Permalink
add repository_name=published (#1854)
Browse files Browse the repository at this point in the history
Issue: AAH-2638
jerabekjiri authored Sep 19, 2023
1 parent fd896ed commit bf4a9fa
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/2638.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve ``test_x_repo_search_acl_social_user`` and ``test_x_repo_search_acl_anonymous_user`` integration test stability
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit bf4a9fa

Please sign in to comment.