Updated end to end test on vagrant images to reflect new client creation.

This commit is contained in:
Renan DelValle 2017-03-23 20:44:45 -04:00
parent cb6100e690
commit d27d8a4706

View file

@ -28,8 +28,10 @@ var r Realis
var thermosPayload []byte
func TestMain(m *testing.M) {
var err error
// New configuration to connect to Vagrant image
config, err := NewDefaultConfig("http://192.168.33.7:8081",10000)
r, err = NewDefaultClientUsingUrl("http://192.168.33.7:8081","aurora", "secret")
if err != nil {
fmt.Println("Please run vagrant box before running test suite")
os.Exit(1)
@ -41,10 +43,6 @@ func TestMain(m *testing.M) {
os.Exit(1)
}
// Configured for vagrant
AddBasicAuth(&config, "aurora", "secret")
r = NewClient(config)
os.Exit(m.Run())
}