From c9d4e5fc948ed6cc996c4dac455f73bd009737c2 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Tue, 24 May 2022 18:12:13 +0200 Subject: [PATCH] vultr: minor fixups Signed-off-by: Julien Pivotto --- discovery/vultr/mock_test.go | 8 ++++---- docs/configuration/configuration.md | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/discovery/vultr/mock_test.go b/discovery/vultr/mock_test.go index 639234e28..417866fce 100644 --- a/discovery/vultr/mock_test.go +++ b/discovery/vultr/mock_test.go @@ -27,25 +27,25 @@ type SDMock struct { Mux *http.ServeMux } -// NewSDMock returns a new SDMock. +// NewSDMock returns a new Vultr mock server. func NewSDMock(t *testing.T) *SDMock { return &SDMock{ t: t, } } -// Endpoint returns the URI to the mock server +// Endpoint returns the URI to the mock server. func (m *SDMock) Endpoint() string { return m.Server.URL + "/" } -// Setup creates the mock server +// Setup creates the mock server. func (m *SDMock) Setup() { m.Mux = http.NewServeMux() m.Server = httptest.NewServer(m.Mux) } -// ShutdownServer creates the mock server +// ShutdownServer shuts down the mock server. func (m *SDMock) ShutdownServer() { m.Server.Close() } diff --git a/docs/configuration/configuration.md b/docs/configuration/configuration.md index 4044263a1..3ceee1acb 100644 --- a/docs/configuration/configuration.md +++ b/docs/configuration/configuration.md @@ -2595,23 +2595,23 @@ oauth2: [ ] # Optional proxy URL. - [ proxy_url: ] +[ proxy_url: ] # Configure whether HTTP requests follow HTTP 3xx redirects. - [ follow_redirects: | default = true ] +[ follow_redirects: | default = true ] # Whether to enable HTTP2. - [ enable_http2: | default: true ] +[ enable_http2: | default: true ] # TLS configuration. tls_config: [ ] # The port to scrape metrics from. - [ port: | default = 80 ] +[ port: | default = 80 ] # The time after which the instances are refreshed. - [ refresh_interval: | default = 60s ] +[ refresh_interval: | default = 60s ] ```