Skip to content

Commit

Permalink
Fix provider/dnsimple/dnsimple_test.go: Add the missing call to NewDn…
Browse files Browse the repository at this point in the history
…simpleProvider for testing its behavior when the DNSIMPLE_OAUTH environment variable is not set
  • Loading branch information
IntegralProgrammer committed Feb 26, 2024
1 parent d475eb6 commit 3babcbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions provider/dnsimple/dnsimple_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ func TestNewDnsimpleProvider(t *testing.T) {
if err == nil {
t.Errorf("Expected to fail new provider on bad token")
}

os.Unsetenv("DNSIMPLE_OAUTH")
_, err = NewDnsimpleProvider(endpoint.NewDomainFilter([]string{"example.com"}), provider.NewZoneIDFilter([]string{""}), true)
if err == nil {
t.Errorf("Expected to fail new provider on empty token")
}
Expand Down

0 comments on commit 3babcbc

Please sign in to comment.