InstanceTypes: arvados.InstanceTypeMap(map[string]arvados.InstanceType{
"tiny": arvados.InstanceType{
Name: "tiny",
- ProviderType: "m1.small",
+ ProviderType: "t2.micro",
VCPUs: 1,
RAM: 4000000000,
Scratch: 10000000000,
},
"tiny-with-extra-scratch": arvados.InstanceType{
Name: "tiny",
- ProviderType: "m1.small",
+ ProviderType: "t2.micro",
VCPUs: 1,
RAM: 4000000000,
Scratch: 10000000000,
},
"tiny-preemptible": arvados.InstanceType{
Name: "tiny",
- ProviderType: "m1.small",
+ ProviderType: "t2.micro",
VCPUs: 1,
RAM: 4000000000,
Scratch: 10000000000,
}
+func (*EC2InstanceSetSuite) TestTagInstances(c *check.C) {
+ ap, _, _, err := GetInstanceSet()
+ if err != nil {
+ c.Fatal("Error making provider", err)
+ }
+
+ l, err := ap.Instances(nil)
+ c.Assert(err, check.IsNil)
+
+ for _, i := range l {
+ tg := i.Tags()
+ tg["TestTag2"] = "123 test tag 2"
+ c.Check(i.SetTags(tg), check.IsNil)
+ }
+}
+
func (*EC2InstanceSetSuite) TestListInstances(c *check.C) {
ap, _, _, err := GetInstanceSet()
if err != nil {