bneradt commented on code in PR #13753: URL: https://github.com/apache/trafficserver/pull/13753#discussion_r4146800450
########## tests/gold_tests/pluginTest/stats_over_http/stats_over_http_compression.test.py: ########## @@ -0,0 +1,111 @@ +''' +Verify that stats_over_http compresses responses with many metrics and releases the intercept of aborted requests. +''' +# 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 os +import shutil +import sys + +Test.Summary = 'Compress stats_over_http responses with many metrics' +Test.SkipUnless(Condition.PluginExists('stats_over_http.so')) +Test.SkipIf(Condition.CurlUsingUnixDomainSocket()) +Test.ContinueOnFail = True + +# With this many metrics, the Prometheus output is larger than the default 1 MiB thread stack. +METRIC_COUNT = 10000 Review Comment: Can you organize the test as a Test class? See tests/gold_tests/ats_probe/ats_probe.test.py as an example. -- 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]
