From 21f99714edc02bf513dc7d27f69e332630870dcb Mon Sep 17 00:00:00 2001 From: M Rizwan Shaik Date: Wed, 16 Sep 2026 12:43:12 +0530 Subject: [PATCH] test: extend hash based routing test with hash_balance in manifest --- assets/dora/route_options_manifest.yml | 1 + routing/per_route_options.go | 6 ++++++ 2 files changed, 7 insertions(+) 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)