From 57778705925bdacc874d7ddf68a14a38f60f5296 Mon Sep 17 00:00:00 2001 From: Chris Marchesi Date: Thu, 18 Nov 2021 11:18:32 -0800 Subject: [PATCH] e2e ListHosts test was working off multiple sets with a single tag --- plugin/e2e_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/e2e_test.go b/plugin/e2e_test.go index e2ccb4c..6f2c50b 100644 --- a/plugin/e2e_test.go +++ b/plugin/e2e_test.go @@ -510,9 +510,9 @@ func testPluginListHosts(ctx context.Context, t *testing.T, p *AwsPlugin, region }) require.NoError(err) sets := make([]*hostsets.HostSet, len(tags)) - for i := range tags { + for i, tag := range tags { setAttrs, err := structpb.NewStruct(map[string]interface{}{ - constDescribeInstancesFilters: []interface{}{fmt.Sprintf("tag-key=%s", strings.Join(tags, ","))}, + constDescribeInstancesFilters: []interface{}{fmt.Sprintf("tag-key=%s", tag)}, }) require.NoError(err) sets[i] = &hostsets.HostSet{