~fwereade/juju-core/manifest-deployer

« back to all changes in this revision

Viewing changes to environs/instances/instancetype_test.go

[r=wallyworld] Properly implement SupportedArchitectures()

Query the simplestreams image metadata to extract all the
architectures for the images defined for the environment's
region. These are the architectures we are intersted in.

Also refactor the azure tests to clean them up.

https://codereview.appspot.com/78030045/

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
                Mem:      23552,
91
91
                Cost:     1300,
92
92
                RootDisk: 32768,
93
 
                VType:    &hvm,
 
93
                VirtType: &hvm,
94
94
        }, {
95
95
                Name:     "cc2.8xlarge",
96
96
                Arches:   []string{"amd64"},
99
99
                Mem:      61952,
100
100
                Cost:     2400,
101
101
                RootDisk: 131072,
102
 
                VType:    &hvm,
 
102
                VirtType: &hvm,
103
103
        },
104
104
}
105
105