diff --git a/.github/workflows/healthchecks_surrealdb_ci.yml b/.github/workflows/healthchecks_surrealdb_ci.yml index 9aa6965c42..b8b6cbe60b 100644 --- a/.github/workflows/healthchecks_surrealdb_ci.yml +++ b/.github/workflows/healthchecks_surrealdb_ci.yml @@ -31,12 +31,14 @@ jobs: steps: - uses: actions/checkout@v3 - name: Start SurrealDB - uses: jvllmr/surrealdb-action@2.0.0 + uses: surrealdb/setup-surreal@v2 with: - surrealdb-version: latest - surrealdb-port: 8000 - surrealdb-user: root - surrealdb-password: root + surrealdb_version: latest + surrealdb_port: 8000 + surrealdb_username: root + surrealdb_password: root + surrealdb_auth: false + surrealdb_strict: false - name: Setup .NET uses: actions/setup-dotnet@v3 with: diff --git a/test/HealthChecks.SurrealDb.Tests/Functional/SurrealDbHealthCheckTests.cs b/test/HealthChecks.SurrealDb.Tests/Functional/SurrealDbHealthCheckTests.cs index 37087d6705..f20276497d 100644 --- a/test/HealthChecks.SurrealDb.Tests/Functional/SurrealDbHealthCheckTests.cs +++ b/test/HealthChecks.SurrealDb.Tests/Functional/SurrealDbHealthCheckTests.cs @@ -7,13 +7,13 @@ public class surrealdb_healthcheck_should [Fact] public async Task be_healthy_if_surrealdb_is_available() { - var connectionString = "Server=http://localhost:8000;Namespace=test;Database=test;Username=root;Password=root"; + const string connectionString = "Server=http://localhost:8000;Namespace=test;Database=test;Username=root;Password=root"; var webHostBuilder = new WebHostBuilder() .ConfigureServices(services => { services.AddHealthChecks() - .AddSurreal(connectionString, tags: new string[] { "surrealdb" }); + .AddSurreal(connectionString, tags: ["surrealdb"]); }) .Configure(app => { @@ -33,13 +33,13 @@ public async Task be_healthy_if_surrealdb_is_available() [Fact] public async Task be_unhealthy_if_surrealdb_is_not_available() { - var connectionString = "Server=http://localhost:1234;Namespace=test;Database=test;Username=root;Password=root"; + const string connectionString = "Server=http://localhost:1234;Namespace=test;Database=test;Username=root;Password=root"; var webHostBuilder = new WebHostBuilder() .ConfigureServices(services => { services.AddHealthChecks() - .AddSurreal(connectionString, tags: new string[] { "surrealdb" }); + .AddSurreal(connectionString, tags: ["surrealdb"]); }) .Configure(app => { @@ -59,13 +59,13 @@ public async Task be_unhealthy_if_surrealdb_is_not_available() [Fact] public async Task be_unhealthy_if_surql_query_throw_error() { - var connectionString = "Server=http://localhost:8000;Namespace=test;Database=test;Username=root;Password=root"; + const string connectionString = "Server=http://localhost:8000;Namespace=test;Database=test;Username=root;Password=root"; var webHostBuilder = new WebHostBuilder() .ConfigureServices(services => { services.AddHealthChecks() - .AddSurreal(connectionString, healthQuery: "THROW \"Error\";", tags: new string[] { "surrealdb" }); + .AddSurreal(connectionString, healthQuery: "THROW \"Error\";", tags: ["surrealdb"]); }) .Configure(app => {