Skip to content

Commit

Permalink
Use SQL server authentication for existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wrosenuance committed Sep 2, 2020
1 parent 8aa4347 commit 029641a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/how-to-test-azure-ad-authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ azureuser@azure-vm:go-mssqldb$ jq -r -f examples/azuread/ad-user-assigned-id-dsn
Now that your environment is configured, you can run `go test`:

```console
azureuser@azure-vm:go-mssqldb$ export SQLSERVER_DSN="$(jq -r -f examples/azuread/ad-system-assigned-id-dsn.jq ../settings.json)"
azureuser@azure-vm:go-mssqldb$ export SQLSERVER_DSN="$(jq -r -f examples/azuread/sql-user-password-dsn.jq ../settings.json)"
azureuser@azure-vm:go-mssqldb$ go test -coverprofile=coverage.out ./...
```

Expand Down
1 change: 1 addition & 0 deletions examples/azuread/sql-user-password-dsn.jq
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@uri "sqlserver://\(.sql_admin_user.value):\(.sql_admin_password.value)@\(.sql_server_fqdn.value)?database=\(.sql_database_name.value)&encrypt=true"

0 comments on commit 029641a

Please sign in to comment.