• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..26-Aug-2021-

mssql-database-plugin/H26-Aug-2021-3022

README.mdH A D26-Aug-2021893 2518

mssql.goH A D26-Aug-202110 KiB398304

mssql_test.goH A D26-Aug-20219.7 KiB385331

README.md

1# Testing
2
3To run these tests, first start MSSQL in Docker. Please do make sure to view the EULA before
4accepting it as it includes limits on the number of users per company who can be using the
5image, and how it can be used in testing.
6
7```
8sudo docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=<YourStrong!Passw0rd>' \
9   -p 1433:1433 --name sql1 \
10   -d mcr.microsoft.com/mssql/server:2017-latest
11```
12
13Then use the following env variables for testing:
14
15```
16export VAULT_ACC=1
17export MSSQL_URL="sqlserver://SA:%3CYourStrong%21Passw0rd%3E@localhost:1433"
18```
19
20Note that the SA password passed into the Docker container differs from the one passed into the tests.
21It's the same password, but Go's libraries require it to be percent encoded.
22
23Running all the tests at once against one Docker container will likely fail because they interact with
24each other. Consider running one test at a time.
25