Comment 0 for bug 1784714

Revision history for this message
Corey Bryant (corey.bryant) wrote :

======================================================================
FAIL: glareclient.tests.unit.v1.test_artifacts.TestController.test_list_legacy
glareclient.tests.unit.v1.test_artifacts.TestController.test_list_legacy
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/glareclient/v1/artifacts.py", line 174, in paginate
    raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/glareclient/tests/unit/v1/test_artifacts.py", line 80, in test_list_legacy
    data = list(self.c.list(type_name='test-type', limit=10, page_size=3))
  File "/<<PKGBUILDDIR>>/glareclient/v1/artifacts.py", line 201, in list
    for artifact in paginate(url, page_size, limit):
RuntimeError: generator raised StopIteration

======================================================================
FAIL: glareclient.tests.unit.v1.test_artifacts.TestController.test_update
glareclient.tests.unit.v1.test_artifacts.TestController.test_update
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/glareclient/tests/unit/v1/test_artifacts.py", line 63, in test_update
    '/artifacts/checked_name/test-id', **patch_kwargs)
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 948, in assert_called_once_with
    return self.assert_called_with(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 937, in assert_called_with
    six.raise_from(AssertionError(_error_message(cause)), cause)
  File "<string>", line 3, in raise_from
AssertionError: Expected call: patch('/artifacts/checked_name/test-id', headers={'Content-Type': 'application/json-patch+json'}, json=[{'path': '/remove1', 'value': None, 'op': 'replace'}, {'path': '/remove2', 'value': None, 'op': 'replace'}, {'path': '/update2'
, 'value': 2, 'op': 'add'}, {'path': '/update1', 'value': 1, 'op': 'add'}])
Actual call: patch('/artifacts/checked_name/test-id', headers={'Content-Type': 'application/json-patch+json'}, json=[{'op': 'replace', 'path': '/remove1', 'value': None}, {'op': 'replace', 'path': '/remove2', 'value': None}, {'op': 'add', 'path': '/update1', 'va
lue': 1}, {'op': 'add', 'path': '/update2', 'value': 2}])

======================================================================
FAIL: glareclient.tests.unit.v1.test_artifacts.TestController.test_list
glareclient.tests.unit.v1.test_artifacts.TestController.test_list
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/glareclient/v1/artifacts.py", line 174, in paginate
    raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/glareclient/tests/unit/v1/test_artifacts.py", line 98, in test_list
    data = list(self.c.list(type_name='test-type', limit=10, page_size=3))
  File "/<<PKGBUILDDIR>>/glareclient/v1/artifacts.py", line 201, in list
    for artifact in paginate(url, page_size, limit):
RuntimeError: generator raised StopIteration