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
[Extensions] Generate auth tokens for service accounts #2716
[Extensions] Generate auth tokens for service accounts #2716
Changes from 1 commit
70907f4
773503a
66e8640
c0047ec
d641510
3edb196
02315d9
f0be8eb
a6796cd
82a6cb8
a157268
686c135
b8370c4
6a77b27
94b65c9
5a9c7e6
a693eb9
e7046e7
8172aa6
7c5346f
858be53
8ee7dd5
2243526
e4cb718
09d55c7
3de0249
3d7a7e5
3cc9e55
4fefe82
d618c22
51988c3
b64eaa8
df5c364
6f44ec0
836ad55
354227a
9f94640
b21820f
671d9d6
16e3f0b
e826bf8
9733b73
d4f668a
9961f53
dc33ffa
972998e
e3c1575
e5d92df
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
orElseThrow will not be utilized here as the value will either be a boolean or it will throw an NPE stating
return value of isEnabled is null
. In order to utilize orElseThrow to catch a missingisEnabled
orisService
property in SecurityJsonNode, you can make following changes: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.
Is this
response.getBody()
the entire body of the request? Or just the status code?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.
So for asserts, you can provide 3 arguments in which case the first one is what will be output if the assertion fails. It would be the whole body though in this case.