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

33 lines
444 B
Go

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