bneradt commented on code in PR #13615:
URL: https://github.com/apache/trafficserver/pull/13615#discussion_r4457439959


##########
tests/gold_tests/pluginTest/origin_server_auth/origin_server_auth.test.py:
##########
@@ -68,6 +72,35 @@ def setUpOriginServer(self):
         # add request/response
         self.server.addResponse("sessionlog.log", request_header, 
response_header)
 
+        with open(self.long_gcp_replay, "w", encoding="utf-8") as replay:
+            replay.write(
+                f'''meta:
+  version: "1.0"
+
+sessions:
+- transactions:
+  - client-request:
+      method: "GET"
+      url: /long-gcp-token
+      version: "1.1"
+      headers:
+        fields:
+        - [ uuid, long-gcp-token ]
+        - [ Host, www.example.com ]
+        - [ Authorization, {{ value: "Bearer {self.long_gcp_token}", as: equal 
}} ]

Review Comment:
   Yes, good catch. When this test moved to a Uranium replay 
(`tests/uranium_tests/pluginTest/origin_server_auth/gcp_long_token.test.yaml`), 
the `Authorization` check went under `proxy-request` with `as: equal` against 
the full `Bearer <long token>` value, so it verifies what ATS sends to the 
origin. Rebased on latest master; the origin_server_auth urtests pass locally.



-- 
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