@@ -56,6 +56,14 @@ var _ = Describe("Process", func() {
56
56
"endpoint": "/health",
57
57
"invocation_timeout": 42
58
58
}
59
+ },
60
+ "readiness_health_check": {
61
+ "type": "http",
62
+ "data": {
63
+ "interval": 9,
64
+ "endpoint": "/foo",
65
+ "invocation_timeout": 2
66
+ }
59
67
}
60
68
}`
61
69
server .AppendHandlers (
@@ -70,18 +78,22 @@ var _ = Describe("Process", func() {
70
78
Expect (err ).NotTo (HaveOccurred ())
71
79
Expect (warnings ).To (ConsistOf ("this is a warning" ))
72
80
Expect (process ).To (MatchAllFields (Fields {
73
- "GUID" : Equal ("process-1-guid" ),
74
- "Type" : Equal ("some-type" ),
75
- "AppGUID" : Equal ("some-app-guid" ),
76
- "Command" : Equal (types.FilteredString {IsSet : true , Value : "start-command-1" }),
77
- "Instances" : Equal (types.NullInt {Value : 22 , IsSet : true }),
78
- "MemoryInMB" : Equal (types.NullUint64 {Value : 32 , IsSet : true }),
79
- "DiskInMB" : Equal (types.NullUint64 {Value : 1024 , IsSet : true }),
80
- "LogRateLimitInBPS" : Equal (types.NullInt {Value : 512 , IsSet : true }),
81
- "HealthCheckType" : Equal (constant .HTTP ),
82
- "HealthCheckEndpoint" : Equal ("/health" ),
83
- "HealthCheckInvocationTimeout" : BeEquivalentTo (42 ),
84
- "HealthCheckTimeout" : BeEquivalentTo (90 ),
81
+ "GUID" : Equal ("process-1-guid" ),
82
+ "Type" : Equal ("some-type" ),
83
+ "AppGUID" : Equal ("some-app-guid" ),
84
+ "Command" : Equal (types.FilteredString {IsSet : true , Value : "start-command-1" }),
85
+ "Instances" : Equal (types.NullInt {Value : 22 , IsSet : true }),
86
+ "MemoryInMB" : Equal (types.NullUint64 {Value : 32 , IsSet : true }),
87
+ "DiskInMB" : Equal (types.NullUint64 {Value : 1024 , IsSet : true }),
88
+ "LogRateLimitInBPS" : Equal (types.NullInt {Value : 512 , IsSet : true }),
89
+ "HealthCheckType" : Equal (constant .HTTP ),
90
+ "HealthCheckEndpoint" : Equal ("/health" ),
91
+ "HealthCheckInvocationTimeout" : BeEquivalentTo (42 ),
92
+ "HealthCheckTimeout" : BeEquivalentTo (90 ),
93
+ "ReadinessHealthCheckType" : Equal (constant .HTTP ),
94
+ "ReadinessHealthCheckEndpoint" : Equal ("/foo" ),
95
+ "ReadinessHealthCheckInvocationTimeout" : BeEquivalentTo (2 ),
96
+ "ReadinessHealthCheckInterval" : BeEquivalentTo (9 ),
85
97
}))
86
98
})
87
99
})
@@ -317,6 +329,14 @@ var _ = Describe("Process", func() {
317
329
"endpoint": "/health",
318
330
"invocation_timeout": 42
319
331
}
332
+ },
333
+ "readiness_health_check": {
334
+ "type": "http",
335
+ "data": {
336
+ "interval": 9,
337
+ "endpoint": "/foo",
338
+ "invocation_timeout": 2
339
+ }
320
340
}
321
341
}`
322
342
server .AppendHandlers (
@@ -331,18 +351,22 @@ var _ = Describe("Process", func() {
331
351
Expect (err ).NotTo (HaveOccurred ())
332
352
Expect (warnings ).To (ConsistOf ("this is a warning" ))
333
353
Expect (process ).To (MatchAllFields (Fields {
334
- "GUID" : Equal ("process-1-guid" ),
335
- "Type" : Equal ("some-type" ),
336
- "AppGUID" : Equal ("some-app-guid" ),
337
- "Command" : Equal (types.FilteredString {IsSet : true , Value : "start-command-1" }),
338
- "Instances" : Equal (types.NullInt {Value : 22 , IsSet : true }),
339
- "MemoryInMB" : Equal (types.NullUint64 {Value : 32 , IsSet : true }),
340
- "DiskInMB" : Equal (types.NullUint64 {Value : 1024 , IsSet : true }),
341
- "LogRateLimitInBPS" : Equal (types.NullInt {Value : 64 , IsSet : true }),
342
- "HealthCheckType" : Equal (constant .HTTP ),
343
- "HealthCheckEndpoint" : Equal ("/health" ),
344
- "HealthCheckInvocationTimeout" : BeEquivalentTo (42 ),
345
- "HealthCheckTimeout" : BeEquivalentTo (90 ),
354
+ "GUID" : Equal ("process-1-guid" ),
355
+ "Type" : Equal ("some-type" ),
356
+ "AppGUID" : Equal ("some-app-guid" ),
357
+ "Command" : Equal (types.FilteredString {IsSet : true , Value : "start-command-1" }),
358
+ "Instances" : Equal (types.NullInt {Value : 22 , IsSet : true }),
359
+ "MemoryInMB" : Equal (types.NullUint64 {Value : 32 , IsSet : true }),
360
+ "DiskInMB" : Equal (types.NullUint64 {Value : 1024 , IsSet : true }),
361
+ "LogRateLimitInBPS" : Equal (types.NullInt {Value : 64 , IsSet : true }),
362
+ "HealthCheckType" : Equal (constant .HTTP ),
363
+ "HealthCheckEndpoint" : Equal ("/health" ),
364
+ "HealthCheckInvocationTimeout" : BeEquivalentTo (42 ),
365
+ "HealthCheckTimeout" : BeEquivalentTo (90 ),
366
+ "ReadinessHealthCheckType" : Equal (constant .HTTP ),
367
+ "ReadinessHealthCheckEndpoint" : Equal ("/foo" ),
368
+ "ReadinessHealthCheckInvocationTimeout" : BeEquivalentTo (2 ),
369
+ "ReadinessHealthCheckInterval" : BeEquivalentTo (9 ),
346
370
}))
347
371
})
348
372
})
0 commit comments