-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add expiration seconds to binding params #1189
Add expiration seconds to binding params #1189
Conversation
Add one of following labels |
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.
Please check review remarks.
internal/broker/bind_create_test.go
Outdated
require.NoError(t, err) | ||
t.Logf("binding: %v", binding.Credentials) | ||
assert.Equal(t, 10000*time.Second, duration) |
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.
Magic value. Could we use const preparing request and testing assertion?
internal/broker/bind_create_test.go
Outdated
|
||
duration, err := getTokenDuration(t, binding.Credentials) | ||
require.NoError(t, err) | ||
assert.Equal(t, 900*time.Second, duration) |
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.
Magic value again. As in the previous comment.
a5a06f1
to
1177215
Compare
e95a757
to
3fd7c40
Compare
3fd7c40
to
b2ba57d
Compare
Description
Changes proposed in this pull request:
expiration_seconds
parameter if specified, otherwise use value from KEB config,Related issue(s)
See also #284