prometheus/scrape
Mario Trangoni d9cb4a14d3 scrape/target_test.go: remove deprecated function BuildNameToCertificate()
Related to eb93c684d4

See,
$ make lint
>> running golangci-lint
GO111MODULE=on go list -e -compiled -test=true -export=false -deps=true -find=false -tags= -- ./... > /dev/null
GO111MODULE=on /home/mt/go/packages/bin/golangci-lint run  ./...
scrape/target_test.go:260:2: SA1019: tlsConfig.BuildNameToCertificate is deprecated: NameToCertificate only allows associating a single certificate with a given name. Leave that field nil to let the library select the first compatible chain from Certificates.  (staticcheck)
	tlsConfig.BuildNameToCertificate()
	^
scrape/target_test.go:357:2: SA1019: tlsConfig.BuildNameToCertificate is deprecated: NameToCertificate only allows associating a single certificate with a given name. Leave that field nil to let the library select the first compatible chain from Certificates.  (staticcheck)
	tlsConfig.BuildNameToCertificate()
	^
make: *** [Makefile.common:181: common-lint] Error 1

$ go version
go version go1.14 linux/amd64

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
2020-03-01 15:58:22 +01:00
..
testdata rename package retrieve to scrape 2018-02-01 09:55:07 +00:00
helpers_test.go Unify Iterator interfaces. All point to storage now. 2020-02-17 18:03:54 +00:00
manager.go Unify Iterator interfaces. All point to storage now. 2020-02-17 18:03:54 +00:00
manager_test.go Improve testutil.ErrorEqual (#6471) 2019-12-17 21:11:33 +00:00
scrape.go Unify Iterator interfaces. All point to storage now. 2020-02-17 18:03:54 +00:00
scrape_test.go scrape_test: fix send-to-closed-channel bugs (#6849) 2020-02-20 13:40:25 +00:00
target.go Unify Iterator interfaces. All point to storage now. 2020-02-17 18:03:54 +00:00
target_test.go scrape/target_test.go: remove deprecated function BuildNameToCertificate() 2020-03-01 15:58:22 +01:00