-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
added timestamp support for test mode #1023
Conversation
Apply Sweep Rules to your PR?
|
1407fcc
to
14a60d5
Compare
Signed-off-by: 404fixer <govindtomar94@gmail.com>
Signed-off-by: 404fixer <govindtomar94@gmail.com>
Signed-off-by: 404fixer <govindtomar94@gmail.com>
Signed-off-by: 404fixer <govindtomar94@gmail.com>
Signed-off-by: 404fixer <govindtomar94@gmail.com>
c6ba957
to
de5a614
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.
Please address the comments
Signed-off-by: 404fixer <govindtomar94@gmail.com>
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 address the comments
Signed-off-by: 404fixer <govindtomar94@gmail.com>
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.
fix the typo
pkg/service/test/util.go
Outdated
} | ||
|
||
if tc.HttpResp.Timestamp == (time.Time{}) { | ||
logger.Warn("response timestamp is misssing of " + tc.Name) |
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.
typo error "missing" and instead of "of" use "for"
Signed-off-by: 404fixer <govindtomar94@gmail.com>
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.
ship it!
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.
LGTM
Related Issue
Closes: #916
Describe the changes you've made
Added the support for timestamp. Now, mocks will be filtered if it lies inside the test case's request and response timestamp
Type of change
Please let us know if any test cases are added
Please describe the tests(if any). Provide instructions how its affecting the coverage.
Describe if there is any unusual behaviour of your code(Write
NA
if there isn't)A clear and concise description of it.
Checklist:
Screenshots (if any)