@Then("^flow rules should not be cleared up")
public void checkFlowRules() {
FlowRules result = CLIENT
.target(DefaultParameters.FLOODLIGHT_ENDPOINT)
.path(ACL_RULES_PATH)
.request()
.get(FlowRules.class);
assertTrue("Floodlight should send flow rules", result != null && result.getFlows() != null);
String expectedCookie = String.valueOf(Long.parseLong(COOKIE.substring(2), 16));
assertThat(result.getFlows(), hasItem(hasProperty("cookie", is(expectedCookie))));
dockerClient.close();
}
ClearTablesTest.java 文件源码
java
阅读 16
收藏 0
点赞 0
评论 0
项目:open-kilda
作者:
评论列表
文章目录