~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/tests/api/test_auth.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        response = self.request.get_response(self.middleware)
59
59
        self.assertEqual(response.status, '200 OK')
60
60
        self.assertEqual(self.context.user_id, 'testuserid')
 
61
 
 
62
    def test_invalid_service_catalog(self):
 
63
        self.request.headers['X_USER'] = 'testuser'
 
64
        self.request.headers['X_SERVICE_CATALOG'] = "bad json"
 
65
        response = self.request.get_response(self.middleware)
 
66
        self.assertEqual(response.status, '500 Internal Server Error')