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

[TEST]: Improvement: Verification of switches and relations dump after WFM restarting #5742

Merged

Conversation

yuliiamir
Copy link
Collaborator

No description provided.

@@ -62,6 +62,20 @@ class StormLcmSpec extends HealthCheckSpecification {
wfmManipulator = new WfmManipulator(dockerHost)
}

def cleanupSpec() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added this topology readiness verification to avoid further tests execution when the topology has not been recovered after WFM restarting (we have dump verification that can fail before topology verification)

@@ -172,4 +184,19 @@ class StormLcmSpec extends HealthCheckSpecification {
assert northbound.getAllLinks().every {it.state == IslChangeType.DISCOVERED}
}
}

private def collectRelationsDetails(List relationsDump) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

According to the old logic instead of excluding fields from validation, we collect fields that should be verified.

@@ -82,27 +96,25 @@ class StormLcmSpec extends HealthCheckSpecification {
flows.each { flow -> flow.validateAndCollectDiscrepancies().isEmpty() }

and: "Database dump"
//unstable for parallel runs even when isolated. why?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It seems like the root cause of flakiness was the 'has' relation for flow_stats .

@IvanChupin IvanChupin merged commit 3395883 into develop Oct 22, 2024
3 checks passed
@yuliiamir yuliiamir deleted the test/improvement-switches-relations-dump-verification branch January 17, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants