This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 9fe25cef35 Fix stale_response FORCE_SIE enum (#13326)
9fe25cef35 is described below

commit 9fe25cef35e85fa0c9b2698bf03bf03f352430ee
Author: Brian Neradt <[email protected]>
AuthorDate: Wed Jun 24 20:43:15 2026 -0500

    Fix stale_response FORCE_SIE enum (#13326)
    
    Give the FORCE_SIE test mode its own enum value so the stale-if-error rows 
are not aliases of FORCE_SWR. Add a load-time guard to catch future duplicate 
OptionType values before the autest runs.
---
 tests/gold_tests/pluginTest/stale_response/stale_response.test.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/gold_tests/pluginTest/stale_response/stale_response.test.py 
b/tests/gold_tests/pluginTest/stale_response/stale_response.test.py
index 16a8610606..895fae86e2 100644
--- a/tests/gold_tests/pluginTest/stale_response/stale_response.test.py
+++ b/tests/gold_tests/pluginTest/stale_response/stale_response.test.py
@@ -33,7 +33,10 @@ class OptionType(Enum):
     NONE = 0
     DEFAULT_DIRECTIVES = 1
     FORCE_SWR = 2
-    FORCE_SIE = 2
+    FORCE_SIE = 3
+
+
+assert len({option.value for option in OptionType.__members__.values()}) == 
len(OptionType.__members__)
 
 
 class TestStaleResponse:

Reply via email to