From b6553af222487442c780691a7114192594b08435 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Fri, 26 Mar 2021 18:11:41 -0400 Subject: [PATCH] state: add tests for services.kind indexer --- agent/consul/state/catalog_oss_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/agent/consul/state/catalog_oss_test.go b/agent/consul/state/catalog_oss_test.go index 2dedb78396..9e5b872a57 100644 --- a/agent/consul/state/catalog_oss_test.go +++ b/agent/consul/state/catalog_oss_test.go @@ -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"), + }, + }, } }