'Regression test for bug #1522536.
Before fixing this bug, getting a numeric id caused a 500
error because it treated the numeric value as the db index,
fetched the server, but then processing of extensions blew up.
Since we have fixed this bug it returns a 404, which is
expected. In future a 400 might be more appropriate.'

def test_id_overlap(self):

    server = dict(name='server1', imageRef=self.image_id, flavorRef=self.flavor_id)
    self.api.post_server({'server': server})
    self.assertRaises(client.OpenStackApiNotFoundException, self.api.get_server, 1)
