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
All checks were successful
Caddy Manager CI build / docker (push) Successful in 45s
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user