You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2023/02/06 17:55:46 UTC
[trafficserver] branch 9.2.x updated: s3_auth autest: convert from gold file to file contains (#9337)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.2.x by this push:
new d744aa7954 s3_auth autest: convert from gold file to file contains (#9337)
d744aa7954 is described below
commit d744aa7954dd614a786460e479ead2935c49e2aa
Author: Brian Olsen <br...@comcast.com>
AuthorDate: Tue Jan 31 06:13:27 2023 -0700
s3_auth autest: convert from gold file to file contains (#9337)
(cherry picked from commit ef54f36a771f861fb31cb0682a681e93144f89a6)
---
.../pluginTest/s3_auth/gold/s3_auth_parsing.gold | 17 -----------------
.../pluginTest/s3_auth/s3_auth_config.test.py | 3 ++-
2 files changed, 2 insertions(+), 18 deletions(-)
diff --git a/tests/gold_tests/pluginTest/s3_auth/gold/s3_auth_parsing.gold b/tests/gold_tests/pluginTest/s3_auth/gold/s3_auth_parsing.gold
deleted file mode 100644
index 2303e2859a..0000000000
--- a/tests/gold_tests/pluginTest/s3_auth/gold/s3_auth_parsing.gold
+++ /dev/null
@@ -1,17 +0,0 @@
-* Trying 127.0.0.1:``...
-* Connected to 127.0.0.1 (127.0.0.1) port `` (#0)
-> GET /s3-bucket HTTP/1.1
-> Host: www.example.com
-> User-Agent: curl/``
-> Accept: */*
->
-* Mark bundle as not supporting multiuse
-< HTTP/1.1 200 OK
-< Content-Length: 8
-< Date: ``
-< Age: ``
-< Connection: keep-alive
-< Server: ``
-<
-{ [8 bytes data]
-* Connection #0 to host 127.0.0.1 left intact
diff --git a/tests/gold_tests/pluginTest/s3_auth/s3_auth_config.test.py b/tests/gold_tests/pluginTest/s3_auth/s3_auth_config.test.py
index 5523ff63ad..ffcdc3bc34 100644
--- a/tests/gold_tests/pluginTest/s3_auth/s3_auth_config.test.py
+++ b/tests/gold_tests/pluginTest/s3_auth/s3_auth_config.test.py
@@ -59,7 +59,8 @@ tr.Processes.Default.Command = f'curl -s -v -H "Host: www.example.com" http://12
tr.Processes.Default.ReturnCode = 0
tr.Processes.Default.StartBefore(server)
tr.Processes.Default.StartBefore(ts)
-tr.Processes.Default.Streams.stderr = "gold/s3_auth_parsing.gold"
+tr.Processes.Default.Streams.stderr.Content = Testers.ContainsExpression("200 OK", "expected 200 response")
+tr.Processes.Default.Streams.stderr.Content += Testers.ContainsExpression("Content-Length: 8", "expected content-length 8")
tr.StillRunningAfter = server
ts.Disk.traffic_out.Content = "gold/s3_auth_parsing_ts.gold"