Skip to content

Commit

Permalink
Update azure-auth_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Nov 2, 2024
1 parent 45c7d13 commit 05a839d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/azure-auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"testing"
"time"

infisical "github.com/infisical/go-sdk"
)
Expand All @@ -27,16 +28,20 @@ func TestAzureLogin(t *testing.T) {
client := infisical.NewInfisicalClient(context.Background(), infisical.Config{})
for {

fmt.Printf("Azure Auth logging in\n")
_, err := client.Auth().AzureAuthLogin(AZURE_AUTH_IDENTITY_ID, "")
if err != nil {
fmt.Printf("Azure Auth Error: %v\n", err)
}

fmt.Printf("Azure Auth listing secrets\n")
err = CallListSecretsAzure(client)

if err != nil {
fmt.Printf("List Secrets Error: %v\n", err)
}

time.Sleep(5 * time.Second)
}

}

0 comments on commit 05a839d

Please sign in to comment.