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.
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
[WM-2500][WM-2502] Fetch Github token from ECM for importing and running private workflows #7392
[WM-2500][WM-2502] Fetch Github token from ECM for importing and running private workflows #7392
Changes from 3 commits
a6c1092
9467e26
fb0d6bf
9a26105
2b105ac
c5495f9
60ca5ed
29a412a
1372959
dcbc763
a9861d7
93f98ea
3d3935e
4701188
ab3a534
ea97924
dbd6efd
2d7dd21
05b1e15
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 34 in services/src/main/scala/cromwell/services/auth/GithubAuthVendingSupport.scala
services/src/main/scala/cromwell/services/auth/GithubAuthVendingSupport.scala#L34
Check warning on line 46 in services/src/main/scala/cromwell/services/auth/GithubAuthVendingSupport.scala
services/src/main/scala/cromwell/services/auth/GithubAuthVendingSupport.scala#L46
Check warning on line 49 in services/src/main/scala/cromwell/services/auth/GithubAuthVendingSupport.scala
services/src/main/scala/cromwell/services/auth/GithubAuthVendingSupport.scala#L49
Check warning on line 26 in services/src/main/scala/cromwell/services/auth/ecm/EcmService.scala
services/src/main/scala/cromwell/services/auth/ecm/EcmService.scala#L26
Check warning on line 28 in services/src/main/scala/cromwell/services/auth/ecm/EcmService.scala
services/src/main/scala/cromwell/services/auth/ecm/EcmService.scala#L28
Check warning on line 31 in services/src/main/scala/cromwell/services/auth/ecm/EcmService.scala
services/src/main/scala/cromwell/services/auth/ecm/EcmService.scala#L30-L31
Check warning on line 40 in services/src/main/scala/cromwell/services/auth/ecm/EcmService.scala
services/src/main/scala/cromwell/services/auth/ecm/EcmService.scala#L40
Check warning on line 42 in services/src/main/scala/cromwell/services/auth/ecm/EcmService.scala
services/src/main/scala/cromwell/services/auth/ecm/EcmService.scala#L42
Check warning on line 44 in services/src/main/scala/cromwell/services/auth/ecm/EcmService.scala
services/src/main/scala/cromwell/services/auth/ecm/EcmService.scala#L44
Check warning on line 48 in services/src/main/scala/cromwell/services/auth/ecm/EcmService.scala
services/src/main/scala/cromwell/services/auth/ecm/EcmService.scala#L48
Check warning on line 35 in services/src/main/scala/cromwell/services/auth/impl/GithubAuthVendingActor.scala
services/src/main/scala/cromwell/services/auth/impl/GithubAuthVendingActor.scala#L34-L35
Check warning on line 40 in services/src/main/scala/cromwell/services/auth/impl/GithubAuthVendingActor.scala
services/src/main/scala/cromwell/services/auth/impl/GithubAuthVendingActor.scala#L38-L40
Check warning on line 43 in services/src/main/scala/cromwell/services/auth/impl/GithubAuthVendingActor.scala
services/src/main/scala/cromwell/services/auth/impl/GithubAuthVendingActor.scala#L43
Check warning on line 47 in services/src/main/scala/cromwell/services/auth/impl/GithubAuthVendingActor.scala
services/src/main/scala/cromwell/services/auth/impl/GithubAuthVendingActor.scala#L47
Check warning on line 51 in services/src/main/scala/cromwell/services/auth/impl/GithubAuthVendingActor.scala
services/src/main/scala/cromwell/services/auth/impl/GithubAuthVendingActor.scala#L51
Check warning on line 55 in services/src/main/scala/cromwell/services/auth/impl/GithubAuthVendingActor.scala
services/src/main/scala/cromwell/services/auth/impl/GithubAuthVendingActor.scala#L55
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a case for "valid config / no token for user in ECM"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think this is covered by the last test case
return failure message if ECM service returns non-successful response
? It seems that ECM would return a non-successful response if there was no Github token associated with the user and the last test case does simulategetGithubAccessToken()
returning a Failed future which is what would happen in "no token for user in ECM" case too.