[functional] Fix wrong message in server description test
By unknown reasons(at least for me), output of `nova update` command for description field started fail. Test name: TestServersDescription.test_update_with_description_longer_than_255_symbols The error message doesn't include new line at the start of message anymore. Also, I don't know why new line was there in the past. The main behavior and error message are not changed, so let's remove '\n' from assertation and unblock gates. Change-Id: I8442fe837985600250ccdf0d1398424f1fca2185
This commit is contained in:
parent
d6ca9e2d74
commit
431e3e95e4
@ -125,7 +125,7 @@ class TestServersDescription(base.ClientTestBase):
|
||||
for i in range(256))
|
||||
output = self.nova("update %s --description '%s'" % (server.id, descr),
|
||||
fail_ok=True, merge_stderr=True)
|
||||
self.assertIn("\nERROR (BadRequest): Invalid input for field/attribute"
|
||||
self.assertIn("ERROR (BadRequest): Invalid input for field/attribute"
|
||||
" description. Value: %s. u\'%s\' is too long (HTTP 400)"
|
||||
% (descr, descr), output)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user