2018-10-17 18:04:55 +00:00
|
|
|
package integration_tests
|
|
|
|
|
|
|
|
import (
|
2018-11-21 04:47:01 +00:00
|
|
|
log "github.com/sirupsen/logrus"
|
2018-10-17 18:04:55 +00:00
|
|
|
"testing"
|
|
|
|
|
|
|
|
. "github.com/onsi/ginkgo"
|
|
|
|
. "github.com/onsi/gomega"
|
2018-11-06 03:34:13 +00:00
|
|
|
"github.com/spf13/viper"
|
2018-10-15 20:04:17 +00:00
|
|
|
"io/ioutil"
|
2018-10-17 18:04:55 +00:00
|
|
|
)
|
|
|
|
|
2018-10-15 20:04:17 +00:00
|
|
|
var ipc string
|
|
|
|
|
2018-10-17 18:04:55 +00:00
|
|
|
func TestIntegrationTests(t *testing.T) {
|
|
|
|
RegisterFailHandler(Fail)
|
|
|
|
RunSpecs(t, "IntegrationTests Suite")
|
|
|
|
}
|
2018-10-15 20:04:17 +00:00
|
|
|
|
|
|
|
var _ = BeforeSuite(func() {
|
2018-11-06 03:34:13 +00:00
|
|
|
testConfig := viper.New()
|
2018-11-06 18:58:45 +00:00
|
|
|
testConfig.SetConfigName("staging")
|
2018-11-06 03:34:13 +00:00
|
|
|
testConfig.AddConfigPath("$GOPATH/src/github.com/vulcanize/vulcanizedb/environments/")
|
|
|
|
err := testConfig.ReadInConfig()
|
|
|
|
ipc = testConfig.GetString("client.ipcPath")
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
2018-10-15 20:04:17 +00:00
|
|
|
log.SetOutput(ioutil.Discard)
|
|
|
|
})
|