Skip to content

Commit fec2073

Browse files
author
Shruthi-1MN
committed
end
1 parent 74f207d commit fec2073

4 files changed

Lines changed: 772 additions & 164 deletions

File tree

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ before_install:
2525
- sudo apt-get install -y build-essential gcc
2626
- sudo apt-get install -y librados-dev librbd-dev
2727
- sudo apt-get install -y lvm2 tgt open-iscsi
28+
- go get -v github.com/onsi/gomega
29+
- go get -v github.com/onsi/ginkgo/ginkgo
30+
- go get github.com/modocache/gover
31+
- go get -v -t ./...
32+
- export PATH=$PATH:$HOME/gopath/bin
2833

2934
matrix:
3035
fast_finish: true
@@ -61,6 +66,11 @@ jobs:
6166
- script: make osds_e2etest_build
6267
name: "e2e_test" # names the fifth Tests stage job
6368

69+
after_failure:
70+
- for v in /var/log/opensds/*.log ; do
71+
echo $v logtail ======================== ; tail -100 $v ;
72+
done
73+
6474
after_success:
6575
- bash <(curl -s https://codecov.io/bash)
6676
# Clean OpenSDS Controller built data

test/integration/fileshare_suit_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ import (
2020
"fmt"
2121
"testing"
2222

23-
. "github.com/onsi/ginkgo"
24-
. "github.com/onsi/gomega"
23+
"github.com/onsi/ginkgo"
24+
"github.com/onsi/gomega"
2525
)
2626

2727
//Function to run the Ginkgo Test
2828
func TestFileShareIntegration(t *testing.T) {
29-
RegisterFailHandler(Fail)
29+
gomega.RegisterFailHandler(ginkgo.Fail)
3030
//var UID string
31-
var _ = BeforeSuite(func() {
31+
var _ = ginkgo.BeforeSuite(func() {
3232
fmt.Println("Before Suite Execution")
3333

3434
})
35-
AfterSuite(func() {
36-
By("After Suite Execution....!")
35+
ginkgo.AfterSuite(func() {
36+
ginkgo.By("After Suite Execution....!")
3737
})
3838

39-
RunSpecs(t, "File Share Integration Test Suite")
39+
ginkgo.RunSpecs(t, "File Share Integration Test Suite")
4040
}

0 commit comments

Comments
 (0)