This sorts the actions before comparing the flows, avoiding issues
when upstream changes cause the action order to change in the data
structure.
Change-Id: Ia4b62e2af5bc432f076432422236adacb097885b
Signed-off-by: Stephen Kitt <skitt@redhat.com>
flowDst = getFlowWithoutCookie(flowDst);
Flow expected = ExpectedObjects.checkDmacOfSameDpn(flowId, interfaceInfo, actualElanInstances);
- AssertDataObjects.assertEqualBeans(expected, flowDst);
+ AssertDataObjects.assertEqualBeans(getSortedActions(expected), getSortedActions(flowDst));
}
@Test public void checkDmacOfOtherDPN() throws Exception {