Skip to content
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

add configuration plugin #3

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

cynthiagu23
Copy link

add 3 configurations for the environment:

  1. --sleep-in-sec to allow enough sleep time for async log to write out
  2. --keep-tmp to keep the /tmp folder for debug purpose
  3. --standalone-ats-port allow a separate deployment of ats

parser.add_option('--sleep-in-sec', type='int', default=0,
dest='sleep_in_sec',
help='Sleep time before ATS start and after ATS stop to allow enough time for async tests')
parser.add_option('--standalone-ats-port', type='int', default=-1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will probably need to follow the same server_ports markup that we have in records.config-- since ATS ports have different attributes associated with them (such as ipv4:443 -- https://docs.trafficserver.apache.org/en/latest/reference/configuration/records.config.en.html#proxy-config-http-server-ports)

#process environment options
self.sleep_in_sec = 0
if hasattr(plugin.conf_plugin, 'args'):
if plugin.conf_plugin.args.sleep_in_sec:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are both if checks necessary? And if so, can we put them in one line?

@jacksontj
Copy link
Contributor

@cynthiagu23 Few comments left unfixed, once those are taken care of I think we are good to merge :)

# Copyright (c) 2004-2006 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is ZPL compatible with Apache?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think all we have to do, is add this notice to the NOTICE file, like we do in ats itself
https://github.com/apache/trafficserver/blob/master/NOTICE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants