Skip to content

Commit

Permalink
tests: Fixes spelling (apache#7789)
Browse files Browse the repository at this point in the history
  • Loading branch information
randall authored May 7, 2021
1 parent 0f250f2 commit 99efb64
Show file tree
Hide file tree
Showing 38 changed files with 67 additions and 67 deletions.
4 changes: 2 additions & 2 deletions tests/gold_tests/body_factory/http204_response_plugin.test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Tests that plugins may break HTTP by sending 204 respose bodies
Tests that plugins may break HTTP by sending 204 response bodies
'''
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand All @@ -21,7 +21,7 @@
import sys

Test.Summary = '''
Tests that plugins may break HTTP by sending 204 respose bodies
Tests that plugins may break HTTP by sending 204 response bodies
'''

ts = Test.MakeATSProcess("ts")
Expand Down
2 changes: 1 addition & 1 deletion tests/gold_tests/cache/disjoint-wait-for-cache.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import uuid

Test.Summary = '''
Same as cache-generaertaion-disjoint, but uses proxy.config.http.wait_for_cache which should delay
Same as cache-generation-disjoint, but uses proxy.config.http.wait_for_cache which should delay
the server from accepting connection till the cache is loaded
'''

Expand Down
4 changes: 2 additions & 2 deletions tests/gold_tests/cache/vary-handling.test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Test correct handling of altenates via the Vary header.
Test correct handling of alternates via the Vary header.
'''
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand All @@ -18,7 +18,7 @@
# limitations under the License.

Test.Summary = '''
Test correct handling of altenates via the Vary header.
Test correct handling of alternates via the Vary header.
'''

ts = Test.MakeATSProcess("ts")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
'dest_ip=* ssl_cert_name=server.pem ssl_key_name=server.key'
)

# Using netcat as a cheapy origin server in case 1 so we can insert a delay in sending back the response.
# Using netcat as a cheap origin server in case 1 so we can insert a delay in sending back the response.
# Replaced microserver for cases 2 and 3 as well because I was getting python exceptions when running
# microserver if chunked encoding headers were specified for the request headers

Expand Down
4 changes: 2 additions & 2 deletions tests/gold_tests/continuations/double.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
tr = Test.AddTestRun()

# Create a bunch of curl commands to be executed in parallel. Default.Process is set in SpawnCommands.
# On Fedora 28/29, it seems that curl will occaisionally timeout after a couple seconds and return exitcode 2
# Examinig the packet capture shows that Traffic Server dutifully sends the response
# On Fedora 28/29, it seems that curl will occasionally timeout after a couple seconds and return exitcode 2
# Examining the packet capture shows that Traffic Server dutifully sends the response
ps = tr.SpawnCommands(cmdstr=cmd, count=numberOfRequests, retcode=Any(0, 2))
tr.Processes.Default.Env = ts.Env
tr.Processes.Default.ReturnCode = Any(0, 2)
Expand Down
6 changes: 3 additions & 3 deletions tests/gold_tests/continuations/double_h2.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
tr = Test.AddTestRun()

# Create a bunch of curl commands to be executed in parallel. Default.Process is set in SpawnCommands.
# On Fedora 28/29, it seems that curl will occaisionally timeout after a couple seconds and return exitcode 2
# Examinig the packet capture shows that Traffic Server dutifully sends the response
# On Fedora 28/29, it seems that curl will occasionally timeout after a couple seconds and return exitcode 2
# Examining the packet capture shows that Traffic Server dutifully sends the response
ps = tr.SpawnCommands(cmdstr=cmd, count=numberOfRequests, retcode=Any(0, 2))
tr.Processes.Default.Env = ts.Env
tr.Processes.Default.ReturnCode = Any(0, 2)
Expand Down Expand Up @@ -120,7 +120,7 @@ def done_stat_ready(process, hasRunFor, **kw):
# number of sessions/transactions opened and closed are equal
tr = Test.AddTestRun("Check Ssn")
server2.StartupTimeout = 60
# Again, here the imporant thing is the ready function not the server2 process
# Again, here the important thing is the ready function not the server2 process
tr.Processes.Default.StartBefore(server2, ready=make_done_stat_ready(ts.Env))
tr.Processes.Default.Command = comparator_command.format('ssn')
tr.Processes.Default.ReturnCode = 0
Expand Down
6 changes: 3 additions & 3 deletions tests/gold_tests/continuations/openclose.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@

tr = Test.AddTestRun()
# Create a bunch of curl commands to be executed in parallel. Default.Process is set in SpawnCommands.
# On Fedora 28/29, it seems that curl will occaisionally timeout after a couple seconds and return exitcode 2
# Examinig the packet capture shows that Traffic Server dutifully sends the response
# On Fedora 28/29, it seems that curl will occasionally timeout after a couple seconds and return exitcode 2
# Examining the packet capture shows that Traffic Server dutifully sends the response
ps = tr.SpawnCommands(cmdstr=cmd, count=numberOfRequests, retcode=Any(0, 2))
tr.Processes.Default.Env = ts.Env
tr.Processes.Default.ReturnCode = Any(0, 2)
Expand Down Expand Up @@ -97,7 +97,7 @@ def done_stat_ready(process, hasRunFor, **kw):
# number of sessions/transactions opened and closed are equal
tr = Test.AddTestRun("Check Ssn order errors")
server2.StartupTimeout = 60
# Again, here the imporant thing is the ready function not the server2 process
# Again, here the important thing is the ready function not the server2 process
tr.Processes.Default.StartBefore(server2, ready=make_done_stat_ready(ts.Env))
tr.Processes.Default.Command = 'traffic_ctl metric get ssntxnorder_verify.err'
tr.Processes.Default.ReturnCode = 0
Expand Down
6 changes: 3 additions & 3 deletions tests/gold_tests/continuations/openclose_h2.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@

tr = Test.AddTestRun()
# Create a bunch of curl commands to be executed in parallel. Default.Process is set in SpawnCommands.
# On Fedora 28/29, it seems that curl will occaisionally timeout after a couple seconds and return exitcode 2
# Examinig the packet capture shows that Traffic Server dutifully sends the response
# On Fedora 28/29, it seems that curl will occasionally timeout after a couple seconds and return exitcode 2
# Examining the packet capture shows that Traffic Server dutifully sends the response
ps = tr.SpawnCommands(cmdstr=cmd, count=numberOfRequests, retcode=Any(0, 2))
tr.Processes.Default.Env = ts.Env
tr.Processes.Default.ReturnCode = Any(0, 2)
Expand Down Expand Up @@ -110,7 +110,7 @@ def done_stat_ready(process, hasRunFor, **kw):
# number of sessions/transactions opened and closed are equal
tr = Test.AddTestRun("Check Ssn order errors")
server2.StartupTimeout = 60
# Again, here the imporant thing is the ready function not the server2 process
# Again, here the important thing is the ready function not the server2 process
tr.Processes.Default.StartBefore(server2, ready=make_done_stat_ready(ts.Env))
tr.Processes.Default.Command = 'traffic_ctl metric get ssntxnorder_verify.err'
tr.Processes.Default.ReturnCode = 0
Expand Down
4 changes: 2 additions & 2 deletions tests/gold_tests/continuations/session_id.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
numberOfRequests = 100
# Create a bunch of curl commands to be executed in parallel. Default.Process
# is set in SpawnCommands. On Fedora 28/29, it seems that curl will
# occaisionally timeout after a couple seconds and return exitcode 2 Examinig
# the packet capture shows that Traffic Server dutifully sends the response
# occasionally timeout after a couple seconds and return exitcode 2
# Examining the packet capture shows that Traffic Server dutifully sends the response
ps = tr.SpawnCommands(cmdstr=cmd, count=numberOfRequests, retcode=Any(0, 2))
tr.Processes.Default.Env = ts.Env
tr.Processes.Default.ReturnCode = Any(0, 2)
Expand Down
6 changes: 3 additions & 3 deletions tests/gold_tests/h2/http2.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
tr.StillRunningAfter = server

# Test Case 6: Post with chunked body
# While HTTP/2 does not support Tranfer-encoding we pass that into curl to encourage it to not set the content length
# While HTTP/2 does not support Transfer-encoding we pass that into curl to encourage it to not set the content length
# on the post body
tr = Test.AddTestRun()
tr.Processes.Default.Command = 'curl -s -k -H "Transfer-Encoding: chunked" -d "{0}" https://127.0.0.1:{1}/postchunked'.format(
Expand All @@ -192,7 +192,7 @@
tr.StillRunningAfter = server

# Test Case 7: Post with big chunked body
# While HTTP/2 does not support Tranfer-encoding we pass that into curl to encourage it to not set the content length
# While HTTP/2 does not support Transfer-encoding we pass that into curl to encourage it to not set the content length
# on the post body
tr = Test.AddTestRun()
tr.Processes.Default.Command = 'curl -s -k -H "Transfer-Encoding: chunked" -d @big_post_body https://127.0.0.1:{0}/bigpostchunked'.format(
Expand All @@ -201,7 +201,7 @@
tr.Processes.Default.Streams.All = "gold/post_chunked.gold"
tr.StillRunningAfter = server

# Test Case 8: Huge resposne header
# Test Case 8: Huge response header
tr = Test.AddTestRun()
tr.Processes.Default.Command = 'curl -vs -k --http2 https://127.0.0.1:{0}/huge_resp_hdrs'.format(ts.Variables.ssl_port)
tr.Processes.Default.ReturnCode = 0
Expand Down
2 changes: 1 addition & 1 deletion tests/gold_tests/h2/httpbin.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
# Test Cases
# ----

# Test Case 0: Basic request and resposne
# Test Case 0: Basic request and response
test_run = Test.AddTestRun()
test_run.Processes.Default.Command = "curl -vs -k --http2 https://127.0.0.1:{0}/get | {1}".format(
ts.Variables.ssl_port, json_printer)
Expand Down
4 changes: 2 additions & 2 deletions tests/gold_tests/headers/field_name_space.test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Test on handeling spaces after the field name and before the colon
Test on handling spaces after the field name and before the colon
'''
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand All @@ -18,7 +18,7 @@
# limitations under the License.

Test.Summary = '''
Checking on handeling spaces after the field name and before the colon
Checking on handling spaces after the field name and before the colon
'''

Test.ContinueOnFail = True
Expand Down
2 changes: 1 addition & 1 deletion tests/gold_tests/headers/forwarded.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def TestHttp1_1(host):

TestHttp1_1('www.forwarded-for.com')

# Note: forwaded-obsersver.py counts on the "by" tests being done in the order below.
# Note: forwarded-observer.py counts on the "by" tests being done in the order below.

TestHttp1_1('www.forwarded-by-ip.com')
TestHttp1_1('www.forwarded-by-unknown.com')
Expand Down
2 changes: 1 addition & 1 deletion tests/gold_tests/logging/all_headers_sanitizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
rexl.append((re.compile(r'\{"359670651[^"]*"\}'), '{"{359670651__WEIRD__}"}'))
rexl.append((re.compile(r'\{\{Accept-Ranges\}:\{bytes\}\}'), ''))

# Loop until the file specified in argv[1] becomes availble
# Loop until the file specified in argv[1] becomes available
filename = sys.argv[1]
processed = False
# Give up looking for file after 2 minutes
Expand Down
2 changes: 1 addition & 1 deletion tests/gold_tests/logging/all_headers_sanitizer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
sed 's/ ___FS___ /\
/g' | sed 's/^{//' | sed 's/}$//' | while read LN
do
# For lines that contain a full set of messaage headers, get
# For lines that contain a full set of message headers, get
# individual headers on separate lines, then sort the lines.
#
echo $LN | sed 's/}}/}}\
Expand Down
2 changes: 1 addition & 1 deletion tests/gold_tests/logging/log_retention.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import os

Test.Summary = '''
Test the enforcment of proxy.config.log.max_space_mb_for_logs.
Test the enforcement of proxy.config.log.max_space_mb_for_logs.
'''

# This test is sensitive to timing issues, especially in the OS CI for some
Expand Down
8 changes: 4 additions & 4 deletions tests/gold_tests/logging/sigusr2.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def get_sigusr2_signal_command(self):
rotate_manager_log = tr1.Processes.Process("rotate_manager_log", "mv {} {}".format(
diags_test.manager_log, diags_test.rotated_manager_log))

# Configure the signaling of SIGUSR2 to traffic_manaager.
# Configure the signaling of SIGUSR2 to traffic_manager.
tr1.Processes.Default.Command = diags_test.get_sigusr2_signal_command()
tr1.Processes.Default.Return = 0
tr1.Processes.Default.Ready = When.FileExists(diags_test.diags_log)
Expand Down Expand Up @@ -178,7 +178,7 @@ def get_sigusr2_signal_command(self):
# only allow us to wait until the logs get populated with the desired content,
# the test will not wait the entire time for them to complete.
first_curl_ready = tr2.Processes.Process("first_curl_ready", 'sleep 30')
# In the autest enironment, it can take more than 10 seconds for the log file to be created.
# In the autest environment, it can take more than 10 seconds for the log file to be created.
first_curl_ready.StartupTimeout = 30
first_curl_ready.Ready = When.FileContains(configured_test.configured_log, "/first")

Expand All @@ -190,7 +190,7 @@ def get_sigusr2_signal_command(self):
'curl "http://127.0.0.1:{0}/second" --verbose'.format(configured_test.ts.Variables.port))

second_curl_ready = tr2.Processes.Process("second_curl_ready", 'sleep 30')
# In the autest enironment, it can take more than 10 seconds for the log file to be created.
# In the autest environment, it can take more than 10 seconds for the log file to be created.
second_curl_ready.StartupTimeout = 30
second_curl_ready.Ready = When.FileContains(configured_test.rotated_configured_log, "/second")

Expand All @@ -203,7 +203,7 @@ def get_sigusr2_signal_command(self):
"third_curl",
'curl "http://127.0.0.1:{0}/third" --verbose'.format(configured_test.ts.Variables.port))
third_curl_ready = tr2.Processes.Process("third_curl_ready", 'sleep 30')
# In the autest enironment, it can take more than 10 seconds for the log file to be created.
# In the autest environment, it can take more than 10 seconds for the log file to be created.
third_curl_ready.StartupTimeout = 30
third_curl_ready.Ready = When.FileContains(configured_test.configured_log, "/third")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
tr.StillRunningAfter = server

# 11 Test - cache_key_url request -- deprecated
tr = Test.AddTestRun("cache_key_url request - dprecated")
tr = Test.AddTestRun("cache_key_url request - deprecated")
ps = tr.Processes.Default
ps.Command = curl_and_args + ' http://psd/path -r {} -H "uuid: pselect"'.format(pselect_str)
ps.ReturnCode = 0
Expand Down
4 changes: 2 additions & 2 deletions tests/gold_tests/pluginTest/compress/compress.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def curl_post(ts, idx, encodingList):
tr.Processes.Default.ReturnCode = 0
tr.Processes.Default.Command = curl(ts, i, "deflate")

# Test Aceept-Encoding normalization.
# Test Accept-Encoding normalization.

tr = Test.AddTestRun()
tr.Processes.Default.ReturnCode = 0
Expand Down Expand Up @@ -194,7 +194,7 @@ def curl_post(ts, idx, encodingList):
# compress_long.log contains all the output from the curl commands. The tr removes the carriage returns for easier
# readability. Curl seems to have a bug, where it will neglect to output an end of line before outputing an HTTP
# message header line. The sed command is a work-around for this problem. greplog.sh uses the grep command to
# select HTTP request/response line that should be consitent every time the test runs.
# select HTTP request/response line that should be consistent every time the test runs.
#
tr = Test.AddTestRun()
tr.Processes.Default.ReturnCode = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
'''
Test.SkipUnless(Condition.PluginExists('cookie_remap.so'))
Test.ContinueOnFail = True
Test.testName = "cookie_remap: cookie regex match and substition"
Test.testName = "cookie_remap: cookie regex match and substitution"

# Define default ATS
ts = Test.MakeATSProcess("ts")
Expand Down
4 changes: 2 additions & 2 deletions tests/gold_tests/pluginTest/esi/esi.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def run_cases_expecting_gzip(self):
zipped_body_disk_file.Exists = True

# Now, unzip the file and make sure its size is the expected body.
tr = Test.AddTestRun("Verify the file uzips to the expected body.")
tr = Test.AddTestRun("Verify the file unzips to the expected body.")
tr.Processes.Default.Command = "gunzip {}".format(gzipped_body_file)
tr.Processes.Default.Ready = When.FileExists(unzipped_body_file)
tr.Processes.Default.ReturnCode = 0
Expand Down Expand Up @@ -252,7 +252,7 @@ def run_cases_expecting_gzip(self):
gz_disk_file.Size = Testers.GreaterThan(0)

# Now, unzip the file and make sure its size is the original 0 size body.
tr = Test.AddTestRun("Verify the file uzips to a zero sized file.")
tr = Test.AddTestRun("Verify the file unzips to a zero sized file.")
tr.Processes.Default.Command = "gunzip {}".format(gzipped_empty_body)
tr.Processes.Default.Ready = When.FileExists(empty_body_file)
tr.Processes.Default.ReturnCode = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@

path1_rule = 'path1 {}\n'.format(int(time.time()) + 600)

# Define first revistion for when trafficserver starts
# Define first revision for when trafficserver starts
ts.Disk.File(regex_revalidate_conf_path, typename="ats:config").AddLines([
"# Empty\n"
])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
ps.Streams.stdout.Content = Testers.ContainsExpression("etagnew", "expected etagnew")
tr.StillRunningAfter = ts

# 3 Test - Request fullly healed asset via slice plugin
# 3 Test - Request fully healed asset via slice plugin
tr = Test.AddTestRun("Request full healed slice")
ps = tr.Processes.Default
ps.Command = curl_and_args + ' http://slice/second'
Expand Down
6 changes: 3 additions & 3 deletions tests/gold_tests/pluginTest/traffic_dump/traffic_dump.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
tr.StillRunningAfter = ts

#
# Test 6: Verify correct protcol dumping of a TLS connection.
# Test 6: Verify correct protocol dumping of a TLS connection.
#
tr = Test.AddTestRun("Verify the client protocol stack of a TLS session.")
https_protocols = "tls,tcp,ip"
Expand Down Expand Up @@ -278,7 +278,7 @@
tr.StillRunningAfter = ts

#
# Test 7: Verify correct protcol dumping of TLS and HTTP/2 connections.
# Test 7: Verify correct protocol dumping of TLS and HTTP/2 connections.
#
tr = Test.AddTestRun("Verify the client HTTP/2 protocol stack.")
h2_protocols = "http,tls,tcp,ip"
Expand Down Expand Up @@ -308,7 +308,7 @@
tr.StillRunningAfter = ts

#
# Test 8: Verify correct protcol dumping of client-side TLS and server-side HTTP.
# Test 8: Verify correct protocol dumping of client-side TLS and server-side HTTP.
#
tr = Test.AddTestRun("Verify the client TLS protocol stack.")
tr.Setup.CopyAs(verify_replay, Test.RunDirectory)
Expand Down
4 changes: 2 additions & 2 deletions tests/gold_tests/post_slow_server/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let RECEIVED=8*RECEIVED

EXPECTED=$((200 * 1024))

echo "Exepcted=$EXPECTED"
echo "Recieved=$RECEIVED"
echo "Expected=$EXPECTED"
echo "Received=$RECEIVED"

(( RECEIVED == EXPECTED ))
2 changes: 1 addition & 1 deletion tests/gold_tests/redirect/redirect_actions.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class AddressE(Enum):
Classes of addresses are mapped to example addresses.
'''
Private = ('10.0.0.1', '[fc00::1]')
Loopback = (['127.1.2.3']) # [::1] is ommitted here because it is likely overwritten by Self, and there are no others in IPv6.
Loopback = (['127.1.2.3']) # [::1] is omitted here because it is likely overwritten by Self, and there are no others in IPv6.
Multicast = ('224.1.2.3', '[ff42::]')
Linklocal = ('169.254.0.1', '[fe80::]')
Routable = ('72.30.35.10', '[2001:4998:58:1836::10]') # Do not Follow redirects to these in an automated test.
Expand Down
6 changes: 3 additions & 3 deletions tests/gold_tests/timeout/tls_conn_timeout.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@
tr.StillRunningAfter = Test.Processes.ts

# Should not catch the connect timeout. Even though the first bytes are not sent until after the 2 second connect timeout
# Shoudl not retry the connection
# Should not retry the connection
tr = Test.AddTestRun("tr-delayed-post")
tr.Processes.Default.StartBefore(delay_post_ttfb, ready=When.PortOpen(Test.Variables.block_ttfb_port))
tr.Processes.Default.Command = 'curl -H"Connection:close" -d "bob" -i http://127.0.0.1:{0}/ttfb_blocked --tlsv1.2'.format(
ts.Variables.port)
tr.Processes.Default.Streams.All = Testers.ContainsExpression("504 Connection Timed Out", "Conntect timeout")
tr.Processes.Default.Streams.All = Testers.ContainsExpression("504 Connection Timed Out", "Connect timeout")
tr.Processes.Default.ReturnCode = 0
tr.StillRunningAfter = delay_post_ttfb

Expand All @@ -103,7 +103,7 @@
tr.Processes.Default.StartBefore(delay_get_ttfb, ready=When.PortOpen(Test.Variables.get_block_ttfb_port))
tr.Processes.Default.Command = 'curl -H"Connection:close" -i http://127.0.0.1:{0}/get_ttfb_blocked --tlsv1.2'.format(
ts.Variables.port)
tr.Processes.Default.Streams.All = Testers.ContainsExpression("504 Connection Timed Out", "Conntect timeout")
tr.Processes.Default.Streams.All = Testers.ContainsExpression("504 Connection Timed Out", "Connect timeout")
tr.Processes.Default.ReturnCode = 0
tr.StillRunningAfter = delay_get_ttfb

Expand Down
Loading

0 comments on commit 99efb64

Please sign in to comment.