Skip to content

MetalLB E2E tests: Add logs path #1326

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion metallb/run_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
metallb_dir="$(dirname $(readlink -f $0))"
source ${metallb_dir}/metallb_common.sh

TESTS_REPORTS_PATH="${TESTS_REPORTS_PATH:-/logs/artifacts/}"

export METALLB_REPO=${METALLB_REPO:-https://github.com/metallb/metallb.git}
[[ -d /usr/local/go ]] && export PATH=${PATH}:/usr/local/go/bin

Expand All @@ -17,6 +19,8 @@ sudo firewall-cmd --zone=libvirt --add-port=179/tcp
sudo firewall-cmd --zone=libvirt --permanent --add-port=180/tcp
sudo firewall-cmd --zone=libvirt --add-port=180/tcp

mkdir -p "${TESTS_REPORTS_PATH}"

# need to skip L2 metrics test because the pod that's running the tests is not in the
# same subnet of the cluster nodes, so the arp request that's done in the test won't work.
SKIP="\"L2 metrics\""
Expand All @@ -42,4 +46,4 @@ export RUN_FRR_CONTAINER_ON_HOST_NETWORK=true
inv e2etest --kubeconfig=$(readlink -f ../../ocp/ostest/auth/kubeconfig) \
--service-pod-port=8080 --system-namespaces="metallb-system" --skip-docker \
--ipv4-service-range=192.168.10.0/24 --ipv6-service-range=fc00:f853:0ccd:e799::/124 \
--skip="${SKIP}"
--skip="${SKIP}" -e "${TESTS_REPORTS_PATH}"