Skip to content

exclude boot params test from v2.0.0

Salaheddine Hamadi edited this page Aug 10, 2021 · 1 revision

start container in interactive mode

in order to do that, update the script script/run-container.sh

set -x
${TNF_CONTAINER_CLIENT} run -it --rm $DNS_ARG \
	--network $CONTAINER_NETWORK_MODE \
	${container_tnf_kubeconfig_volumes_cmd_args[@]} \
	$CONFIG_VOLUME_MOUNT_ARG \
	-v $OUTPUT_LOC:$CONTAINER_TNF_DIR/claim:Z \
	-e KUBECONFIG=$CONTAINER_TNF_KUBECONFIG \
	-e TNF_MINIKUBE_ONLY=$CONTAINER_TNF_MINIKUBE_ONLY \
	-e TNF_NON_INTRUSIVE_ONLY=$CONTAINER_TNF_NON_INTRUSIVE_ONLY \
	-e TNF_ENABLE_CONFIG_AUTODISCOVER=$CONTAINER_TNF_ENABLE_CONFIG_AUTODISCOVER \
	-e PATH=/usr/bin:/usr/local/oc/bin \
	--entrypoint /bin/bash --interactive \
        $TNF_IMAGE

then, you can run the script

./run-tnf-container.sh -t ~/tnf/config -k ~/.kube/config -o /tmp/output

update the script to skip boot params test

withing the container, modify the script ./run-cnf-suites.sh using vi

#vi ./run-cnf-suites.sh

in order to skip the test, we can pass the regular expression to the binary (this is the last line in the script)

cd ./test-network-function && ./test-network-function.test -ginkgo.skip="boot params" -ginkgo.focus="$FOCUS" ${GINKGO_ARGS}

run the test

#./rn-cnf-suites.sh generic diagnostic