'Regression test for bug #1541691.
The current jsonschema validation spits a giant wall of regex
at you (about 500k characters). This is not useful to
determine why your request actually failed.
Ensure that once we fix this it doesn\'t regress.'

def test_name_validation(self):

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