-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix monitoring module for e2e tests #4959
Conversation
2416c2a
to
e53a340
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.
GJ!
try: | ||
timestamp_datetime = datetime.strptime(timestamp_str, timestamp_format) | ||
greater_than_timestamp_formatted = datetime.strptime(greater_than_timestamp, | ||
timestamp_format_parameter) | ||
except ValueError: | ||
raise ValueError(f"Timestamp format not supported: {timestamp_str}." | ||
'Do the regex includes the timestamp?') |
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.
If you already have the greater_than_timestamp
field, is it necessary to add the timestamp regex to the regex
field? Isn't it a bit repetitive?
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.
To effectively compare with the time specified in the greater_than_timestamp
parameters, we need to gather the timestamp from the event. Therefore, the specified regex should be designed to match at least one group, specifically tailored for capturing the timestamp.
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 will revisit this in the future
Co-authored-by: Julia Magan <juliamgnr@gmail.com>
Co-authored-by: Julia Magan <juliamgnr@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.
LGTM
Description
This PR include a fix for the monitoring module in E2E tests
Testing performed
Testing