File tree Expand file tree Collapse file tree 3 files changed +2
-18
lines changed
Database/DerivedDatabaseIntegrationTestServices Expand file tree Collapse file tree 3 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 55 branches : [master]
66 pull_request :
77 branches : [master]
8-
98jobs :
109 build :
1110 runs-on : ubuntu-latest
12-
1311 services :
1412 sqlserver :
1513 image : mcr.microsoft.com/mssql/server:2019-latest
@@ -23,23 +21,20 @@ jobs:
2321 --health-interval=10s
2422 --health-timeout=5s
2523 --health-retries=10
26-
2724 postgres :
2825 image : postgres:13
2926 ports :
3027 - 5432:5432
3128 env :
3229 POSTGRES_USER : testuser
3330 POSTGRES_PASSWORD : testpass
34- POSTGRES_DB : testdb
3531 # As of v16 we can use:
3632 # POSTGRES_INITDB_ARGS: "-c max_connections=300"
3733 options : >-
3834 --health-cmd="pg_isready -U testuser"
3935 --health-interval=10s
4036 --health-timeout=5s
4137 --health-retries=5
42-
4338 oracle :
4439 image : gvenzl/oracle-free:latest
4540 ports :
5146 --health-interval 10s
5247 --health-timeout 5s
5348 --health-retries 10
54-
5549 mysql :
5650 image : mysql:8.0
5751 ports :
6660 --health-interval=10s
6761 --health-timeout=5s
6862 --health-retries=10
69-
7063 steps :
7164 - uses : actions/checkout@v4
7265 - uses : gvenzl/setup-oracle-sqlcl@v1
8679 - name : Create SQLServer database
8780 run : |
8881 /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q "CREATE DATABASE [Whatever];"
89- - name :
90- Increase max connections (Postgre SQL).
91- # Postgre < 16 cannot adjust it using env vars => Workaround: we use psql to adjust the max connections
92- env :
93- PGPASSWORD : testpass
94- run : |
95- psql -h localhost -U testuser -d testdb -c "ALTER SYSTEM SET max_connections = 300;"
96- psql -h localhost -U testuser -d testdb -c "SELECT pg_reload_conf();"
9782 - name : Create Oracle user
9883 run : |
9984 sql sys/adfkweflajdfglkj@localhost/FREEPDB1 as sysdba <<EOF
Original file line number Diff line number Diff line change @@ -54,9 +54,8 @@ public override async Task<DatabaseInfo> CreateTestDatabaseAsync(DatabaseConnect
5454 await context . ExecuteAsync ( $ "CREATE DATABASE \" { newDatabaseName } \" ", cancellationToken ) ;
5555 }
5656
57- var connectionStringBuilder2 = new NpgsqlConnectionStringBuilder
57+ var connectionStringBuilder2 = new NpgsqlConnectionStringBuilder ( clonedDatabaseConnectionConfig . ConnectionString )
5858 {
59- ConnectionString = clonedDatabaseConnectionConfig . ConnectionString ,
6059 Database = newDatabaseName
6160 } ;
6261
Original file line number Diff line number Diff line change 1010 },
1111 {
1212 "Id" : " PostgreSQL" ,
13- "ConnectionString" : " Server=localhost;Port=5432;Database=testdb ;User Id=testuser;Password=testpass;Pooling=true;Minimum Pool Size=10 "
13+ "ConnectionString" : " Server=localhost;Port=5432;Database=postgres ;User Id=testuser;Password=testpass;Pooling=true;Minimum Pool Size=100 "
1414 },
1515 {
1616 "Id" : " Oracle" ,
You can’t perform that action at this time.
0 commit comments