mirror of
https://github.com/status-im/consul.git
synced 2025-01-18 17:52:17 +00:00
config: rename testCase fields
So that their name better reflects their purpose
This commit is contained in:
parent
534631659c
commit
b91c5a8383
File diff suppressed because it is too large
Load Diff
@ -20,8 +20,8 @@ func TestSegments(t *testing.T) {
|
|||||||
},
|
},
|
||||||
json: []string{`{ "server": true, "segment": "a" }`},
|
json: []string{`{ "server": true, "segment": "a" }`},
|
||||||
hcl: []string{` server = true segment = "a" `},
|
hcl: []string{` server = true segment = "a" `},
|
||||||
err: `Network segments are not supported in this version of Consul`,
|
expectedErr: `Network segments are not supported in this version of Consul`,
|
||||||
warns: []string{
|
expectedWarnings: []string{
|
||||||
enterpriseConfigKeyError{key: "segment"}.Error(),
|
enterpriseConfigKeyError{key: "segment"}.Error(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -32,8 +32,8 @@ func TestSegments(t *testing.T) {
|
|||||||
},
|
},
|
||||||
json: []string{`{ "segments":[{ "name":"x" }] }`},
|
json: []string{`{ "segments":[{ "name":"x" }] }`},
|
||||||
hcl: []string{`segments = [{ name = "x" }]`},
|
hcl: []string{`segments = [{ name = "x" }]`},
|
||||||
err: `Port for segment "x" cannot be <= 0`,
|
expectedErr: `Port for segment "x" cannot be <= 0`,
|
||||||
warns: []string{
|
expectedWarnings: []string{
|
||||||
enterpriseConfigKeyError{key: "segments"}.Error(),
|
enterpriseConfigKeyError{key: "segments"}.Error(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -44,8 +44,8 @@ func TestSegments(t *testing.T) {
|
|||||||
},
|
},
|
||||||
json: []string{`{ "segments":[{ "name":"x", "port": 123 }] }`},
|
json: []string{`{ "segments":[{ "name":"x", "port": 123 }] }`},
|
||||||
hcl: []string{`segments = [{ name = "x" port = 123 }]`},
|
hcl: []string{`segments = [{ name = "x" port = 123 }]`},
|
||||||
err: `Network segments are not supported in this version of Consul`,
|
expectedErr: `Network segments are not supported in this version of Consul`,
|
||||||
warns: []string{
|
expectedWarnings: []string{
|
||||||
enterpriseConfigKeyError{key: "segments"}.Error(),
|
enterpriseConfigKeyError{key: "segments"}.Error(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user