Open Kilda Java Documentation
MininetSmokeTest.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.smoke;
17
18
import
com.google.common.base.Charsets;
19
import
com.google.common.io.Resources;
20
import
org
.
openkilda
.
topo
.*;
21
import
org
.junit.Test;
22
23
import
java.io.IOException;
24
import
java.net.URL;
25
29
public
class
MininetSmokeTest
{
30
31
private
void
testIt(URL
url
)
throws
Exception {
32
TestUtils
.
clearEverything
();
33
34
TopologyHelp
.
TestMininetCreate
(
35
Resources.toString(
url
, Charsets.UTF_8)
36
);
37
}
38
39
@Test
40
public
void
test5_20
() throws Exception {
41
testIt(Resources.getResource(
"topologies/rand-5-20.json"
));
42
}
43
44
}
org.openkilda.topo.TestUtils
Definition:
TestUtils.java:40
org.openkilda.topo.TopologyHelp.TestMininetCreate
static boolean TestMininetCreate(String json)
Definition:
TopologyHelp.java:79
clean-flow-rules.url
string url
Definition:
clean-flow-rules.py:20
org.openkilda.topo.TopologyHelp
Definition:
TopologyHelp.java:39
org
org.openkilda.smoke.MininetSmokeTest
Definition:
MininetSmokeTest.java:29
org.openkilda.topo
org.openkilda
org.openkilda.topo.TestUtils.clearEverything
static void clearEverything()
Definition:
TestUtils.java:178
org.openkilda.smoke.MininetSmokeTest.test5_20
void test5_20()
Definition:
MininetSmokeTest.java:40
open-kilda-develop
services
src
atdd
src
test
java
org
openkilda
smoke
MininetSmokeTest.java
Generated by
1.8.14