automation-tests/common/pkg/config/config_suite_test.go

33 lines
411 B
Go

package config
import (
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
func TestConfig(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Config Suite")
}
const (
invalidPath = "/wrong"
)
var (
sut *Config
)
func beforeEach() {
sut = defaultConfig()
}
func defaultConfig() *Config {
c, err := DefaultConfig()
Expect(err).To(BeNil())
Expect(c).NotTo(BeNil())
return c
}