public class NetworkOrganizerTest
extends java.lang.Object
| Constructor and Description |
|---|
NetworkOrganizerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getRandomAwsIp() |
protected java.lang.String |
getRandomIp() |
void |
setUp() |
void |
tearDown() |
void |
testFormat1()
Here we just check formatting for octets
|
void |
testFormat2() |
void |
testNetTree1() |
void |
testNetTree2() |
void |
testNetTree3()
This test is just a naive test for counters
|
void |
testNetTree4() |
void |
testNetTree5() |
void |
testNetTree6() |
void |
testSelectionDisjointNetworkC1() |
void |
testSelectionSingleBox1() |
void |
testSelectionSingleBox2() |
void |
testSelectionUniformNetworkC1() |
void |
testSelectionWithoutMaskB1()
In this test we'll check shards selection in "casual" AWS setup
By default AWS box has only one IP from 172.16.0.0/12 space + local loopback IP, which isn't exposed
|
void |
testSelectionWithoutMaskB2()
In this test we check for environment which has AWS-like setup:
1) Each box has IP address from 172.16.0.0/12 range
2) Within original homogenous network, we have 3 separate networks:
A) 192.168.0.X
B) 10.0.12.X
C) 10.172.12.X
|
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic void testSelectionUniformNetworkC1()
public void testSelectionSingleBox1()
throws java.lang.Exception
java.lang.Exceptionpublic void testSelectionSingleBox2()
throws java.lang.Exception
java.lang.Exceptionpublic void testSelectionDisjointNetworkC1()
public void testSelectionWithoutMaskB1()
throws java.lang.Exception
java.lang.Exceptionpublic void testSelectionWithoutMaskB2()
throws java.lang.Exception
java.lang.Exceptionpublic void testFormat1()
throws java.lang.Exception
java.lang.Exceptionpublic void testFormat2()
throws java.lang.Exception
java.lang.Exceptionpublic void testNetTree1()
throws java.lang.Exception
java.lang.Exceptionpublic void testNetTree2()
throws java.lang.Exception
java.lang.Exceptionpublic void testNetTree3()
throws java.lang.Exception
java.lang.Exceptionpublic void testNetTree4()
throws java.lang.Exception
java.lang.Exceptionpublic void testNetTree5()
throws java.lang.Exception
java.lang.Exceptionpublic void testNetTree6()
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getRandomIp()
protected java.lang.String getRandomAwsIp()