Tests from zaqar.tests.functional.wsgi.v1_1.test_queues.TestQueueNonExisting are always skipped(and fail)

Bug #1515850 reported by Eva Balycheva on 2015-11-13
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Eva Balycheva

Bug Description

Related bug: https://bugs.launchpad.net/zaqar/+bug/1539168

Currently all tests are skipped in zaqar.tests.functional.wsgi.v1_1.test_queues.TestQueueNonExisting class.
Log example of one of the tests execution: http://paste.openstack.org/show/RqLlOyjgdw8fciVT7LlJ/

It is because of this condition in setUp() is always true:
And so it skips the test.
Note: "self.cfg" is an instance of oslo_config.ConfigOpts class with "zaqar/tests/etc/functional-tests.conf" config file parsed.
For me it seems like this code("self.cfg.version") was intended to get "version" option value from "functional-tests.conf" config file.
But "functional-tests.conf" doesn't contain this option.

You may ask, why in this case "oslo_config.cfg.NoSuchOptError" exception is not raised?
Well, it is because ConfigOpts object has public variable "version".
And "self.cfg.version" instead of lookup for config file option "version", just returns ConfigOpts's public variable. Which is None in our case.

When the condition is removed, 5 of 6 tests in TestQueueNonExisting class fail: http://paste.openstack.org/show/9LzaJdwZUaMznS99wmVW/
Either these tests need to be fixed or Zaqar.

Possible solution:
Get rid of the condition in setUp() which skips the tests.
Then fix tests/Zaqar.

Eva Balycheva (ubershy) on 2015-11-13
Changed in zaqar:
assignee: nobody → Eva Balycheva (ubershy)
description: updated
Eva Balycheva (ubershy) on 2015-11-13
description: updated
Eva Balycheva (ubershy) on 2015-11-13
description: updated
Eva Balycheva (ubershy) on 2016-01-28
description: updated
Eva Balycheva (ubershy) on 2016-01-28
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers