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

[WIP] FileShare E2E automation #1007

Open
wants to merge 3 commits into
base: development
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
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ before_install:
- sudo apt-get install -y librados-dev librbd-dev
- sudo apt-get install -y lvm2 tgt open-iscsi
- sudo docker pull p1c2u/openapi-spec-validator

- go get -v github.com/onsi/gomega
- go get -v github.com/onsi/ginkgo/ginkgo

matrix:
fast_finish: true
Expand All @@ -39,6 +40,11 @@ script:
- ./install/CI/coverage
- ./install/CI/test

after_failure:
- for v in /var/log/opensds/*.log ; do
echo $v logtail ======================== ; tail -100 $v ;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent

done

after_success:
- bash <(curl -s https://codecov.io/bash)
# Clean OpenSDS Controller built data
Expand Down
40 changes: 40 additions & 0 deletions test/e2e/fileshare_suit_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Copyright 2019 The OpenSDS Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// +build e2e

package e2e

import (
"fmt"
"testing"

"github.com/onsi/ginkgo"
"github.com/onsi/gomega"
)

//Function to run the Ginkgo Test
func TestFileShareIntegration(t *testing.T) {
gomega.RegisterFailHandler(ginkgo.Fail)

var _ = ginkgo.BeforeSuite(func() {
fmt.Println("Before Suite Execution")

})
ginkgo.AfterSuite(func() {
ginkgo.By("After Suite Execution....!")
})

ginkgo.RunSpecs(t, "File Share E2E Test Suite")
}
Loading