1- // Copyright (c) .NET Foundation. All rights reserved.
1+ // Copyright (c) .NET Foundation. All rights reserved.
22// Licensed under the MIT License. See License.txt in the project root for license information.
33
44using System ;
@@ -33,15 +33,17 @@ public class TelemetryHealthCheckPublisherTests
3333 CreateOptions ( true , null ) ,
3434 [ HealthStatus . Degraded ] ,
3535 1 ,
36- "Process reporting unhealthy: Degraded. Health check entries are id0: {status: Degraded, description: desc0}" ,
36+ @"Process reporting unhealthy: Degraded. Health check entries are " +
37+ @"{""id0"":{""status"":""Degraded"",""description"":""desc0""}}" ,
3738 LogLevel . Warning ,
3839 0.5
3940 } ,
4041 {
4142 CreateOptions ( false , null ) ,
4243 [ HealthStatus . Unhealthy ] ,
4344 1 ,
44- "Process reporting unhealthy: Unhealthy. Health check entries are id0: {status: Unhealthy, description: desc0}" ,
45+ "Process reporting unhealthy: Unhealthy. Health check entries are "
46+ + @"{""id0"":{""status"":""Unhealthy"",""description"":""desc0""}}" ,
4547 LogLevel . Warning ,
4648 0
4749 } ,
@@ -57,15 +59,17 @@ public class TelemetryHealthCheckPublisherTests
5759 CreateOptions ( true , null ) ,
5860 [ HealthStatus . Healthy , HealthStatus . Unhealthy ] ,
5961 1 ,
60- "Process reporting unhealthy: Unhealthy. Health check entries are id0: {status: Healthy, description: desc0}, id1: {status: Unhealthy, description: desc1}" ,
62+ "Process reporting unhealthy: Unhealthy. Health check entries are "
63+ + @"{""id0"":{""status"":""Healthy"",""description"":""desc0""},""id1"":{""status"":""Unhealthy"",""description"":""desc1""}}" ,
6164 LogLevel . Warning ,
6265 0
6366 } ,
6467 {
6568 CreateOptions ( true , null ) ,
6669 [ HealthStatus . Healthy , ( HealthStatus . Unhealthy , "some.tag" ) ] ,
6770 1 ,
68- "Process reporting unhealthy: Unhealthy. Health check entries are id0: {status: Healthy, description: desc0}, id1: {status: Unhealthy, description: desc1}" ,
71+ "Process reporting unhealthy: Unhealthy. Health check entries are " +
72+ @"{""id0"":{""status"":""Healthy"",""description"":""desc0""},""id1"":{""status"":""Unhealthy"",""description"":""desc1""}}" ,
6973 LogLevel . Warning ,
7074 0
7175 } ,
@@ -74,7 +78,7 @@ public class TelemetryHealthCheckPublisherTests
7478 [ HealthStatus . Healthy , ( HealthStatus . Degraded , "some.tag" ) , HealthStatus . Unhealthy ] ,
7579 1 ,
7680 "Process reporting unhealthy: Unhealthy. Health check entries are " +
77- " id0: { status: Healthy, description: desc0}, id1: { status: Degraded, description: desc1}, id2: { status: Unhealthy, description: desc2}",
81+ @"{"" id0"":{"" status"":"" Healthy"","" description"":"" desc0""},"" id1"":{"" status"":"" Degraded"","" description"":"" desc1""},"" id2"":{"" status"":"" Unhealthy"","" description"":"" desc2""} }",
7882 LogLevel . Warning ,
7983 0
8084 } ,
@@ -91,7 +95,7 @@ public class TelemetryHealthCheckPublisherTests
9195 [ HealthStatus . Healthy , ( HealthStatus . Degraded , "some.tag" ) , HealthStatus . Unhealthy ] ,
9296 1 ,
9397 "Process reporting unhealthy: Degraded. Health check entries are " +
94- " id1: { status: Degraded, description: desc1}",
98+ @"{"" id1"":{"" status"":"" Degraded"","" description"":"" desc1""} }",
9599 LogLevel . Warning ,
96100 0.5
97101 } ,
@@ -100,7 +104,7 @@ public class TelemetryHealthCheckPublisherTests
100104 [ ( HealthStatus . Healthy , "some.tag" ) , ( HealthStatus . Degraded , "some.tag" ) , ( HealthStatus . Unhealthy , "some.other.tag" ) , ( HealthStatus . Unhealthy , "some.tag" ) ] ,
101105 1 ,
102106 "Process reporting unhealthy: Unhealthy. Health check entries are " +
103- " id0: { status: Healthy, description: desc0}, id1: { status: Degraded, description: desc1}, id3: { status: Unhealthy, description: desc3}",
107+ @"{"" id0"":{"" status"":"" Healthy"","" description"":"" desc0""},"" id1"":{"" status"":"" Degraded"","" description"":"" desc1""},"" id3"":{"" status"":"" Unhealthy"","" description"":"" desc3""} }",
104108 LogLevel . Warning ,
105109 0
106110 }
0 commit comments