mirror of https://github.com/status-im/consul.git
testing: Revert assertion for virtual IP flag (#11932)
This commit is contained in:
parent
d1ac40e967
commit
30550f2c63
|
@ -33,10 +33,10 @@ func TestLeader_SystemMetadata_CRUD(t *testing.T) {
|
||||||
|
|
||||||
state := srv.fsm.State()
|
state := srv.fsm.State()
|
||||||
|
|
||||||
// Initially has one entry for virtual-ips feature flag
|
// Initially has no entries
|
||||||
_, entries, err := state.SystemMetadataList(nil)
|
_, entries, err := state.SystemMetadataList(nil)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Len(t, entries, 1)
|
require.Len(t, entries, 0)
|
||||||
|
|
||||||
// Create 3
|
// Create 3
|
||||||
require.NoError(t, srv.setSystemMetadataKey("key1", "val1"))
|
require.NoError(t, srv.setSystemMetadataKey("key1", "val1"))
|
||||||
|
@ -53,10 +53,9 @@ func TestLeader_SystemMetadata_CRUD(t *testing.T) {
|
||||||
|
|
||||||
_, entries, err = state.SystemMetadataList(nil)
|
_, entries, err = state.SystemMetadataList(nil)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Len(t, entries, 4)
|
require.Len(t, entries, 3)
|
||||||
|
|
||||||
require.Equal(t, map[string]string{
|
require.Equal(t, map[string]string{
|
||||||
structs.SystemMetadataVirtualIPsEnabled: "true",
|
|
||||||
"key1": "val1",
|
"key1": "val1",
|
||||||
"key2": "val2",
|
"key2": "val2",
|
||||||
"key3": "",
|
"key3": "",
|
||||||
|
@ -68,10 +67,9 @@ func TestLeader_SystemMetadata_CRUD(t *testing.T) {
|
||||||
|
|
||||||
_, entries, err = state.SystemMetadataList(nil)
|
_, entries, err = state.SystemMetadataList(nil)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Len(t, entries, 3)
|
require.Len(t, entries, 2)
|
||||||
|
|
||||||
require.Equal(t, map[string]string{
|
require.Equal(t, map[string]string{
|
||||||
structs.SystemMetadataVirtualIPsEnabled: "true",
|
|
||||||
"key2": "val2",
|
"key2": "val2",
|
||||||
"key3": "val3",
|
"key3": "val3",
|
||||||
}, mapify(entries))
|
}, mapify(entries))
|
||||||
|
|
Loading…
Reference in New Issue