more human readable json file tests
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
3a22405468
commit
c0c2533aaa
|
@ -19,7 +19,7 @@ message Droplet {
|
||||||
string default_state = 11;
|
string default_state = 11;
|
||||||
string preferred_hypervisor = 12;
|
string preferred_hypervisor = 12;
|
||||||
google.protobuf.Any testany = 13;
|
google.protobuf.Any testany = 13;
|
||||||
StorageInfo testsi = 14;
|
StorageInfo humantest = 14;
|
||||||
|
|
||||||
message Network {
|
message Network {
|
||||||
string mac = 1;
|
string mac = 1;
|
||||||
|
|
11
helpers.go
11
helpers.go
|
@ -103,18 +103,13 @@ func (c *Cluster) AddDroplet(hostname string, cpus int, mem int) *Droplet {
|
||||||
d.Cpus = 1
|
d.Cpus = 1
|
||||||
}
|
}
|
||||||
d.Memory = SetGB(mem * 32)
|
d.Memory = SetGB(mem * 32)
|
||||||
if d.Testsi == nil {
|
if d.Humantest == nil {
|
||||||
fmt.Println("Testsi is NIL")
|
|
||||||
fmt.Println("Testsi is NIL")
|
|
||||||
fmt.Println("Testsi is NIL")
|
|
||||||
fmt.Println("Testsi is NIL")
|
|
||||||
var newInfo StorageInfo
|
var newInfo StorageInfo
|
||||||
newInfo = StorageInfo{Capacity: 64}
|
newInfo = StorageInfo{Capacity: 64}
|
||||||
d.Testsi = &newInfo
|
d.Humantest = &newInfo
|
||||||
} else {
|
} else {
|
||||||
d.Testsi.Capacity = SetGB(mem * 32)
|
d.Humantest.Capacity = SetGB(mem * 32)
|
||||||
}
|
}
|
||||||
// d.Testsi = StorageInfo{Capacity: 64}
|
|
||||||
c.Droplets = append(c.Droplets, d)
|
c.Droplets = append(c.Droplets, d)
|
||||||
return d
|
return d
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue