21 references to ProbeTags
Microsoft.Extensions.Diagnostics.Probes (9)
Microsoft.Extensions.Diagnostics.Probes.Tests (12)
KubernetesProbesExtensionsTests.cs (12)
44var livenessRegistration = new HealthCheckRegistration("liveness", Mock.Of<IHealthCheck>(), null, new[] { ProbeTags.Liveness });
45var startupRegistration = new HealthCheckRegistration("startup", Mock.Of<IHealthCheck>(), null, new[] { ProbeTags.Startup });
46var readinessRegistration = new HealthCheckRegistration("readiness", Mock.Of<IHealthCheck>(), null, new[] { ProbeTags.Readiness });
48var livenessConfig = config.Get(ProbeTags.Liveness);
54var startupConfig = config.Get(ProbeTags.Startup);
60var readinessConfig = config.Get(ProbeTags.Readiness);
86Assert.Equal(1, config.Get(ProbeTags.Liveness).TcpPort);
87Assert.Equal(2, config.Get(ProbeTags.Startup).TcpPort);
88Assert.Equal(3, config.Get(ProbeTags.Readiness).TcpPort);
114Assert.Equal(1, config.Get(ProbeTags.Liveness).TcpPort);
115Assert.Equal(2, config.Get(ProbeTags.Startup).TcpPort);
116Assert.Equal(3, config.Get(ProbeTags.Readiness).TcpPort);