16 package org.openkilda.atdd;
18 import cucumber.api.PendingException;
19 import cucumber.api.java.en.Given;
20 import cucumber.api.java.en.Then;
21 import cucumber.api.java.en.When;
26 import java.nio.file.Files;
28 import static org.junit.Assert.*;
61 private static final String fileName =
"topologies/pce-spider-topology.json";
69 @Given(
"^a spider web topology with endpoints A and B$")
71 ClassLoader classLoader = getClass().getClassLoader();
72 File file =
new File(classLoader.getResource(fileName).getFile());
73 String json =
new String(Files.readAllBytes(file.toPath()));
79 @Given(
"^no link properties$")
82 throw new PendingException();
85 @When(
"^link costs are uploaded through the NB API$")
88 throw new PendingException();
91 @Then(
"^link costs can be downloaded$")
94 throw new PendingException();
97 @Then(
"^link properties reflect what is in the link properties table$")
100 throw new PendingException();
103 @Then(
"^link costs can be deleted$")
106 throw new PendingException();
109 @When(
"^link costs are updated through the NB API$")
112 throw new PendingException();
115 @When(
"^a flow request is made between A and B with HOPS$")
118 throw new PendingException();
121 @Then(
"^the path matches the HOPS$")
124 throw new PendingException();
127 @Then(
"^the path between A and B is pingable$")
130 throw new PendingException();
133 @When(
"^a flow request is made between A and B with LATENCY$")
136 throw new PendingException();
139 @Then(
"^the path matches the LATENCY$")
142 throw new PendingException();
145 @When(
"^a flow request is made between A and B with COST$")
148 throw new PendingException();
151 @Then(
"^the path matches the COST$")
154 throw new PendingException();
157 @When(
"^a flow request is made between A and B with EXTERNAL(\\d+)$")
160 throw new PendingException();
163 @Then(
"^the path matches the EXTERNAL(\\d+)$")
166 throw new PendingException();
169 @When(
"^one or more links are added to the spider web topology$")
172 throw new PendingException();
175 @Then(
"^the new links will have the cost properties added if the cost id matches$")
178 throw new PendingException();
void link_costs_can_be_downloaded()
void no_link_properties()
void a_flow_request_is_made_between_A_and_B_with_HOPS()
void the_path_matches_the_HOPS()
void the_path_matches_the_COST()
void a_flow_request_is_made_between_A_and_B_with_LATENCY()
void a_flow_request_is_made_between_A_and_B_with_EXTERNAL(int arg1)
void a_multi_path_topology()
void a_flow_request_is_made_between_A_and_B_with_COST()
void link_properties_reflect_what_is_in_the_link_properties_table()
void link_costs_can_be_deleted()
void one_or_more_links_are_added_to_the_spider_web_topology()
static boolean CreateMininetTopology(String json)
void the_path_matches_the_EXTERNAL(int arg1)
void the_path_between_A_and_B_is_pingable()
void link_costs_are_updated_through_the_NB_API()
void the_path_matches_the_LATENCY()
void link_costs_are_uploaded_through_the_NB_API()
void the_new_links_will_have_the_cost_properties_added_if_the_cost_id_matches()