-
Notifications
You must be signed in to change notification settings - Fork 343
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
Use RFC 3339 for lastUpdated timestamp in /server_server_capabilities #7744
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7744 +/- ##
=============================================
- Coverage 65.05% 32.07% -32.98%
Complexity 98 98
=============================================
Files 314 712 +398
Lines 12365 81475 +69110
Branches 907 965 +58
=============================================
+ Hits 8044 26134 +18090
- Misses 3968 53195 +49227
- Partials 353 2146 +1793
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 367 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Check #1 - simple changes requested
func (to *Session) GetServerServerCapabilities(opts RequestOptions) (tc.ServerServerCapabilitiesResponse, toclientlib.ReqInf, error) { | ||
var resp tc.ServerServerCapabilitiesResponse | ||
func (to *Session) GetServerServerCapabilities(opts RequestOptions) (tc.ServerServerCapabilitiesResponseV5, toclientlib.ReqInf, error) { | ||
var resp tc.ServerServerCapabilitiesResponseV5 |
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.
Suggestion: GetServerServerCapabilities
should probably be GetServerServerCapabilitiesV5
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.
We don't want V5 in the struct method name, since this is already the v5 version of the Session
struct
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.
Sounds good
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.
Verified v5
servers_server_capability_test.go
DOES test the new code.
73fd4c3
to
c2e7652
Compare
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.
Approved!
c2e7652
to
931be5c
Compare
This PR resolves #7743 by using the timestamp format specified in RFC 3339 for the
lastUpdated
field of the/api/5.0/server_server_capabilities
endpoint.Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
Run the server_server_capabilities API tests
PR submission checklist