mirror of
https://github.com/status-im/consul.git
synced 2025-01-24 12:40:17 +00:00
state: add tests for services.kind indexer
This commit is contained in:
parent
0c61abcc31
commit
b6553af222
@ -237,5 +237,17 @@ func testIndexerTableServices() map[string]indexerTestCase {
|
|||||||
expected: []byte("connectname\x00"),
|
expected: []byte("connectname\x00"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
indexKind: {
|
||||||
|
read: indexValue{
|
||||||
|
source: "connect-proxy",
|
||||||
|
expected: []byte("connect-proxy\x00"),
|
||||||
|
},
|
||||||
|
write: indexValue{
|
||||||
|
source: &structs.ServiceNode{
|
||||||
|
ServiceKind: structs.ServiceKindConnectProxy,
|
||||||
|
},
|
||||||
|
expected: []byte("connect-proxy\x00"),
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user