'Regression test for bug #1558866.
Glance allows you to provide any architecture value for image meta
properties but nova validates the image metadata against the
nova.compute.arch.ALL values during the conversion to the ImageMeta
object. This test ensures we get a 400 back in that case rather than
a 500.'

def test_boot_server_with_invalid_image_meta(self):

    server = dict(name='server1', imageRef=self.image_id, flavorRef=self.flavor_id)
    ex = self.assertRaises(api_client.OpenStackApiException, self.api.post_server, {'server': server})
    self.assertEqual(400, ex.response.status_code)
