From b3b767ad8910172bf98df8978ec9d707aef57e81 Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Fri, 14 Jun 2019 00:26:24 -0700 Subject: [PATCH 1/2] Fix ServerInfo test for 7.3.0 tested that it still passes with 7.2.6 --- clients/splunk/introspection_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/splunk/introspection_test.go b/clients/splunk/introspection_test.go index f85febd..0bdf26e 100644 --- a/clients/splunk/introspection_test.go +++ b/clients/splunk/introspection_test.go @@ -17,7 +17,7 @@ func TestIntrospectionService_ServerInfo(t *testing.T) { assert.NilError(t, err) assert.Equal(t, len(info), 1) assert.Assert(t, info[0].ID != "") - assert.Assert(t, len(resp.Links) > 0) + assert.Assert(t, len(info[0].Links) > 0) assert.Equal(t, resp.Paging.Offset, 0) _, build := resp.Generator["build"] assert.Assert(t, build) From dcda503063185404a72e4c5f3fa0492d48dabc72 Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Fri, 14 Jun 2019 00:38:16 -0700 Subject: [PATCH 2/2] do not scan vendor folder with gosec newer versions of gosec bail on many issues in vendored libraries, that are outside our control --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fcc6420..c302d17 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ lint: dep go list ./... | grep -v vendor | xargs go vet go list ./... | grep -v vendor | xargs golint ineffassign . - gosec -quiet -vendor ./... + gosec -quiet ./... .PHONY: prereq prereq: