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

Make the public umbrella chart test runnable and hook it up to the suite #122

Merged
merged 1 commit into from
Jun 24, 2020
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,26 @@ import (
"testing"
)

// OnosSuite is the onos-umbrella chart test suite
type OnosSuite struct {
// OnosUmbrellaSuite is the onos-umbrella chart test suite
type OnosUmbrellaSuite struct {
test.Suite
}

// TestInstall tests installing the onos-umbrella chart
func (s *OnosSuite) TestInstall(t *testing.T) {
func (s *OnosUmbrellaSuite) TestInstall(t *testing.T) {
atomix := helm.Chart("atomix-controller", "https://charts.atomix.io").
Release("onos-atomix").
Release("onos-umbrella-atomix").
Set("scope", "Namespace")
assert.NoError(t, atomix.Install(true))

raft := helm.Chart("raft-storage-controller", "https://charts.atomix.io").
Release("onos-raft").
Release("onos-umbrella-raft").
Set("scope", "Namespace")
assert.NoError(t, raft.Install(true))

onos := helm.Chart("onos").
Release("onos").
Set("global.store.controller", "onos-atomix-atomix-controller:5679").
onos := helm.Chart("onos-umbrella").
Release("onos-umbrella").
Set("global.store.controller", "onos-umbrella-atomix-atomix-controller:5679").
Set("import.onos-gui.enabled", false).
Set("import.onos-cli.enabled", false)
assert.NoError(t, onos.Install(true))
Expand Down
2 changes: 2 additions & 0 deletions test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ import (
"github.com/onosproject/helmit/pkg/test"
config "github.com/onosproject/onos-helm-charts/onos-config/tests"
topo "github.com/onosproject/onos-helm-charts/onos-topo/tests"
onosumbrella "github.com/onosproject/onos-helm-charts/onos-umbrella/tests"
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
)

func main() {
registry.RegisterTestSuite("onos-topo", &topo.ONOSTopoSuite{})
registry.RegisterTestSuite("onos-config", &config.ONOSConfigSuite{})
registry.RegisterTestSuite("onos-umbrella", &onosumbrella.OnosUmbrellaSuite{})
test.Main()
}