Skip to content

test: hot restart IPv6#1051

Merged
mattklein123 merged 3 commits into
envoyproxy:masterfrom
hennna:v6-hot-restart-test
Jun 6, 2017
Merged

test: hot restart IPv6#1051
mattklein123 merged 3 commits into
envoyproxy:masterfrom
hennna:v6-hot-restart-test

Conversation

@hennna
Copy link
Copy Markdown
Contributor

@hennna hennna commented Jun 5, 2017

This PR parameterizes IPv4/IPv6 testing for the hot restart integration test.

See #1036 , #953 , and #1049 .

Comment thread tools/socket_passing.py Outdated
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python2.7
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think everyone will be running precisely Python 2.7 or have Python in this location. Why the change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Python 2.3/2.4 doesn't support with open().

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What about /usr/bin/env python2.7 then? You can't assume Python is in /usr/bin.

Comment thread test/integration/hotrestart_test.sh Outdated
TEST_INDEX=0
for HOT_RESTART_JSON in "${JSON_TEST_ARRAY[@]}"
do
# Now start the real server, hot restart it twice, and shut it all down as a basic hot restart
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should all be indented.

Comment thread test/integration/hotrestart_test.sh Outdated

# Parameterize IPv4 and IPv6 testing.
if [[ "${ENVOY_IP_TEST_VERSIONS}" == "v4only" ]] || [[ "${ENVOY_IP_TEST_VERSIONS}" == "all" ]] \
|| [[ -z "${ENVOY_IP_TEST_VERSIONS}" ]]; then
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It would make sense to have this as the first expression to shortcircuit the other testing.

@mattklein123 mattklein123 merged commit d803240 into envoyproxy:master Jun 6, 2017
@hennna hennna deleted the v6-hot-restart-test branch June 7, 2017 15:48
jpsim pushed a commit that referenced this pull request Nov 28, 2022
Description: given we have gotten no additional information from the code deleted in this PR, I am deleting to make readability better. This code was previously added to help investigate #1016 and #1017.
Risk Level: low
Testing: no-op in terms of functionality.

Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
Description: given we have gotten no additional information from the code deleted in this PR, I am deleting to make readability better. This code was previously added to help investigate #1016 and #1017.
Risk Level: low
Testing: no-op in terms of functionality.

Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: JP Simard <jp@jpsim.com>
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