You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/systemtests/How-to-Run.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
# A guide to running netplugin systemtests on Vagrant and Baremetal platforms:
2
+
1
3
Current framework can run system-tests for
2
4
3
5
```
@@ -9,7 +11,6 @@ Baremetal-
9
11
Swarm -- ACI
10
12
Swarm -- Non-ACI
11
13
```
12
-
A guide to running netplugin systemtests on Vagrant and Baremetal platforms:
13
14
14
15
Customize the example JSON file `netplugin/systemtests/cfg.json.example` according to your environment and rename it to `netplugin/systemtests/cfg.json`. A typical file for vagrant with swarm looks like:
15
16
```
@@ -46,15 +47,33 @@ Customize the example JSON file `netplugin/systemtests/cfg.json.example` accordi
46
47
]
47
48
```
48
49
49
-
Testing with Vagrant:
50
+
51
+
### Testing with Vagrant:
50
52
51
53
* Make a suitable JSON file on your local machine (inside the systemtests directory).
52
54
* From the netplugin directory of your machine (outside the vagrant nodes), run:
53
55
54
56
```
55
57
make system-test
56
58
```
57
-
Testing with Baremetal with Swarm:
59
+
60
+
61
+
### Testing k8s with Vagrant:
62
+
63
+
To run all the k8s system tests:
64
+
65
+
```
66
+
make k8s-test
67
+
```
68
+
69
+
To work on a single system test, such as TestNetworkAddDeleteNoGatewayVLAN:
70
+
71
+
```
72
+
make K8S_SYSTEM_TESTS_TO_RUN=TestNetworkAddDeleteNoGatewayVLAN start k8s-test
73
+
```
74
+
75
+
76
+
### Testing with Baremetal with Swarm:
58
77
59
78
For ACI testing , We need to have connectivity to APIC and ACI Fabric Switches from Baremetal VMs and Hosts.
60
79
* You need to complete Pre-requisites, Step 1, Step 2, Step3 metioned here : https://github.com/contiv/demo/tree/master/net
@@ -84,7 +103,9 @@ godep go test -v -timeout 240m ./systemtests -check.v -check.f "TestACI"
84
103
85
104
This will run all the test functions which have the string TestACI
86
105
```
87
-
Troubleshooting
106
+
107
+
108
+
### Troubleshooting
88
109
89
110
* First delete all netmaster, netctl, netplugin, contivk8s binaries from $GOBIN directory from all Nodes in the Cluster
90
111
* You can perform following steps to clear etcd states
0 commit comments