|
|
|
@ -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,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|