bryancall commented on code in PR #13351:
URL: https://github.com/apache/trafficserver/pull/13351#discussion_r3597960680


##########
tests/gold_tests/h2/h2_interim_origin.py:
##########
@@ -0,0 +1,160 @@
+#!/usr/bin/env python3
+"""An HTTP/2 (TLS) origin that sends a 1xx interim response before the final 
200.
+
+Proxy Verifier cannot emit interim/1xx responses, so this hand-frames HTTP/2 
so we
+can exercise ATS origin-side handling of 1xx interim responses.
+
+Modes (chosen by --mode):
+  single   : 103 Early Hints, then 200            (the deepwiki/Vercel case)
+  multi    : 103, 103, 100, then 200              (multiple sequential 
interims)
+  continue : 100 Continue, then 200
+  cont     : a single 103 whose header block is split across 
HEADERS+CONTINUATION,
+             then 200                              (multi-frame interim)
+  none     : 200 only                             (control; must always pass)
+"""
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+import argparse
+import socket
+import ssl
+import struct
+import subprocess
+import sys
+import tempfile
+import threading
+
+BODY = b"interim-origin-body"
+
+
+def frame(ftype, flags, sid, payload):
+    return struct.pack(">I", len(payload))[1:] + bytes([ftype, flags]) + 
struct.pack(">I", sid) + payload
+
+
+def lit(name, value):

Review Comment:
   Fixed in 5a7b1c1512: added parameter/return type hints to the helper 
functions to match the other gold-test Python helpers.
   
   _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to