Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions hack/run-bdd-suite.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#! /usr/bin/sh
# Example: ./hack/run-bdd-suite.sh tests/bdd-smoke/suites/config/libvirt

if [ "$IS_CONTAINER" != "" ]; then
mkdir ~/.ssh
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCc4amSo5Z59mH4bUgZ4M8A1sURg+qUKkYjZ9+0fft5/OmSbe34Ge9gUrJ8UKNpmbC+W26v9qKX21NCYct1QOgIlVqyIjZUll0NfcJXToAd1o2GrItMlpQEpXfQGNOjZtWu1uyO187qbGMwnq8e8EH9R1IJZwTI6sOVnc8sSyzydQ==" > ~/.ssh/id_rsa.pub

TAGS=libvirt ./hack/build.sh
GOPATH_ORI=$GOPATH
export GOPATH=$GOPATH:/go/src/github.com/openshift/installer/tests/bdd-smoke/vendor
go build -o "bin/ginkgo" github.com/onsi/ginkgo/ginkgo
export GOPATH=$GOPATH_ORI
./bin/ginkgo "${@}"
else
podman run --rm \
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/openshift/origin-release:golang-1.10 \
./hack/run-bdd-suite.sh "${@}"
fi;
1 change: 1 addition & 0 deletions hack/shellcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if [ "$IS_CONTAINER" != "" ]; then
-path "${TOP_DIR}/vendor" -prune \
-o -path "${TOP_DIR}/.build" -prune \
-o -path "${TOP_DIR}/tests/smoke/vendor" -prune \
-o -path "${TOP_DIR}/tests/bdd-smoke/vendor" -prune \
-o -path "${TOP_DIR}/tests/smoke/.build" -prune \
-o -type f -name '*.sh' -exec shellcheck --format=gcc {} \+
else
Expand Down
170 changes: 170 additions & 0 deletions tests/bdd-smoke/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions tests/bdd-smoke/Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
branch = "master"
name = "github.com/Netflix/go-expect"

[[constraint]]
branch = "master"
name = "github.com/hinshun/vt10x"

[[constraint]]
name = "github.com/onsi/ginkgo"
version = "1.7.0"

[[constraint]]
name = "github.com/onsi/gomega"
version = "1.4.3"

[[constraint]]
name = "gopkg.in/yaml.v2"
version = "2.2.2"

[prune]
go-tests = true
unused-packages = true
15 changes: 15 additions & 0 deletions tests/bdd-smoke/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
BDD Tests
========

Required
--------
* podman

Test Suites
--------
*Configuration Tests*

Run the configuration level tests for libvirt (no cluster runnning required):
```
./hack/run-bdd-suite.sh tests/bdd-smoke/suites/config/libvirt
```
Loading