added HealthCheckDefinition in expected for some more testcases

pull/20411/head
Vijay Srinivas 10 months ago
parent 5e3ddea2f1
commit 14f7cfea21

@ -494,6 +494,9 @@ func testAgent_AddService(t *testing.T, extraHCL string) {
ServiceTags: []string{"tag1"},
Type: "ttl",
EnterpriseMeta: *structs.DefaultEnterpriseMetaInDefaultPartition(),
Definition: structs.HealthCheckDefinition{
TTL: time.Minute,
},
},
},
},
@ -538,6 +541,11 @@ func testAgent_AddService(t *testing.T, extraHCL string) {
ServiceTags: []string{"tag1"},
Type: "http",
EnterpriseMeta: *structs.DefaultEnterpriseMetaInDefaultPartition(),
Definition: structs.HealthCheckDefinition{
HTTP: "http://localhost:8100/",
Interval: 10 * time.Second,
Timeout: 3 * time.Second,
},
},
},
},
@ -588,6 +596,9 @@ func testAgent_AddService(t *testing.T, extraHCL string) {
ServiceTags: []string{"tag2"},
Type: "ttl",
EnterpriseMeta: *structs.DefaultEnterpriseMetaInDefaultPartition(),
Definition: structs.HealthCheckDefinition{
TTL: time.Minute,
},
},
"check-noname": {
Node: "node1",
@ -601,6 +612,9 @@ func testAgent_AddService(t *testing.T, extraHCL string) {
ServiceTags: []string{"tag2"},
Type: "ttl",
EnterpriseMeta: *structs.DefaultEnterpriseMetaInDefaultPartition(),
Definition: structs.HealthCheckDefinition{
TTL: time.Minute,
},
},
"service:svcid2:3": {
Node: "node1",
@ -614,6 +628,9 @@ func testAgent_AddService(t *testing.T, extraHCL string) {
ServiceTags: []string{"tag2"},
Type: "ttl",
EnterpriseMeta: *structs.DefaultEnterpriseMetaInDefaultPartition(),
Definition: structs.HealthCheckDefinition{
TTL: time.Minute,
},
},
"service:svcid2:4": {
Node: "node1",
@ -627,6 +644,9 @@ func testAgent_AddService(t *testing.T, extraHCL string) {
ServiceTags: []string{"tag2"},
Type: "ttl",
EnterpriseMeta: *structs.DefaultEnterpriseMetaInDefaultPartition(),
Definition: structs.HealthCheckDefinition{
TTL: time.Minute,
},
},
},
},

Loading…
Cancel
Save