You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Description("Forces two consecutive 404/1002 responses from the gateway and verifies ClientRetryPolicy sets the hub region header flag after the first retry fails.")]
4322
+
[Description("Forces three consecutive 404/1002 responses from the gateway and verifies ClientRetryPolicy "+
4323
+
"sets the hub region header flag after the second 404/1002 and sends it on the third attempt.")]
// 1. Initial request (requestCount = 1) fails with 404/1002
4419
-
// 2. First retry (requestCount = 2) fails with 404/1002
4420
-
// 3. No more retries because single master + no additional regions
4421
-
Assert.AreEqual(2,requestCount,$"Expected exactly 2 requests (initial + 1 retry) for single-region emulator, but got {requestCount}");
4422
-
Assert.AreEqual(2,return404Count,"Both requests should have returned 404/1002");
4427
+
// 1. Initial request (requestCount = 1) fails with 404/1002 → no hub header
4428
+
// 2. First retry to write region (requestCount = 2) fails with 404/1002 → no hub header, flag set
4429
+
// 3. Second retry with hub header (requestCount = 3) fails with 404/1002 → hub header present → NoRetry
4430
+
Assert.AreEqual(3,requestCount,$"Expected exactly 3 requests (initial + retry to write region + retry with hub header) for single-region emulator, but got {requestCount}");
4431
+
Assert.AreEqual(3,return404Count,"All three requests should have returned 404/1002");
4432
+
Assert.IsTrue(hubHeaderPresentOnThirdRequest,"Hub region header must be present on the third request (after two consecutive 404/1002 failures).");
0 commit comments