Comment 0 for bug 1466405

Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :

When running the unittests I'm getting, this is also failing on gate:

======================================================================
FAIL: ironic.tests.api.test_acl.TestACL.test_authenticated
tags: worker-4
----------------------------------------------------------------------
pythonlogging:'': {{{
Context impl SQLiteImpl.
Will assume non-transactional DDL.
}}}

stderr: {{{
INFO [alembic.migration] Context impl SQLiteImpl.
INFO [alembic.migration] Will assume non-transactional DDL.
INFO [alembic.migration] Running stamp_revision -> 2fb93ffd2af1
/home/lucasagomes/Projects/ironic/.tox/venv/lib/python2.7/site-packages/pecan/__init__.py:125: RuntimeWarning: `static_root` is only used when `debug` is True, ignoring
  RuntimeWarning
}}}

stdout: {{{GET: /v1/nodes/1be26c0b-03f2-4d2e-ae87-c02d7f33c123 {}}}}

Traceback (most recent call last):
  File "ironic/tests/api/test_acl.py", line 62, in test_authenticated
    self.node_path, headers={'X-Auth-Token': utils.ADMIN_TOKEN})
  File "ironic/tests/api/test_acl.py", line 45, in get_json
    **param)
  File "ironic/tests/api/base.py", line 219, in get_json
    expect_errors=expect_errors)
  File "/home/lucasagomes/Projects/ironic/.tox/venv/lib/python2.7/site-packages/webtest/app.py", line 322, in get
    expect_errors=expect_errors)
  File "/home/lucasagomes/Projects/ironic/.tox/venv/lib/python2.7/site-packages/webtest/app.py", line 631, in do_request
    self._check_status(status, res)
  File "/home/lucasagomes/Projects/ironic/.tox/venv/lib/python2.7/site-packages/webtest/app.py", line 663, in _check_status
    res)
webtest.app.AppError: Bad response: 401 Unauthorized (not 200 OK or 3xx redirect for http://localhost/v1/nodes/1be26c0b-03f2-4d2e-ae87-c02d7f33c123)
Authentication required
======================================================================
FAIL: ironic.tests.api.test_acl.TestACL.test_non_admin
tags: worker-1
----------------------------------------------------------------------
pythonlogging:'': {{{
Context impl SQLiteImpl.
Will assume non-transactional DDL.
}}}

stderr: {{{
INFO [alembic.migration] Context impl SQLiteImpl.
INFO [alembic.migration] Will assume non-transactional DDL.
INFO [alembic.migration] Running stamp_revision -> 2fb93ffd2af1
/home/lucasagomes/Projects/ironic/.tox/venv/lib/python2.7/site-packages/pecan/__init__.py:125: RuntimeWarning: `static_root` is only used when `debug` is True, ignoring
  RuntimeWarning
}}}

stdout: {{{
GET: /v1/nodes/1be26c0b-03f2-4d2e-ae87-c02d7f33c123 {}
GOT:Response: 401 Unauthorized
Content-Type: text/html; charset=UTF-8
Www-Authenticate: Keystone uri='https://127.0.0.1:35357'
Authentication required
}}}

Traceback (most recent call last):
  File "ironic/tests/api/test_acl.py", line 72, in test_non_admin
    self.assertEqual(403, response.status_int)
  File "/home/lucasagomes/Projects/ironic/.tox/venv/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/home/lucasagomes/Projects/ironic/.tox/venv/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 403 != 401
======================================================================
FAIL: ironic.tests.api.test_acl.TestACL.test_non_admin_with_admin_header
tags: worker-5
----------------------------------------------------------------------
pythonlogging:'': {{{
Context impl SQLiteImpl.
Will assume non-transactional DDL.
}}}

stderr: {{{
INFO [alembic.migration] Context impl SQLiteImpl.
INFO [alembic.migration] Will assume non-transactional DDL.
INFO [alembic.migration] Running stamp_revision -> 2fb93ffd2af1
/home/lucasagomes/Projects/ironic/.tox/venv/lib/python2.7/site-packages/pecan/__init__.py:125: RuntimeWarning: `static_root` is only used when `debug` is True, ignoring
  RuntimeWarning
}}}

stdout: {{{
GET: /v1/nodes/1be26c0b-03f2-4d2e-ae87-c02d7f33c123 {}
GOT:Response: 401 Unauthorized
Content-Type: text/html; charset=UTF-8
Www-Authenticate: Keystone uri='https://127.0.0.1:35357'
Authentication required
}}}

Traceback (most recent call last):
  File "ironic/tests/api/test_acl.py", line 80, in test_non_admin_with_admin_header
    self.assertEqual(403, response.status_int)
  File "/home/lucasagomes/Projects/ironic/.tox/venv/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/home/lucasagomes/Projects/ironic/.tox/venv/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 403 != 401
Ran 2291 (-7) tests in 9.045s (-0.577s)
FAILED (id=456, failures=3 (+3), skips=15)