Skip to content

Commit baae564

Browse files
committed
severity
1 parent f8af18c commit baae564

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

site/src/testHelpers/entities.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2379,13 +2379,16 @@ export const MockLicenseResponse: GetLicensesResponse[] = [
23792379
export const MockHealth: TypesGen.HealthcheckReport = {
23802380
time: "2023-08-01T16:51:03.29792825Z",
23812381
healthy: true,
2382+
severity: "ok",
23822383
failing_sections: [],
23832384
derp: {
23842385
healthy: true,
2386+
severity: "ok",
23852387
warnings: [],
23862388
regions: {
23872389
"999": {
23882390
healthy: true,
2391+
severity: "ok",
23892392
warnings: [],
23902393
region: {
23912394
EmbeddedRelay: true,
@@ -2412,6 +2415,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
24122415
node_reports: [
24132416
{
24142417
healthy: true,
2418+
severity: "ok",
24152419
warnings: [],
24162420
node: {
24172421
Name: "999stun0",
@@ -2437,6 +2441,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
24372441
},
24382442
{
24392443
healthy: true,
2444+
severity: "ok",
24402445
warnings: [],
24412446
node: {
24422447
Name: "999b",
@@ -2471,6 +2476,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
24712476
},
24722477
"10007": {
24732478
healthy: true,
2479+
severity: "ok",
24742480
warnings: [],
24752481
region: {
24762482
EmbeddedRelay: false,
@@ -2497,6 +2503,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
24972503
node_reports: [
24982504
{
24992505
healthy: true,
2506+
severity: "ok",
25002507
warnings: [],
25012508
node: {
25022509
Name: "10007stun0",
@@ -2522,6 +2529,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
25222529
},
25232530
{
25242531
healthy: true,
2532+
severity: "ok",
25252533
warnings: [],
25262534
node: {
25272535
Name: "10007a",
@@ -2556,6 +2564,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
25562564
},
25572565
"10008": {
25582566
healthy: true,
2567+
severity: "ok",
25592568
warnings: [],
25602569
region: {
25612570
EmbeddedRelay: false,
@@ -2582,6 +2591,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
25822591
node_reports: [
25832592
{
25842593
healthy: true,
2594+
severity: "ok",
25852595
warnings: [],
25862596
node: {
25872597
Name: "10008stun0",
@@ -2607,6 +2617,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
26072617
},
26082618
{
26092619
healthy: true,
2620+
severity: "ok",
26102621
warnings: [],
26112622
node: {
26122623
Name: "10008a",
@@ -2641,6 +2652,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
26412652
},
26422653
"10009": {
26432654
healthy: true,
2655+
severity: "ok",
26442656
warnings: [],
26452657
region: {
26462658
EmbeddedRelay: false,
@@ -2667,6 +2679,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
26672679
node_reports: [
26682680
{
26692681
healthy: true,
2682+
severity: "ok",
26702683
warnings: [],
26712684
node: {
26722685
Name: "10009stun0",
@@ -2692,6 +2705,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
26922705
},
26932706
{
26942707
healthy: true,
2708+
severity: "ok",
26952709
warnings: [],
26962710
node: {
26972711
Name: "10009a",
@@ -2771,6 +2785,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
27712785
},
27722786
access_url: {
27732787
healthy: true,
2788+
severity: "ok",
27742789
warnings: [],
27752790
access_url: "https://dev.coder.com",
27762791
reachable: true,
@@ -2779,12 +2794,14 @@ export const MockHealth: TypesGen.HealthcheckReport = {
27792794
},
27802795
websocket: {
27812796
healthy: true,
2797+
severity: "ok",
27822798
warnings: [],
27832799
body: "",
27842800
code: 101,
27852801
},
27862802
database: {
27872803
healthy: true,
2804+
severity: "ok",
27882805
warnings: [],
27892806
reachable: true,
27902807
latency: "92570",
@@ -2805,11 +2822,13 @@ export const MockListeningPortsResponse: TypesGen.WorkspaceAgentListeningPortsRe
28052822

28062823
export const DeploymentHealthUnhealthy: TypesGen.HealthcheckReport = {
28072824
healthy: false,
2825+
severity: "ok",
28082826
failing_sections: [], // apparently this property is not used at all?
28092827
time: "2023-10-12T23:15:00.000000000Z",
28102828
coder_version: "v2.3.0-devel+8cca4915a",
28112829
access_url: {
28122830
healthy: true,
2831+
severity: "ok",
28132832
warnings: [],
28142833
access_url: "",
28152834
healthz_response: "",
@@ -2818,6 +2837,7 @@ export const DeploymentHealthUnhealthy: TypesGen.HealthcheckReport = {
28182837
},
28192838
database: {
28202839
healthy: false,
2840+
severity: "ok",
28212841
warnings: [],
28222842
latency: "",
28232843
latency_ms: 0,
@@ -2826,12 +2846,14 @@ export const DeploymentHealthUnhealthy: TypesGen.HealthcheckReport = {
28262846
},
28272847
derp: {
28282848
healthy: false,
2849+
severity: "ok",
28292850
warnings: [],
28302851
regions: [],
28312852
netcheck_logs: [],
28322853
},
28332854
websocket: {
28342855
healthy: false,
2856+
severity: "ok",
28352857
warnings: [],
28362858
body: "",
28372859
code: 0,

0 commit comments

Comments
 (0)