hs-test: abstract away topology from test cases
Definition of shared volumes and containers has been moved to yaml files to be together with network topology. Containers are automatically run at the beginning of each test case and stopped afterward. Type: test Signed-off-by: Maros Ondrejicka <maros.ondrejicka@pantheon.tech> Change-Id: I264cbb4f1355f8bd7aade221e9609fb5b9bd693e
This commit is contained in:

committed by
Florin Coras

parent
aff4d320f0
commit
db823ed6e9
24
extras/hs-test/topo-network/2peerVeth.yaml
Executable file
24
extras/hs-test/topo-network/2peerVeth.yaml
Executable file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
devices:
|
||||
- name: "hsns"
|
||||
type: "netns"
|
||||
|
||||
- name: "vppsrv"
|
||||
type: "veth"
|
||||
peer:
|
||||
name: "vppsrv_veth"
|
||||
netns: "hsns"
|
||||
|
||||
- name: "vppcln"
|
||||
type: "veth"
|
||||
peer:
|
||||
name: "vppcln_veth"
|
||||
netns: "hsns"
|
||||
|
||||
- name: "br"
|
||||
type: "bridge"
|
||||
netns: "hsns"
|
||||
interfaces:
|
||||
- vppsrv_veth
|
||||
- vppcln_veth
|
||||
|
21
extras/hs-test/topo-network/ns.yaml
Executable file
21
extras/hs-test/topo-network/ns.yaml
Executable file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
devices:
|
||||
- name: "client"
|
||||
type: "netns"
|
||||
|
||||
- name: "server"
|
||||
type: "netns"
|
||||
|
||||
- name: "vpp0"
|
||||
type: "veth"
|
||||
peer:
|
||||
name: "client"
|
||||
netns: "client"
|
||||
ip4: "10.0.0.1/24"
|
||||
|
||||
- name: "vpp1"
|
||||
type: "veth"
|
||||
peer:
|
||||
name: "server"
|
||||
netns: "server"
|
||||
ip4: "10.0.1.1/24"
|
5
extras/hs-test/topo-network/tap.yaml
Executable file
5
extras/hs-test/topo-network/tap.yaml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
devices:
|
||||
- name: "tap0"
|
||||
type: "tap"
|
||||
ip4: "10.10.10.1/24"
|
Reference in New Issue
Block a user