Comment 0 for bug 1515850

Revision history for this message
Eva Balycheva (ubershy) wrote :

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

It is because of this condition in setUp() is always true:
https://github.com/openstack/zaqar/blob/master/zaqar/tests/functional/wsgi/v1_1/test_queues.py#L324
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" just returns this public variable which is "None" in our case.
ConfigOpts doesn't even lookup for the config file option called "version".

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