Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: allow empty MySQL password #91

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build_and_it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
--health-interval=10s
--health-timeout=5s
--health-retries=3
-e MYSQL_ROOT_PASSWORD=123456
-e MYSQL_ALLOW_EMPTY_PASSWORD=1
--entrypoint sh mysql:8.0 -c "exec docker-entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password"
strategy:
matrix:
Expand All @@ -43,8 +43,8 @@ jobs:
dotnet --list-runtimes
- name: Create database
run: |
mysql -h127.0.0.1 -uroot -p123456 < /home/runner/work/client-csharp/client-csharp/sqls/barrier.mysql.sql
mysql -h127.0.0.1 -uroot -p123456 < /home/runner/work/client-csharp/client-csharp/sqls/busi.mysql.sql
mysql -h127.0.0.1 -uroot < /home/runner/work/client-csharp/client-csharp/sqls/barrier.mysql.sql
mysql -h127.0.0.1 -uroot < /home/runner/work/client-csharp/client-csharp/sqls/busi.mysql.sql
- name: Setup DTM server
run: |
wget https://github.com/dtm-labs/dtm/releases/download/v1.18.0/dtm_1.18.0_linux_amd64.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion samples/DtmOnDaprSample/appsettings.docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"AppSettings": {
"DtmUrl": "http://dtm:36789",
"BusiUrl": "http://sample:9090/api",
"BarrierConn": "Server=db;port=3306;User ID=root;Password=123456;Database=dtm_barrier",
"BarrierConn": "Server=db;port=3306;User ID=root;Password=;Database=dtm_barrier",
"MongoBarrierConn": "mongodb://mgdb:27017"
}
}
2 changes: 1 addition & 1 deletion samples/DtmSample/appsettings.docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"DtmUrl": "http://dtm:36789",
"DtmGrpcUrl": "http://dtm:36790",
"BusiUrl": "http://sample:9090/api",
"BarrierConn": "Server=db;port=3306;User ID=root;Password=123456;Database=dtm_barrier",
"BarrierConn": "Server=db;port=3306;User ID=root;Password=;Database=dtm_barrier",
"MongoBarrierConn": "mongodb://mgdb:27017"
}
}
2 changes: 1 addition & 1 deletion tests/BusiGrpcService/Services/BusiApiService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ await barrier.Call(conn, async (tx) =>
return new Empty();
}

private MySqlConnection GetBarrierConn() => new("Server=localhost;port=3306;User ID=root;Password=123456;Database=dtm_barrier");
private MySqlConnection GetBarrierConn() => new("Server=localhost;port=3306;User ID=root;Password=;Database=dtm_barrier");

private async Task<StackExchange.Redis.IDatabase> GetRedis()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Dtmgrpc.IntegrationTests/MsgGrpcTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@

private static readonly int TransOutUID = 1;

private static readonly int TransInUID = 2;

Check warning on line 112 in tests/Dtmgrpc.IntegrationTests/MsgGrpcTest.cs

View workflow job for this annotation

GitHub Actions / build on windows-latest

The field 'MsgGrpcTest.TransInUID' is assigned but its value is never used

Check warning on line 112 in tests/Dtmgrpc.IntegrationTests/MsgGrpcTest.cs

View workflow job for this annotation

GitHub Actions / build on windows-latest

The field 'MsgGrpcTest.TransInUID' is assigned but its value is never used

Check warning on line 112 in tests/Dtmgrpc.IntegrationTests/MsgGrpcTest.cs

View workflow job for this annotation

GitHub Actions / build on ubuntu-latest

The field 'MsgGrpcTest.TransInUID' is assigned but its value is never used

Check warning on line 112 in tests/Dtmgrpc.IntegrationTests/MsgGrpcTest.cs

View workflow job for this annotation

GitHub Actions / build on ubuntu-latest

The field 'MsgGrpcTest.TransInUID' is assigned but its value is never used

private MySqlConnection getBarrierMySqlConnection() => new("Server=localhost;port=3306;User ID=root;Password=123456;Database=dtm_barrier");
private MySqlConnection getBarrierMySqlConnection() => new("Server=localhost;port=3306;User ID=root;Password=;Database=dtm_barrier");

private async Task LocalAdjustBalance(DbConnection conn, int uid, long amount, string result)
{
Expand Down
Loading