Skip to content

Commit 072de29

Browse files
authored
Merge pull request #83 from dotnetprojects/oracle
try oracle tests again
2 parents 5c00911 + ba5fdfd commit 072de29

File tree

3 files changed

+30
-54
lines changed

3 files changed

+30
-54
lines changed

.github/workflows/dotnet.yml

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,19 @@ jobs:
3939
--health-timeout=5s
4040
--health-retries=5
4141
42-
# oracle:
43-
# image: gvenzl/oracle-xe:21.3.0-slim
44-
# ports:
45-
# - 1521:1521
46-
# env:
47-
# ORACLE_PASSWORD: testpass
48-
# options: >-
49-
# --health-cmd "echo 'exit' | sqlplus -L system/oracle@localhost/XEPDB1"
50-
# --health-interval=25s
51-
# --health-timeout=20s
52-
# --health-retries=20
42+
oracle:
43+
image: gvenzl/oracle-free:latest
44+
ports:
45+
- 1521:1521
46+
env:
47+
ORACLE_RANDOM_PASSWORD: true
48+
APP_USER: test
49+
APP_USER_PASSWORD: test
50+
options: >-
51+
--health-cmd healthcheck.sh
52+
--health-interval 10s
53+
--health-timeout 5s
54+
--health-retries 10
5355
5456
mysql:
5557
image: mysql:8.0
@@ -81,20 +83,6 @@ jobs:
8183
sudo ACCEPT_EULA=Y apt-get install -y mssql-tools unixodbc-dev
8284
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
8385
source ~/.bashrc
84-
# - name: Download and install Oracle SQLcl
85-
# run: |
86-
# curl -L -o sqlcl.zip https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-latest.zip
87-
# unzip sqlcl.zip -d sqlcl
88-
# echo "$PWD/sqlcl/sqlcl/bin" >> $GITHUB_PATH
89-
# - name: Run SQL script with Oracle SQLcl
90-
# run: |
91-
# echo "create user test identified by test;" > setup.sql
92-
# echo "grant connect, resource to test;" >> setup.sql
93-
# sql /nolog <<EOF
94-
# connect system/testpass@//localhost:1521/XEPDB1
95-
# @setup.sql
96-
# exit
97-
# EOF
9886
- name: Create SQLServer database
9987
run: |
10088
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q "CREATE DATABASE [Whatever];"

.github/workflows/dotnetpull.yml

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,19 @@ jobs:
3737
--health-timeout=5s
3838
--health-retries=5
3939
40-
# oracle:
41-
# image: gvenzl/oracle-xe:21.3.0-slim
42-
# ports:
43-
# - 1521:1521
44-
# env:
45-
# ORACLE_PASSWORD: testpass
46-
# options: >-
47-
# --health-cmd "echo 'exit' | sqlplus -L system/oracle@localhost/XEPDB1"
48-
# --health-interval=25s
49-
# --health-timeout=20s
50-
# --health-retries=20
40+
oracle:
41+
image: gvenzl/oracle-free:latest
42+
ports:
43+
- 1521:1521
44+
env:
45+
ORACLE_RANDOM_PASSWORD: true
46+
APP_USER: test
47+
APP_USER_PASSWORD: test
48+
options: >-
49+
--health-cmd healthcheck.sh
50+
--health-interval 10s
51+
--health-timeout 5s
52+
--health-retries 10
5153
5254
mysql:
5355
image: mysql:8.0
@@ -79,20 +81,6 @@ jobs:
7981
sudo ACCEPT_EULA=Y apt-get install -y mssql-tools unixodbc-dev
8082
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
8183
source ~/.bashrc
82-
# - name: Download and install Oracle SQLcl
83-
# run: |
84-
# curl -L -o sqlcl.zip https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-latest.zip
85-
# unzip sqlcl.zip -d sqlcl
86-
# echo "$PWD/sqlcl/sqlcl/bin" >> $GITHUB_PATH
87-
# - name: Run SQL script with Oracle SQLcl
88-
# run: |
89-
# echo "create user test identified by test;" > setup.sql
90-
# echo "grant connect, resource to test;" >> setup.sql
91-
# sql /nolog <<EOF
92-
# connect system/testpass@//localhost:1521/XEPDB1
93-
# @setup.sql
94-
# exit
95-
# EOF
9684
- name: Create SQLServer database
9785
run: |
9886
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q "CREATE DATABASE [Whatever];"

src/Migrator.Tests/appsettings.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"Id": "PostgreSQL",
1313
"ConnectionString": "Server=localhost;Port=5432;Database=testdb;User Id=testuser;Password=testpass;"
1414
},
15-
//{
16-
// "Id": "Oracle",
17-
// "ConnectionString": "Data Source=//localhost:1521/XEPDB1;User Id=test;Password=test;"
18-
//},
15+
{
16+
"Id": "Oracle",
17+
"ConnectionString": "Data Source=//localhost:1521/FREEPDB1;User Id=test;Password=test;"
18+
},
1919
{
2020
"Id": "MySQL",
2121
"ConnectionString": "Server=127.0.0.1;Port=3306;Database=testdb;User Id=testuser;Password=testpass;"

0 commit comments

Comments
 (0)