Skip to content

Commit

Permalink
Less verbose end-to-end test
Browse files Browse the repository at this point in the history
  • Loading branch information
mafik committed Jun 5, 2024
1 parent 2716157 commit a8c8703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def test_e2e():
sys.exit(1)
CLIENT_IP = subprocess.check_output("ip netns exec ns0 ip route get 1 | awk '{print $(NF-2);exit}'", shell=True).decode().strip()
TEST_DOMAIN = 'www.google.com'
CURL_EXAMPLE_STATUS = subprocess.call(['ip', 'netns', 'exec', 'ns0', 'curl', '-v', '--no-progress-meter', '--connect-timeout', '5', '--max-time', '10', TEST_DOMAIN])
CURL_EXAMPLE_STATUS = subprocess.call(['ip', 'netns', 'exec', 'ns0', 'curl', '-v', '--no-progress-meter', '--connect-timeout', '5', '--max-time', '10', TEST_DOMAIN], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
CURL_1337 = subprocess.check_output(['ip', 'netns', 'exec', 'ns0', 'curl', '-s', 'http://' + GATEKEEPER_IP + ':1337']).decode().strip()
NFT_RULES = subprocess.check_output(['nft', 'list', 'ruleset']).decode().strip()

Expand Down

0 comments on commit a8c8703

Please sign in to comment.