Skip to content

Commit

Permalink
chore(ci): bump dailydevops/pipelines from 0.12.11 to 0.12.12 (#403)
Browse files Browse the repository at this point in the history
* chore(ci): bump dailydevops/pipelines from 0.12.11 to 0.12.12

Bumps [dailydevops/pipelines](https://github.com/dailydevops/pipelines) from 0.12.11 to 0.12.12.
- [Release notes](https://github.com/dailydevops/pipelines/releases)
- [Commits](dailydevops/pipelines@0.12.11...0.12.12)

---
updated-dependencies:
- dependency-name: dailydevops/pipelines
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* style: updated formatting

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Martin Stühmer <[email protected]>
  • Loading branch information
dependabot[bot] and samtrion authored Aug 26, 2024
1 parent 02dd218 commit eb551f3
Show file tree
Hide file tree
Showing 51 changed files with 222 additions and 216 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
jobs:
all:
name: Build & Tests
uses: dailydevops/pipelines/.github/workflows/[email protected].11
uses: dailydevops/pipelines/.github/workflows/[email protected].12
with:
enableCleanUpDockerDocker: true
enableSonarQube: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private static Architecture LoadArchitecture()
typeof(SqlEdgeCheck).Assembly,
typeof(SQLiteCheck).Assembly,
typeof(SqlServerCheck).Assembly,
typeof(SqlServerLegacyCheck).Assembly
typeof(SqlServerLegacyCheck).Assembly,
];
var architecture = new ArchLoader()
.LoadAssembliesRecursively(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public async Task InternalAsync_SomethingHappens_ReturnsUnhealthy()

var context = new HealthCheckContext
{
Registration = new HealthCheckRegistration("test", check, null, null)
Registration = new HealthCheckRegistration("test", check, null, null),
};

// Act
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ internal sealed class KafkaCheck : ConfigurableHealthCheckBase<KafkaOptions>
private static readonly Message<string, string> _message = new Message<string, string>()
{
Key = "HealthCheck",
Value = "HealthCheck"
Value = "HealthCheck",
};

public KafkaCheck(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ await RunAndVerify(
{
var config = new ProducerConfig
{
BootstrapServers = _database.BootstrapAddress
BootstrapServers = _database.BootstrapAddress,
};

return new ProducerBuilder<string, string>(config).Build();
Expand All @@ -82,7 +82,7 @@ await RunAndVerify(
},
{ "HealthChecks:Kafka:TestContainerHealthy:Timeout", "5000" },
{ "HealthChecks:Kafka:TestContainerHealthy:Topic", "TestContainerHealthy" },
{ "HealthChecks:Kafka:TestContainerHealthy:Mode", "Create" }
{ "HealthChecks:Kafka:TestContainerHealthy:Mode", "Create" },
};
_ = config.AddInMemoryCollection(values);
}
Expand All @@ -105,7 +105,7 @@ await RunAndVerify(
},
{ "HealthChecks:Kafka:TestContainerHealthy:Timeout", "5000" },
{ "HealthChecks:Kafka:TestContainerHealthy:Topic", "TestContainerHealthy" },
{ "HealthChecks:Kafka:TestContainerHealthy:Mode", "ServiceProvider" }
{ "HealthChecks:Kafka:TestContainerHealthy:Mode", "ServiceProvider" },
};
_ = config.AddInMemoryCollection(values);
},
Expand All @@ -115,7 +115,7 @@ await RunAndVerify(
{
var config = new ProducerConfig
{
BootstrapServers = _database.BootstrapAddress
BootstrapServers = _database.BootstrapAddress,
};

return new ProducerBuilder<string, string>(config).Build();
Expand All @@ -134,7 +134,7 @@ await RunAndVerify(healthChecks =>
options.Configuration = new()
{
BootstrapServers = _database.BootstrapAddress,
EnableDeliveryReports = false
EnableDeliveryReports = false,
};
options.Mode = ProducerHandleMode.Create;
options.Timeout = 5000;
Expand Down Expand Up @@ -164,7 +164,7 @@ await RunAndVerify(
},
{ "HealthChecks:Kafka:TestContainerHealthy:Timeout", "5000" },
{ "HealthChecks:Kafka:TestContainerHealthy:Topic", "TestContainerHealthy" },
{ "HealthChecks:Kafka:TestContainerHealthy:Mode", "Create" }
{ "HealthChecks:Kafka:TestContainerHealthy:Mode", "Create" },
};
_ = config.AddInMemoryCollection(values);
}
Expand Down Expand Up @@ -207,7 +207,7 @@ await RunAndVerify(
{
var config = new ProducerConfig
{
BootstrapServers = _database.BootstrapAddress
BootstrapServers = _database.BootstrapAddress,
};

return new ProducerBuilder<string, string>(config).Build();
Expand All @@ -232,7 +232,7 @@ await RunAndVerify(
},
{ "HealthChecks:Kafka:TestContainerDegraded:Timeout", "0" },
{ "HealthChecks:Kafka:TestContainerDegraded:Topic", "TestContainerDegraded" },
{ "HealthChecks:Kafka:TestContainerDegraded:Mode", "Create" }
{ "HealthChecks:Kafka:TestContainerDegraded:Mode", "Create" },
};
_ = config.AddInMemoryCollection(values);
}
Expand All @@ -255,7 +255,7 @@ await RunAndVerify(
},
{ "HealthChecks:Kafka:TestContainerDegraded:Timeout", "0" },
{ "HealthChecks:Kafka:TestContainerDegraded:Topic", "TestContainerDegraded" },
{ "HealthChecks:Kafka:TestContainerDegraded:Mode", "ServiceProvider" }
{ "HealthChecks:Kafka:TestContainerDegraded:Mode", "ServiceProvider" },
};
_ = config.AddInMemoryCollection(values);
},
Expand All @@ -265,7 +265,7 @@ await RunAndVerify(
{
var config = new ProducerConfig
{
BootstrapServers = _database.BootstrapAddress
BootstrapServers = _database.BootstrapAddress,
};

return new ProducerBuilder<string, string>(config).Build();
Expand All @@ -284,7 +284,7 @@ await RunAndVerify(healthChecks =>
options.Configuration = new()
{
BootstrapServers = _database.BootstrapAddress,
EnableDeliveryReports = false
EnableDeliveryReports = false,
};
options.Mode = ProducerHandleMode.Create;
options.Timeout = 0;
Expand Down Expand Up @@ -314,7 +314,7 @@ await RunAndVerify(
},
{ "HealthChecks:Kafka:TestContainerDegraded:Timeout", "0" },
{ "HealthChecks:Kafka:TestContainerDegraded:Topic", "TestContainerDegraded" },
{ "HealthChecks:Kafka:TestContainerDegraded:Mode", "Create" }
{ "HealthChecks:Kafka:TestContainerDegraded:Mode", "Create" },
};
_ = config.AddInMemoryCollection(values);
}
Expand All @@ -331,7 +331,7 @@ await RunAndVerify(healthChecks =>
options.Configuration = new()
{
BootstrapServers = _database.BootstrapAddress,
SocketTimeoutMs = 0
SocketTimeoutMs = 0,
};
options.Mode = ProducerHandleMode.Create;
options.Topic = "TestContainerUnhealty";
Expand Down Expand Up @@ -360,7 +360,7 @@ await RunAndVerify(
var config = new ProducerConfig
{
BootstrapServers = _database.BootstrapAddress,
SocketTimeoutMs = 0
SocketTimeoutMs = 0,
};

return new ProducerBuilder<string, string>(config).Build();
Expand Down Expand Up @@ -424,7 +424,7 @@ await RunAndVerify(healthChecks =>
options.Configuration = new()
{
BootstrapServers = _database.BootstrapAddress,
EnableDeliveryReports = false
EnableDeliveryReports = false,
};
options.Mode = ProducerHandleMode.Create;
options.Topic = "TestContainerUnhealty";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public async Task CheckHealthAsync_WhenCancellationTokenIsCancelled_ShouldReturn
var check = new KafkaCheck(serviceProvider, optionsMonitor);
var context = new HealthCheckContext
{
Registration = new HealthCheckRegistration("Test", check, null, null)
Registration = new HealthCheckRegistration("Test", check, null, null),
};
var cancellationToken = new CancellationToken(true);

Expand All @@ -59,7 +59,7 @@ public async Task CheckHealthAsync_WhenOptionsAreNull_ShouldReturnUnhealthy()
var check = new KafkaCheck(serviceProvider, optionsMonitor);
var context = new HealthCheckContext
{
Registration = new HealthCheckRegistration("Test", check, null, null)
Registration = new HealthCheckRegistration("Test", check, null, null),
};

// Act
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void Validate_WhenModeCreateAndBootstrapServerEmpty_ThrowArgumentExceptio
{
Topic = "Test",
Mode = ProducerHandleMode.Create,
Configuration = new ProducerConfig()
Configuration = new ProducerConfig(),
};

// Act
Expand All @@ -109,7 +109,7 @@ public void Validate_EverythingCorrect_Expected()
{
Topic = "Test",
Mode = ProducerHandleMode.Create,
Configuration = new ProducerConfig { BootstrapServers = "localhost:9092" }
Configuration = new ProducerConfig { BootstrapServers = "localhost:9092" },
};

// Act
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ public enum BlobClientCreationMode
/// <summary>
/// The <see cref="BlobServiceClient"/> is created using the <see cref="BlobContainerAvailableOptions.ServiceUri"/>.
/// </summary>
AzureSasCredential = 4
AzureSasCredential = 4,
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public ValidateOptionsResult Validate(string? name, BlobContainerAvailableOption
{
BlobClientCreationMode.ServiceProvider => ValidateModeServiceProvider(),
BlobClientCreationMode.ConnectionString => ValidateModeConnectionString(options),
BlobClientCreationMode.DefaultAzureCredentials
=> ValidateModeDefaultAzureCredentials(options),
BlobClientCreationMode.DefaultAzureCredentials => ValidateModeDefaultAzureCredentials(
options
),
BlobClientCreationMode.SharedKey => ValidateModeSharedKey(options),
BlobClientCreationMode.AzureSasCredential => ValidateModeAzureSasCredential(options),
_ => Fail($"The mode `{mode}` is not supported."),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ public ValidateOptionsResult Validate(string? name, BlobServiceAvailableOptions
{
BlobClientCreationMode.ServiceProvider => ValidateModeServiceProvider(),
BlobClientCreationMode.ConnectionString => ValidateModeConnectionString(options),
BlobClientCreationMode.DefaultAzureCredentials
=> ValidateModeDefaultAzureCredentials(options),
BlobClientCreationMode.DefaultAzureCredentials => ValidateModeDefaultAzureCredentials(
options
),
BlobClientCreationMode.SharedKey => ValidateModeSharedKey(options),
BlobClientCreationMode.AzureSasCredential => ValidateModeAzureSasCredential(options),
_ => Fail($"The mode `{mode}` is not supported."),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static TheoryData<
new BlobContainerAvailableOptions
{
Mode = (BlobClientCreationMode)13,
ContainerName = "test"
ContainerName = "test",
}
},
// Mode: ServiceProvider
Expand All @@ -94,7 +94,7 @@ public static TheoryData<
new BlobContainerAvailableOptions
{
Mode = BlobClientCreationMode.ServiceProvider,
ContainerName = "test"
ContainerName = "test",
}
},
// Mode: DefaultAzureCredentials
Expand All @@ -105,7 +105,7 @@ public static TheoryData<
new BlobContainerAvailableOptions
{
Mode = BlobClientCreationMode.DefaultAzureCredentials,
ContainerName = "test"
ContainerName = "test",
}
},
{
Expand All @@ -116,7 +116,7 @@ public static TheoryData<
{
ContainerName = "test",
Mode = BlobClientCreationMode.DefaultAzureCredentials,
ServiceUri = new Uri("/relative", UriKind.Relative)
ServiceUri = new Uri("/relative", UriKind.Relative),
}
},
{
Expand All @@ -127,7 +127,7 @@ public static TheoryData<
{
ContainerName = "test",
Mode = BlobClientCreationMode.DefaultAzureCredentials,
ServiceUri = new Uri("https://example.com", UriKind.Absolute)
ServiceUri = new Uri("https://example.com", UriKind.Absolute),
}
},
// Mode: ConnectionString
Expand All @@ -138,7 +138,7 @@ public static TheoryData<
new BlobContainerAvailableOptions
{
ContainerName = "test",
Mode = BlobClientCreationMode.ConnectionString
Mode = BlobClientCreationMode.ConnectionString,
}
},
{
Expand All @@ -149,7 +149,7 @@ public static TheoryData<
{
ContainerName = "test",
Mode = BlobClientCreationMode.ConnectionString,
ConnectionString = "connectionString"
ConnectionString = "connectionString",
}
},
// Mode: SharedKey
Expand All @@ -160,7 +160,7 @@ public static TheoryData<
new BlobContainerAvailableOptions
{
ContainerName = "test",
Mode = BlobClientCreationMode.SharedKey
Mode = BlobClientCreationMode.SharedKey,
}
},
{
Expand All @@ -171,7 +171,7 @@ public static TheoryData<
{
ContainerName = "test",
Mode = BlobClientCreationMode.SharedKey,
ServiceUri = new Uri("/relative", UriKind.Relative)
ServiceUri = new Uri("/relative", UriKind.Relative),
}
},
{
Expand All @@ -183,7 +183,7 @@ public static TheoryData<
ContainerName = "test",
Mode = BlobClientCreationMode.SharedKey,
ServiceUri = new Uri("https://example.com", UriKind.Absolute),
AccountName = null
AccountName = null,
}
},
{
Expand All @@ -196,7 +196,7 @@ public static TheoryData<
Mode = BlobClientCreationMode.SharedKey,
ServiceUri = new Uri("https://example.com", UriKind.Absolute),
AccountName = "test",
AccountKey = null
AccountKey = null,
}
},
{
Expand All @@ -209,7 +209,7 @@ public static TheoryData<
Mode = BlobClientCreationMode.SharedKey,
ServiceUri = new Uri("https://example.com", UriKind.Absolute),
AccountName = "test",
AccountKey = "test"
AccountKey = "test",
}
},
// Mode: AzureSasCredential
Expand All @@ -220,7 +220,7 @@ public static TheoryData<
new BlobContainerAvailableOptions
{
ContainerName = "test",
Mode = BlobClientCreationMode.AzureSasCredential
Mode = BlobClientCreationMode.AzureSasCredential,
}
},
{
Expand All @@ -231,7 +231,7 @@ public static TheoryData<
{
ContainerName = "test",
Mode = BlobClientCreationMode.AzureSasCredential,
ServiceUri = new Uri("/relative", UriKind.Relative)
ServiceUri = new Uri("/relative", UriKind.Relative),
}
},
{
Expand All @@ -242,7 +242,7 @@ public static TheoryData<
{
ContainerName = "test",
Mode = BlobClientCreationMode.AzureSasCredential,
ServiceUri = new Uri("https://absolute", UriKind.Absolute)
ServiceUri = new Uri("https://absolute", UriKind.Absolute),
}
},
{
Expand All @@ -253,9 +253,9 @@ public static TheoryData<
{
ContainerName = "test",
Mode = BlobClientCreationMode.AzureSasCredential,
ServiceUri = new Uri("https://absolute?query=test", UriKind.Absolute)
ServiceUri = new Uri("https://absolute?query=test", UriKind.Absolute),
}
}
},
};

return data;
Expand Down
Loading

0 comments on commit eb551f3

Please sign in to comment.