Open Kilda Java Documentation
Common.java
Go to the documentation of this file.
1 /* Copyright 2017 Telstra Open Source
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package org.openkilda.atdd;
17 
18 import cucumber.api.java.en.Given;
22 
26 public class Common {
27 
31  public static Common latest;
32 
33  public String kildaHost = "localhost";
34 
35 
36  public Common() {
37  latest = this;
38  }
39 
40  public Common setHost(String kildaHost) {
41  this.kildaHost = kildaHost;
42  return this;
43  }
44 
48  @Given("^a clean controller$")
49  public void a_clean_controller() throws Throwable {
50  // Write code here that turns the phrase above into concrete actions
51  setHost(System.getProperty("kilda.host", kildaHost));
52 
54  }
55 
59  @Given("^a clean flow topology$")
60  public void a_clean_flow_topology() throws Throwable {
62 
63  FeatureTogglePayload features = new FeatureTogglePayload(true, true, true, true, true, true,
64  true);
66  }
67 }
static FeatureTogglePayload updateFeaturesStatus(FeatureTogglePayload desired)
Definition: FlowUtils.java:621
static Common latest
Definition: Common.java:31
Common setHost(String kildaHost)
Definition: Common.java:40