1
- // Copyright (c) .NET Foundation. All rights reserved.
1
+ // Copyright (c) .NET Foundation. All rights reserved.
2
2
// Licensed under the MIT License. See License.txt in the project root for license information.
3
3
4
4
using System ;
@@ -33,15 +33,17 @@ public class TelemetryHealthCheckPublisherTests
33
33
CreateOptions ( true , null ) ,
34
34
[ HealthStatus . Degraded ] ,
35
35
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""}}" ,
37
38
LogLevel . Warning ,
38
39
0.5
39
40
} ,
40
41
{
41
42
CreateOptions ( false , null ) ,
42
43
[ HealthStatus . Unhealthy ] ,
43
44
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""}}" ,
45
47
LogLevel . Warning ,
46
48
0
47
49
} ,
@@ -57,15 +59,17 @@ public class TelemetryHealthCheckPublisherTests
57
59
CreateOptions ( true , null ) ,
58
60
[ HealthStatus . Healthy , HealthStatus . Unhealthy ] ,
59
61
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""}}" ,
61
64
LogLevel . Warning ,
62
65
0
63
66
} ,
64
67
{
65
68
CreateOptions ( true , null ) ,
66
69
[ HealthStatus . Healthy , ( HealthStatus . Unhealthy , "some.tag" ) ] ,
67
70
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""}}" ,
69
73
LogLevel . Warning ,
70
74
0
71
75
} ,
@@ -74,7 +78,7 @@ public class TelemetryHealthCheckPublisherTests
74
78
[ HealthStatus . Healthy , ( HealthStatus . Degraded , "some.tag" ) , HealthStatus . Unhealthy ] ,
75
79
1 ,
76
80
"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""} }",
78
82
LogLevel . Warning ,
79
83
0
80
84
} ,
@@ -91,7 +95,7 @@ public class TelemetryHealthCheckPublisherTests
91
95
[ HealthStatus . Healthy , ( HealthStatus . Degraded , "some.tag" ) , HealthStatus . Unhealthy ] ,
92
96
1 ,
93
97
"Process reporting unhealthy: Degraded. Health check entries are " +
94
- " id1: { status: Degraded, description: desc1}",
98
+ @"{"" id1"":{"" status"":"" Degraded"","" description"":"" desc1""} }",
95
99
LogLevel . Warning ,
96
100
0.5
97
101
} ,
@@ -100,7 +104,7 @@ public class TelemetryHealthCheckPublisherTests
100
104
[ ( HealthStatus . Healthy , "some.tag" ) , ( HealthStatus . Degraded , "some.tag" ) , ( HealthStatus . Unhealthy , "some.other.tag" ) , ( HealthStatus . Unhealthy , "some.tag" ) ] ,
101
105
1 ,
102
106
"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""} }",
104
108
LogLevel . Warning ,
105
109
0
106
110
}
0 commit comments