Updated end to end test on vagrant images to reflect new client creation.
This commit is contained in:
parent
cb6100e690
commit
d27d8a4706
1 changed files with 3 additions and 5 deletions
|
@ -28,8 +28,10 @@ var r Realis
|
||||||
var thermosPayload []byte
|
var thermosPayload []byte
|
||||||
|
|
||||||
func TestMain(m *testing.M) {
|
func TestMain(m *testing.M) {
|
||||||
|
var err error
|
||||||
|
|
||||||
// New configuration to connect to Vagrant image
|
// 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 {
|
if err != nil {
|
||||||
fmt.Println("Please run vagrant box before running test suite")
|
fmt.Println("Please run vagrant box before running test suite")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
@ -41,10 +43,6 @@ func TestMain(m *testing.M) {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configured for vagrant
|
|
||||||
AddBasicAuth(&config, "aurora", "secret")
|
|
||||||
r = NewClient(config)
|
|
||||||
|
|
||||||
os.Exit(m.Run())
|
os.Exit(m.Run())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue