-
Notifications
You must be signed in to change notification settings - Fork 852
AuTest: New log and When condition for ATS initialized #6931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,8 @@ def make_id(s): | |
| # this forms is for the global process define | ||
|
|
||
|
|
||
| def MakeATSProcess(obj, name, command='traffic_server', select_ports=True, enable_tls=False): | ||
| def MakeATSProcess(obj, name, command='traffic_server', select_ports=True, | ||
| enable_tls=False, enable_cache=True): | ||
| ##################################### | ||
| # common locations | ||
|
|
||
|
|
@@ -281,10 +282,26 @@ def MakeATSProcess(obj, name, command='traffic_server', select_ports=True, enabl | |
| get_port(p, "manager_port") | ||
| get_port(p, "admin_port") | ||
|
|
||
| if enable_tls: | ||
| p.Ready = When.PortsOpen([p.Variables.port, p.Variables.ssl_port]) | ||
| if enable_cache: | ||
| # In records.config, the cache is enabled by default so there's nothing | ||
| # we have to do here to functionally enable it. However, the tests that | ||
| # rely upon the cache will not function correctly if ATS starts | ||
| # processing traffic before the cache is ready. Thus we set the | ||
| # wait_for_cache configuration. | ||
| p.Disk.records_config.update({ | ||
| # Do not accept connections from clients until cache subsystem is | ||
| # operational. | ||
| 'proxy.config.http.wait_for_cache': 1, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nitpick: unneeded comma. Or, maybe set cache.http to 1 here, to elbow-pad this in case of a default change.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I generally prefer keeping the comma for the last item as a convenience if another item is appended. |
||
| }) | ||
| else: | ||
| p.Ready = When.PortOpen(p.Variables.port) | ||
| # The user wants the cache to be disabled. | ||
| p.Disk.records_config.update({ | ||
| 'proxy.config.http.cache.http': 0 | ||
| }) | ||
|
|
||
| # The following message was added so that tests and users can know when | ||
| # Traffic Server is ready to both receive and optimize traffic. | ||
bneradt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| p.Ready = When.FileContains(p.Disk.diags_log.AbsPath, "NOTE: Traffic Server is fully initialized") | ||
|
|
||
| if select_ports: | ||
| # default config | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.