Skip to content

Commit

Permalink
Merge pull request #7 from niulechuan/cov-badge
Browse files Browse the repository at this point in the history
Cov badge
  • Loading branch information
niulechuan authored Apr 7, 2022
2 parents a9062f9 + d368809 commit bf0cbf2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,4 @@ jobs:
with:
fetch-depth: 0
- name: e2e-test
env:
GOVC_USERNAME: ${{ secrets.GOVC_USERNAME }}
GOVC_PASSWORD: ${{ secrets.GOVC_PASSWORD }}
GOVC_URL: ${{ secrets.GOVC_URL }}
GOVC_DATACENTER: ${{ secrets.GOVC_DATACENTER }}
run: make e2e-test
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ clean:
docker rmi -f $(shell docker images -f dangling=true -qa)

unit-test:
bash test/unit-test.sh
go test -race -coverprofile=coverage.txt -covermode=atomic ./pkg/...
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov
# bash test/unit-test.sh

e2e-test:
bash test/e2e-test.sh
5 changes: 0 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,7 +13,6 @@ 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

set -e
for h in $hosts; do
if [[ `govc vm.info $h | grep poweredOn | wc -l` -eq 1 ]]; then
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/SmokeTest/lsVolume.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"time"
)

var _ = ginkgo.Describe("test localstorage volume ", ginkgo.Label("smokeTest"), func() {
var _ = ginkgo.Describe("test localstorage volume ", ginkgo.Label("smokeTest"), func() {

f := framework.NewDefaultFramework(apis.AddToScheme)
client := f.GetClient()
Expand Down

0 comments on commit bf0cbf2

Please sign in to comment.