Skip to content

Commit

Permalink
updating server update test with expected body
Browse files Browse the repository at this point in the history
  • Loading branch information
bcwaldon committed Aug 15, 2011
1 parent c829a4d commit d4b5749
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stacktester/tests/test_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,10 @@ def test_update_server_name(self):
resp, body = self.os.nova.request('PUT', url, body=put_body)

self.assertEqual(resp.status, 200)
self.assertEqual(body, '')
data = json.loads(body)
self.assertEqual(data.keys(), ['server'])
self._assert_server_entity(data['server'])
self.assertEqual('updatedtestserver', data['server']['name'])

# Get Server information
resp, body = self.os.nova.request('GET', '/servers/%s' % server_id)
Expand Down

0 comments on commit d4b5749

Please sign in to comment.