From ab3363190861265805045306f189bf514cdf1678 Mon Sep 17 00:00:00 2001 From: Nikhil Vasan Date: Tue, 9 Apr 2024 11:35:35 -0700 Subject: [PATCH] nits --- oracle/config/api.go | 4 ++-- oracle/config/api_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/oracle/config/api.go b/oracle/config/api.go index 6d8ea5fb0..78e126a8b 100644 --- a/oracle/config/api.go +++ b/oracle/config/api.go @@ -51,8 +51,8 @@ type Endpoint struct { // URL is the URL that is used to fetch data from the API. URL string `json:"url"` - // Authentication is used to meta-data related to authentication for the API's - // endpoint. + // Authentication holds all data necessary for an API provider to authenticate with + // an endpoint. Authentication Authentication `json:"authentication"` } diff --git a/oracle/config/api_test.go b/oracle/config/api_test.go index 831a980c3..dcb624856 100644 --- a/oracle/config/api_test.go +++ b/oracle/config/api_test.go @@ -167,7 +167,7 @@ func TestAPIConfig(t *testing.T) { expectedErr: true, }, { - name: "bad config with invalid endpoint", + name: "bad config with invalid endpoint authentication (API key missing)", config: config.APIConfig{ Enabled: true, Timeout: time.Second, @@ -188,7 +188,7 @@ func TestAPIConfig(t *testing.T) { expectedErr: true, }, { - name: "bad config with invalid endpoint (HTTP header field missing)", + name: "bad config with invalid endpoint authentication (HTTP header field missing)", config: config.APIConfig{ Enabled: true, Timeout: time.Second,