-
Notifications
You must be signed in to change notification settings - Fork 53
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
[TEST]: Improvement: Verification of switches and relations dump after WFM restarting #5742
Conversation
@@ -62,6 +62,20 @@ class StormLcmSpec extends HealthCheckSpecification { | |||
wfmManipulator = new WfmManipulator(dockerHost) | |||
} | |||
|
|||
def cleanupSpec() { |
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.
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) { |
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.
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? |
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.
It seems like the root cause of flakiness was the 'has' relation for flow_stats .
No description provided.