Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
nivasan1 committed Apr 9, 2024
1 parent 948ea6b commit ab33631
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions oracle/config/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand Down
4 changes: 2 additions & 2 deletions oracle/config/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit ab33631

Please sign in to comment.