-
Notifications
You must be signed in to change notification settings - Fork 6
/
lotto.go
46 lines (38 loc) · 1.19 KB
/
lotto.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package main
import (
"github.com/mnordsletten/lotto/cmd"
"github.com/sirupsen/logrus"
)
func main() {
logrus.SetFormatter(&logrus.TextFormatter{ForceColors: true})
/*
testConf := testFramework.TestConfig{
ID: "test1",
TestEnvironment: "microLB-env",
TestService: "microLB",
ClientCommand: "<stress-test-microlb>",
MonitorCommand: "<monitor-cmd>",
}
// 1. Set up test environment
env := &environment.Vcloud{}
env.SetUp(testConf.TestEnvironment)
// 2. Create starbase that connects to mothership
starbase, err := mothership.CreateStarbase()
if err != nil {
logrus.Errorf("Error creating starbase: %v", err)
}
testConf.Starbase = starbase
// Now everything is ready to start testing
// 3. Build test service and liveupdate starbase
uplink := "localhost:9090"
if err := mothership.LaunchService(starbase, testConf.TestService, uplink); err != nil {
logrus.Errorf("Error launching service: %v", err)
}
logrus.Debugf("Environment and service are now ready to begin")
// 4. Start test towards target
if err := testConf.TestLoop(env); err != nil {
logrus.Errorf("Error starting test loop: %v", err)
}
*/
cmd.RootCmd.Execute()
}