whc4: quiet PHP WAF health probes
This commit is contained in:
@@ -1037,6 +1037,20 @@ public sealed class FleetManifestLintTests
|
||||
podSpec.GetProperty("enableServiceLinks").GetBoolean().Should().BeFalse();
|
||||
podSpec.GetProperty("securityContext").GetProperty("runAsUser").GetInt32().Should().Be(101);
|
||||
podSpec.GetProperty("securityContext").GetProperty("runAsNonRoot").GetBoolean().Should().BeTrue();
|
||||
wafContainer.GetProperty("livenessProbe")
|
||||
.GetProperty("httpGet")
|
||||
.GetProperty("httpHeaders")[0]
|
||||
.GetProperty("value")
|
||||
.GetString()
|
||||
.Should()
|
||||
.Be("php.iamworkin.lan");
|
||||
wafContainer.GetProperty("readinessProbe")
|
||||
.GetProperty("httpGet")
|
||||
.GetProperty("httpHeaders")[0]
|
||||
.GetProperty("value")
|
||||
.GetString()
|
||||
.Should()
|
||||
.Be("php.iamworkin.lan");
|
||||
|
||||
using var service = JsonDocument.Parse(File.ReadAllText(Path.Combine(appRoot, "service-php-waf.json")));
|
||||
service.RootElement.GetProperty("spec").GetProperty("selector").GetProperty("app.kubernetes.io/name").GetString().Should().Be("php-waf");
|
||||
|
||||
Reference in New Issue
Block a user