diff --git a/assets/dora/route_options_manifest.yml b/assets/dora/route_options_manifest.yml index 183d99f30..119e27cf9 100644 --- a/assets/dora/route_options_manifest.yml +++ b/assets/dora/route_options_manifest.yml @@ -12,6 +12,7 @@ applications: options: loadbalancing: hash hash_header: X-Hash-Header + hash_balance: 1.1 processes: - type: web instances: 2 diff --git a/routing/per_route_options.go b/routing/per_route_options.go index a88adea8a..2a8d1f952 100644 --- a/routing/per_route_options.go +++ b/routing/per_route_options.go @@ -141,6 +141,12 @@ var _ = RoutingDescribe("Per-Route Options", func() { }) }) Context("when it's set to hash", func() { + It("is reachable", func() { + doraUrl := buildUrl(hashBasedRoutingHost) + curl := helpers.Curl(Config, fmt.Sprintf("%s/id", doraUrl), "-H", "X-Hash-Header: 1").Wait() + Expect(curl).To(Exit(0)) + Expect(string(curl.Out.Contents())).To(MatchRegexp(appInstanceRegex.String())) + }) Context("when the requests contain the same hash header", func() { It("routes requests to the same instance", func() { doraUrl := buildUrl(hashBasedRoutingHost)