Skip to content

Commit

Permalink
add repository_name=published
Browse files Browse the repository at this point in the history
Issue: AAH-2638
  • Loading branch information
jerabekjiri committed Sep 19, 2023
1 parent ba1d248 commit 4a527ac
Show file tree
Hide file tree
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
Expand Up @@ -67,7 +67,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
Expand Down Expand Up @@ -106,14 +106,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:
Expand Down

0 comments on commit 4a527ac

Please sign in to comment.