Skip to content

Commit b88897f

Browse files
dwsuseigaw
authored andcommitted
test: add config-pcie-with-tcp-config test case
This test case tests if a config.json with tcp configuration is correctly read. Signed-off-by: Daniel Wagner <[email protected]>
1 parent ab11b28 commit b88897f

4 files changed

Lines changed: 97 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[
2+
{
3+
"hostnqn":"nqn.2014-08.org.nvmexpress:uuid:2cd2c43b-a90a-45c1-a8cd-86b33ab273b5",
4+
"hostid":"2cd2c43b-a90a-45c1-a8cd-86b33ab273b5",
5+
"subsystems":[
6+
{
7+
"nqn":"nqn.io-1",
8+
"ports":[
9+
{
10+
"transport":"tcp",
11+
"traddr":"192.168.154.144",
12+
"trsvcid":"4420",
13+
"dhchap_key":"none"
14+
},
15+
{
16+
"transport":"tcp",
17+
"traddr":"192.168.154.144",
18+
"trsvcid":"4421",
19+
"dhchap_key":"none"
20+
}
21+
]
22+
}
23+
]
24+
},
25+
{
26+
"hostnqn":"nqn.2014-08.org.nvmexpress:uuid:befdec4c-2234-11b2-a85c-ca77c773af36",
27+
"hostid":"befdec4c-2234-11b2-a85c-ca77c773af36",
28+
"subsystems":[
29+
{
30+
"nqn":"nqn.io-1",
31+
"ports":[
32+
{
33+
"transport":"tcp",
34+
"traddr":"192.168.154.144",
35+
"trsvcid":"4420",
36+
"dhchap_key":"none"
37+
},
38+
{
39+
"transport":"tcp",
40+
"traddr":"192.168.154.144",
41+
"trsvcid":"4421",
42+
"dhchap_key":"none"
43+
}
44+
]
45+
}
46+
]
47+
}
48+
]
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[
2+
{
3+
"hostnqn":"nqn.2014-08.org.nvmexpress:uuid:2cd2c43b-a90a-45c1-a8cd-86b33ab273b5",
4+
"hostid":"2cd2c43b-a90a-45c1-a8cd-86b33ab273b5",
5+
"subsystems":[
6+
{
7+
"nqn":"nqn.io-1",
8+
"ports":[
9+
{
10+
"transport":"tcp",
11+
"traddr":"192.168.154.144",
12+
"trsvcid":"4420",
13+
"dhchap_key":"none"
14+
},
15+
{
16+
"transport":"tcp",
17+
"traddr":"192.168.154.144",
18+
"trsvcid":"4421",
19+
"dhchap_key":"none"
20+
}
21+
]
22+
}
23+
]
24+
},
25+
{
26+
"hostnqn":"nqn.2014-08.org.nvmexpress:uuid:befdec4c-2234-11b2-a85c-ca77c773af36",
27+
"hostid":"befdec4c-2234-11b2-a85c-ca77c773af36",
28+
"subsystems":[
29+
{
30+
"nqn":"nqn.io-1",
31+
"ports":[
32+
{
33+
"transport":"tcp",
34+
"traddr":"192.168.154.144",
35+
"trsvcid":"4420",
36+
"dhchap_key":"none"
37+
},
38+
{
39+
"transport":"tcp",
40+
"traddr":"192.168.154.144",
41+
"trsvcid":"4421",
42+
"dhchap_key":"none"
43+
}
44+
]
45+
}
46+
]
47+
}
48+
]
11.1 KB
Binary file not shown.

test/config/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ if diff.found()
1616

1717
config_data = [
1818
'config-pcie',
19+
'config-pcie-with-tcp-config',
1920
]
2021

2122
config_diff = find_program('config-diff.sh')

0 commit comments

Comments
 (0)