Skip to content
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

kdr_runtime_policies_configurations test #435

Merged
merged 2 commits into from
Aug 1, 2024
Merged

Conversation

kooomix
Copy link
Contributor

@kooomix kooomix commented Aug 1, 2024

No description provided.

Copy link

Failed to generate code suggestions for PR

Copy link

github-actions bot commented Aug 1, 2024

Preparing PR description...

Copy link

github-actions bot commented Aug 1, 2024

Preparing review...

expected_incident_rulesets = TestUtil.get_expected_json(EXPECTED_RUNTIME_RULSETS_PATH)

try:
assert len(incident_rulesets["response"]) == len(expected_incident_rulesets["response"]), f"incident rulesets length is not equal, expected is {len(expected_incident_rulesets['response'])} but got {len(incident_rulesets['response'])}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both list of rulesets and list of default policies and list of incident types are about to grow.
are you sure you want the test to fail on those changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Bezbran I see - so checking length is greater than 0 would be enough?

@kooomix kooomix merged commit fd44fea into master Aug 1, 2024
3 checks passed
@matthyx matthyx deleted the kdr_policies_tests branch August 22, 2024 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants