Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(datasource/galaxy): support multiple results #29664

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply suggestions from code review
Co-authored-by: Sebastian Poxhofer <[email protected]>
  • Loading branch information
rarkins and secustor committed Jun 14, 2024
commit 16600665d0d2ac59a698f19bd1b35e2445545e13
4 changes: 2 additions & 2 deletions lib/modules/datasource/galaxy/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('modules/datasource/galaxy/index', () => {
expect(res).toBeDefined();
});

it('handles multiple results when one matches', async () => {
it('handles multiple results when one user matches exactly', async () => {
httpMock
.scope(baseUrl)
.get('/api/v1/roles/?owner__username=datadog&name=datadog')
Expand All @@ -100,7 +100,7 @@ describe('modules/datasource/galaxy/index', () => {
expect(res?.releases).toHaveLength(11);
});

it('rejects multiple results when one matches', async () => {
it('rejects multiple results when no user matches exactly', async () => {
httpMock
.scope(baseUrl)
.get('/api/v1/roles/?owner__username=nope&name=nope')
Expand Down