mirror of https://github.com/k3s-io/k3s
Cleanup init and run_test scripts
Signed-off-by: Derek Nola <derek.nola@suse.com>pull/6131/head
parent
d51da881c8
commit
551b2c3cea
|
@ -11,9 +11,11 @@ echo 'Installing jq'
|
||||||
sudo apt-get -y install jq
|
sudo apt-get -y install jq
|
||||||
|
|
||||||
echo 'Installing Go'
|
echo 'Installing Go'
|
||||||
curl -L https://dl.google.com/go/go1.16.10.linux-amd64.tar.gz | tar xz
|
GO_VERSION=1.19.1
|
||||||
sudo mv go /usr/local
|
wget --quiet https://dl.google.com/go/go$GO_VERSION.linux-amd64.tar.gz
|
||||||
/usr/local/go/bin/go version
|
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go$GO_VERSION.linux-amd64.tar.gz
|
||||||
|
rm go$GO_VERSION.linux-amd64.tar.gz
|
||||||
|
echo
|
||||||
go version
|
go version
|
||||||
|
|
||||||
echo 'Installing Virtualbox'
|
echo 'Installing Virtualbox'
|
||||||
|
@ -29,7 +31,8 @@ echo 'Installing vagrant'
|
||||||
sudo apt-get -y install -f unzip
|
sudo apt-get -y install -f unzip
|
||||||
curl -O https://releases.hashicorp.com/vagrant/2.2.19/vagrant_2.2.19_linux_amd64.zip
|
curl -O https://releases.hashicorp.com/vagrant/2.2.19/vagrant_2.2.19_linux_amd64.zip
|
||||||
unzip vagrant_2.2.19_linux_amd64.zip
|
unzip vagrant_2.2.19_linux_amd64.zip
|
||||||
sudo cp vagrant /usr/local/bin/
|
sudo mv vagrant /usr/local/bin/
|
||||||
|
rm vagrant_2.2.19_linux_amd64.zip
|
||||||
vagrant --version
|
vagrant --version
|
||||||
sudo apt-get -y install libarchive-tools
|
sudo apt-get -y install libarchive-tools
|
||||||
vagrant plugin install vagrant-k3s
|
vagrant plugin install vagrant-k3s
|
||||||
|
|
|
@ -12,9 +12,7 @@ eval openvpn --daemon --config external.ovpn &>/dev/null &
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
ssh -i "$1" -o "StrictHostKeyChecking no" $2@$3 'cd k3s && git pull --rebase origin master'
|
ssh -i "$1" -o "StrictHostKeyChecking no" $2@$3 'cd k3s && git pull --rebase origin master'
|
||||||
ssh -i "$1" -o "StrictHostKeyChecking no" $2@$3 '/usr/local/go/bin/go get github.com/onsi/ginkgo/v2'
|
ssh -i "$1" -o "StrictHostKeyChecking no" $2@$3 'cd k3s && go mod tidy'
|
||||||
ssh -i "$1" -o "StrictHostKeyChecking no" $2@$3 '/usr/local/go/bin/go get github.com/onsi/gomega'
|
|
||||||
ssh -i "$1" -o "StrictHostKeyChecking no" $2@$3 '/usr/local/go/bin/go get github.com/k3s-io/k3s/tests/e2e'
|
|
||||||
|
|
||||||
echo 'RUNNING CLUSTER VALIDATION TEST'
|
echo 'RUNNING CLUSTER VALIDATION TEST'
|
||||||
ssh -i "$1" -o "StrictHostKeyChecking no" $2@$3 'cd k3s/tests/e2e/validatecluster && vagrant destroy -f'
|
ssh -i "$1" -o "StrictHostKeyChecking no" $2@$3 'cd k3s/tests/e2e/validatecluster && vagrant destroy -f'
|
||||||
|
|
Loading…
Reference in New Issue