'Service CRUD should return unauthorized without an X-Auth-Token.'

def test_service_crud_requires_auth(self):

    service_path = ('/v2.0/OS-KSADM/services/%s' % uuid.uuid4().hex)
    service_body = {'OS-KSADM:service': {'name': uuid.uuid4().hex, 'type': uuid.uuid4().hex}}
    r = self.admin_request(method='GET', path='/v2.0/OS-KSADM/services', expected_status=http_client.UNAUTHORIZED)
    self.assertValidErrorResponse(r)
    r = self.admin_request(method='POST', path='/v2.0/OS-KSADM/services', body=service_body, expected_status=http_client.UNAUTHORIZED)
    self.assertValidErrorResponse(r)
    r = self.admin_request(method='GET', path=service_path, expected_status=http_client.UNAUTHORIZED)
    self.assertValidErrorResponse(r)
    r = self.admin_request(method='DELETE', path=service_path, expected_status=http_client.UNAUTHORIZED)
    self.assertValidErrorResponse(r)
