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

integration: disable tests with internet edge #2314

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 19 additions & 15 deletions integration/300_internet_edge_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,28 @@
# shellcheck disable=SC1091
. ./config.sh

start_suite "Test short lived connections from the Internet"
start_suite "Test short lived connections from the Internet [DISABLED]"

weave_on "$HOST1" launch
scope_on "$HOST1" launch
docker_on "$HOST1" run -d -p 80:80 --name nginx nginx

do_connections() {
while true; do
curl -s "http://$HOST1:80/" >/dev/null || true
sleep 1
done
}
do_connections &

wait_for_containers "$HOST1" 60 nginx "The Internet"

has_connection_by_id containers "$HOST1" "in-theinternet" "$(node_id containers "$HOST1" nginx)"

kill %do_connections
## Test disabled: it is currently flaky
## https://github.com/weaveworks/scope/issues/2308

# docker_on "$HOST1" run -d -p 80:80 --name nginx nginx
#
# do_connections() {
# while true; do
# curl -s "http://$HOST1:80/" >/dev/null || true
# sleep 1
# done
# }
# do_connections &
#
# wait_for_containers "$HOST1" 60 nginx "The Internet"
#
# has_connection_by_id containers "$HOST1" "in-theinternet" "$(node_id containers "$HOST1" nginx)"
#
# kill %do_connections

scope_end_suite
38 changes: 21 additions & 17 deletions integration/301_internet_edge_with_ebpf_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,30 @@
# shellcheck disable=SC1091
. ./config.sh

start_suite "Test short lived connections from the Internet"
start_suite "Test short lived connections from the Internet [DISABLED]"

weave_on "$HOST1" launch
scope_on "$HOST1" launch --probe.ebpf.connections=true
docker_on "$HOST1" run -d -p 80:80 --name nginx nginx

do_connections() {
while true; do
curl -s "http://$HOST1:80/" >/dev/null || true
sleep 1
done
}
do_connections &

wait_for_containers "$HOST1" 60 nginx "The Internet"

has_connection_by_id containers "$HOST1" "in-theinternet" "$(node_id containers "$HOST1" nginx)"

endpoints_have_ebpf "$HOST1"

kill %do_connections
## Test disabled: it is currently flaky
## https://github.com/weaveworks/scope/issues/2308

# docker_on "$HOST1" run -d -p 80:80 --name nginx nginx
#
# do_connections() {
# while true; do
# curl -s "http://$HOST1:80/" >/dev/null || true
# sleep 1
# done
# }
# do_connections &
#
# wait_for_containers "$HOST1" 60 nginx "The Internet"
#
# has_connection_by_id containers "$HOST1" "in-theinternet" "$(node_id containers "$HOST1" nginx)"
#
# endpoints_have_ebpf "$HOST1"
#
# kill %do_connections

scope_end_suite