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

Test1 #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- name: unit-test
run: make unit-test
pull_request-e2e-test:
runs-on: ["self-hosted"]
# runs-on: ["self-hosted"]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
8 changes: 3 additions & 5 deletions test/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
# simple scripts mng machine
# link hosts
export GOVC_INSECURE=1
export GOVC_USERNAME="[email protected]"
export GOVC_PASSWORD="rcZa9FY6EiwnYk8!"
export GOVC_URL="https://192.168.1.136:443"
export GOVC_DATACENTER="DaoCloud-NDX-Fusion"
export GOVC_RESOURCE_POOL="e2e"
export hosts="fupan-e2e-k8s-master fupan-e2e-k8s-node1 fupan-e2e-k8s-node2"
export snapshot="e2etest"
Expand All @@ -17,6 +13,8 @@ export snapshot="e2etest"
# govc find . -type m -runtime.powerState poweredOn
# govc find . -type m -runtime.powerState poweredOn | xargs govc vm.info
# govc vm.info $hosts
echo "output username"
echo ${GOVC_USERNAME}

set -e
for h in $hosts; do
Expand All @@ -38,4 +36,4 @@ for i in `seq 1 15`; do
sleep 6s
done
git clone https://github.com/hwameistor/helm-charts.git test/helm-charts
ginkgo --fail-fast --label-filter="smokeTest" test/e2e
ginkgo --fail-fast --label-filter="smokeTest" test/e2e