refactor: update Blazor testing guidelines and improve regex for hostname parsing in Caddy configuration
All checks were successful
Caddy Manager CI build / docker (push) Successful in 45s

This commit is contained in:
2025-07-23 15:33:18 +07:00
parent 063ed041b0
commit 0beb3800b5
3 changed files with 8 additions and 11 deletions

View File

@@ -74,11 +74,9 @@ public class CaddyConfigurationParsingServiceTests
// Assert
result.Should().NotBeNull();
result.Should().HaveCount(4); // Updated to reflect correct parsing of labels before blocks
result.Should().HaveCount(2); // Should only return outermost hostname declarations
result.Should().Contain("api.example.com");
result.Should().Contain("app.example.com");
result.Should().Contain("route /v1/*");
result.Should().Contain("route /v2/*");
}
/// <summary>
@@ -522,12 +520,9 @@ app.example.com {
// Assert
result.Should().NotBeNull();
result.Should().HaveCount(5);
result.Should().HaveCount(2); // Should only return outermost hostname declarations
result.Should().Contain("api.example.com");
result.Should().Contain("app.example.com");
result.Should().Contain("header");
result.Should().Contain("@cors");
result.Should().Contain("tls");
}
/// <summary>