state: add tests for services.kind indexer
This commit is contained in:
parent
9f9eadd569
commit
bcde8d2fad
|
@ -237,5 +237,17 @@ func testIndexerTableServices() map[string]indexerTestCase {
|
|||
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…
Reference in New Issue