Fix build and code structure improvements. New but essential UI functionality. CI improvements. Documentation improvements. AI module improvements.
This commit is contained in:
@@ -69,7 +69,7 @@ public sealed class SlackConnectorErrorTests
|
||||
result.Success.Should().BeFalse();
|
||||
result.ShouldRetry.Should().BeTrue();
|
||||
result.ErrorCode.Should().Be("RATE_LIMITED");
|
||||
result.RetryAfterMs.Should().BeGreaterOrEqualTo(30000, "should respect Retry-After header");
|
||||
result.RetryAfterMs.Should().BeGreaterThanOrEqualTo(30000, "should respect Retry-After header");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -567,12 +567,12 @@ internal sealed class SlackConnector
|
||||
|
||||
// Validate
|
||||
var validationError = Validate(notification);
|
||||
if (validationError != null)
|
||||
if (validationError is { } error)
|
||||
{
|
||||
result.Success = false;
|
||||
result.ShouldRetry = false;
|
||||
result.ErrorCode = validationError.Code;
|
||||
result.ErrorMessage = validationError.Message;
|
||||
result.ErrorCode = error.Code;
|
||||
result.ErrorMessage = error.Message;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json;
|
||||
using System.Threading;
|
||||
@@ -110,7 +110,6 @@ public sealed class SlackChannelTestProviderTests
|
||||
private static string ComputeSecretHash(string secretRef)
|
||||
{
|
||||
using var sha = System.Security.Cryptography.SHA256.Create();
|
||||
using StellaOps.TestKit;
|
||||
var bytes = System.Text.Encoding.UTF8.GetBytes(secretRef.Trim());
|
||||
var hash = sha.ComputeHash(bytes);
|
||||
return System.Convert.ToHexString(hash, 0, 8).ToLowerInvariant();
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<UseXunitV3>true</UseXunitV3>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<UseConcelierTestInfra>false</UseConcelierTestInfra>
|
||||
</PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup> <ItemGroup>
|
||||
<Using Include="Xunit" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../../__Libraries/StellaOps.Notify.Connectors.Slack/StellaOps.Notify.Connectors.Slack.csproj" />
|
||||
@@ -15,9 +18,8 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0" />
|
||||
<PackageReference Include="xunit" Version="2.9.2" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
|
||||
<PackageReference Include="coverlet.collector" Version="6.0.4" />
|
||||
<PackageReference Include="FluentAssertions" />
|
||||
<PackageReference Include="NSubstitute" />
|
||||
<PackageReference Include="xunit.v3" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user