-
Notifications
You must be signed in to change notification settings - Fork 9
improve container credentials retrieval matching container repository names #278
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
Open
munishchouhan
wants to merge
50
commits into
master
Choose a base branch
from
224-improve-container-credentials-retrieval-matching-container-repository-names
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
aa06fdf
added repository parser
munishchouhan f081df9
added repository login
munishchouhan 138d65f
Merge remote-tracking branch 'origin/master' into 224-improve-contain…
munishchouhan 521cb46
reused some logic
munishchouhan 5c7630c
UTs fixed
munishchouhan 1622402
formatted
munishchouhan ed5dc83
formatted
munishchouhan fa131a0
best match algo added
munishchouhan 2ae164f
'container-reg' check added in best match algo
munishchouhan c559360
Merge remote-tracking branch 'origin/master' into 224-improve-contain…
munishchouhan 50c52f1
removed repository login
munishchouhan 5712f43
Merge remote-tracking branch 'origin/master' into 224-improve-contain…
munishchouhan 69f6925
Merge remote-tracking branch 'origin/master' into 224-improve-contain…
munishchouhan f9072ab
Merge remote-tracking branch 'origin/master' into 224-improve-contain…
munishchouhan 99b9d2c
Merge remote-tracking branch 'origin/master' into 224-improve-contain…
munishchouhan 821005c
Merge remote-tracking branch 'origin/master' into 224-improve-contain…
munishchouhan 2a1ef2a
merge master
munishchouhan 5b2aaa9
minor change
munishchouhan 045067b
minor change
munishchouhan bc84cb5
Merge remote-tracking branch 'origin/master' into 224-improve-contain…
munishchouhan e59fc14
master merged
munishchouhan b2c4e98
Merge branch 'master' into 224-improve-container-credentials-retrieva…
pditommaso 541ff1a
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 92dfedc
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 7eba402
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 7c55158
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 23c87bf
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 36aac46
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 63ee00e
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 6260b55
Merge branch 'master' into 224-improve-container-credentials-retrieva…
pditommaso 1468dcc
Merge branch 'master' into 224-improve-container-credentials-retrieva…
pditommaso 2dd789b
wip
pditommaso f8eed91
wip2
pditommaso 57a1d08
wip3
pditommaso c59f5d8
wip4
pditommaso 4fbf3bb
wip5
pditommaso bfb4ab4
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 259657f
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 9d78d42
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 3d74734
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan d5d09ad
master merged
munishchouhan 880ed7c
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 6757b10
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 7bb7504
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 689a425
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 42e7a0a
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan d0709aa
fixed errors
munishchouhan f412a8f
fixed tests
munishchouhan 807aecf
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan 28cbdc0
Merge branch 'master' into 224-improve-container-credentials-retrieva…
munishchouhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| package io.seqera.wave.auth | ||
|
|
||
| class RepositoryInfo { | ||
| String registry | ||
| String repository | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...oller/ValidateRegistryCredsRequest.groovy → ...model/ValidateRegistryCredsRequest.groovy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/test/groovy/io/seqera/wave/auth/RegistryLoginTest.groovy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| package io.seqera.wave.auth | ||
|
|
||
| import spock.lang.Specification | ||
|
|
||
| import io.micronaut.test.extensions.spock.annotation.MicronautTest | ||
| import jakarta.inject.Inject | ||
|
|
||
| @MicronautTest | ||
| class RegistryLoginTest extends Specification{ | ||
| @Inject | ||
| RegistryAuthServiceImpl impl | ||
|
|
||
| void 'test login with registry'() { | ||
| when: | ||
| def login = impl.login("docker.io","wavetest","dckr_pat_sShAQOWshE-y3SeE8wll774CWzM") | ||
|
|
||
| then: | ||
| login | ||
| } | ||
| void 'test valid login with repository'() { | ||
| when: | ||
| def login = impl.login("https://docker.io/hrma017/dev","hrma017","dckr_pat_NtfDznNlQjarjit3df4L713undw") | ||
| then: | ||
| login | ||
| } | ||
| void 'test invalid login with repository'() { | ||
| when: | ||
| def login = impl.login("docker.io/hrma017/dev","wavetest","dckr_pat_sShAQOWshE-y3SeE8wll774CWzM") | ||
| then: | ||
| !login | ||
| } | ||
| void 'test repository parser'(){ | ||
| when: | ||
| def result = impl.parseURI("localhost") | ||
| then: | ||
| result.repository == null | ||
| } | ||
| void 'test repository parser'(){ | ||
| when: | ||
| def result = impl.parseURI("https://docker.io/hrma017/dev") | ||
| then: | ||
| result.registry == "docker.io" | ||
| result.repository == "hrma017/dev" | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.