Skip to content

Commit

Permalink
Added test for credential.
Browse files Browse the repository at this point in the history
  • Loading branch information
Identitry committed Jun 8, 2021
1 parent e8bc9f0 commit 5026b48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ func (c *loopiaDNSProviderSolver) Present(ch *v1alpha1.ChallengeRequest) error {
creds, err := c.getCredentials(&cfg, ch.ResourceNamespace)
if err != nil {
return fmt.Errorf("unable to get credential: %v", err)
} else if creds.Username != "" && creds.Password != "" {
klog.V(2).Infof("Successfully extracted Loopia API credentials.")
}

// Initialize new Loopia client.
Expand Down

0 comments on commit 5026b48

Please sign in to comment.