Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiobrz committed Jul 4, 2023
1 parent 8328cd2 commit bdf275f
Showing 1 changed file with 44 additions and 25 deletions.
69 changes: 44 additions & 25 deletions .github/workflows/kubernetes-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,35 +108,54 @@ jobs:
# else
#
# echo "No $NET_MANAGER_CONF_DIR"
#
# export RESOLVE_CONF_DIR=/etc/resolvconf/resolv.conf.d
# export RESOLVE_CONF_PATH=$RESOLVE_CONF_DIR/base
#
# sudo ls -la $RESOLVE_CONF_DIR
#
# if [[ -d "$RESOLVE_CONF_DIR" ]]
# then
#
# if [ -f "$RESOLVE_CONF_PATH" ]; then
# sudo cp $RESOLVE_CONF_PATH $RESOLVE_CONF_PATH.bak
# fi
#
# sudo cat >> $RESOLVE_CONF_PATH <<EOL
# search test
# nameserver $( minikube ip )
# timeout 5
#
# EOL
#
# sudo resolvconf -u
# sudo systemctl disable --now resolvconf.service
#
# else
# echo "No $RESOLVE_CONF_DIR"
# exit 1
# fi
# fi
#
export RESOLVE_CONF_DIR=/etc/resolvconf/resolv.conf.d
export RESOLVE_CONF_PATH=$RESOLVE_CONF_DIR/base
export HOSTS_DIR=/etc
export HOSTS_PATH=$HOSTS_DIR/hosts
sudo ls -la $HOSTS_DIR

if [ -f "$HOSTS_PATH" ]; then
sudo cat $HOSTS_PATH
sudo cp $HOSTS_PATH $HOSTS_PATH.bak
fi

sudo cat $HOSTS_PATH >> hosts.tmp
cat >> hosts.tmp <<EOL
hyperfoil $( minikube ip )

sudo ls -la $RESOLVE_CONF_DIR
EOL

if [[ -d "$RESOLVE_CONF_DIR" ]]
then
if [ -f "$RESOLVE_CONF_PATH" ]; then
sudo cp $RESOLVE_CONF_PATH $RESOLVE_CONF_PATH.bak
fi
sudo cat >> $RESOLVE_CONF_PATH <<EOL
search test
nameserver $( minikube ip )
timeout 5
sudo cp hosts.tmp $HOSTS_PATH

EOL
sudo resolvconf -u
sudo systemctl disable --now resolvconf.service
else
echo "No $RESOLVE_CONF_DIR"
exit 1
fi
# fi
#
mkdir local-repo
mvn clean install -Dmaven.repo.local=./local-repo -DskipTests
mvn test -Dmaven.repo.local=./local-repo -pl testsuite/ -Pts.k8s \
Expand Down

0 comments on commit bdf275f

Please sign in to comment.