Skip to content

Instantly share code, notes, and snippets.

@dLobatog
Created July 8, 2019 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dLobatog/2545d6aa0156a80cb9127e5d2be18662 to your computer and use it in GitHub Desktop.
Save dLobatog/2545d6aa0156a80cb9127e5d2be18662 to your computer and use it in GitHub Desktop.
dlobatog  lenovolobato  ⋯  workspace  insights  iqe_venv  ENV_FOR_DYNACONF=ci DYNACONF_COMPLIANCE={reliability_test="{num_uploads=3,concurrency_limit=35}"} iqe tests plugin compliance -s -k test_compliance_reliability_async
Plugin path: /home/dlobatog/workspace/insights/iqe_venv/lib/python3.6/site-packages/iqe_compliance
============================================================================================================================= test session starts ==============================================================================================================================
platform linux -- Python 3.6.1, pytest-4.4.1, py-1.8.0, pluggy-0.9.0 -- /home/dlobatog/workspace/insights/iqe_venv/bin/python3.6
cachedir: .pytest_cache
metadata: {'Python': '3.6.1', 'Platform': 'Linux-5.1.15-300.fc30.x86_64-x86_64-with-fedora-30-Thirty', 'Packages': {'pytest': '4.4.1', 'py': '1.8.0', 'pluggy': '0.9.0'}, 'Plugins': {'report-parameters': '0.2', 'polarion-collect': '0.13', 'metadata': '1.8.0', 'html': '1.20.0', 'cov': '2.6.1', 'iqe-upload-plugin': '1.0.0', 'iqe-remediations-plugin': '0.0.3', 'iqe-red-hat-internal-envs-plugin': '0.6.14', 'iqe-platform-ui-plugin': '0.7.1', 'iqe-integration-tests': '0.9.35', 'iqe-host-inventory-plugin': '0.1.7', 'iqe-compliance-plugin': '0.0.47', 'iqe-advisor-plugin': '1.1.9', 'devpi-server': '4.8.1'}}
Default Appliance hostname: ci.cloud.paas.psi.redhat.com
Default Appliance path: /
rootdir: /home/dlobatog/workspace/insights/iqe_venv, testpaths: /home/dlobatog/workspace/insights/iqe_venv/lib/python3.6/site-packages/iqe_compliance
plugins: report-parameters-0.2, polarion-collect-0.13, metadata-1.8.0, html-1.20.0, cov-2.6.1, iqe-upload-plugin-1.0.0, iqe-remediations-plugin-0.0.3, iqe-red-hat-internal-envs-plugin-0.6.14, iqe-platform-ui-plugin-0.7.1, iqe-integration-tests-0.9.35, iqe-host-inventory-plugin-0.1.7, iqe-compliance-plugin-0.0.47, iqe-advisor-plugin-1.1.9, devpi-server-4.8.1
collected 85 items / 84 deselected / 1 selected
lib/python3.6/site-packages/iqe_compliance/tests/test_reliability.py::test_compliance_reliability_async
-------------------------------------------------------------------------------------------------------------------------------- live log setup --------------------------------------------------------------------------------------------------------------------------------
hosts.py 10 INFO Deleting all hosts
ERROR
==================================================================================================================================== ERRORS ====================================================================================================================================
_____________________________________________________________________________________________________________ ERROR at setup of test_compliance_reliability_async ______________________________________________________________________________________________________________
application = <iqe.base.application.Application object at 0x7f1f4df08f60>, delete_scheduler = <function _scheduler at 0x7f1f4ef07620>, event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
@pytest.fixture
def delete_hosts(application, delete_scheduler, event_loop):
> _delete_hosts(application, delete_scheduler, event_loop)
lib/python3.6/site-packages/iqe_compliance/fixtures/hosts.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
lib/python3.6/site-packages/iqe_compliance/fixtures/hosts.py:11: in _delete_hosts
for chunk in chunker(application.collections.hosts.ids, 50):
lib/python3.6/site-packages/iqe_compliance/systems.py:100: in ids
return [system.id for system in self.all]
lib/python3.6/site-packages/iqe_compliance/systems.py:95: in all
r = self.parent.application.compliance.session.get(hosts_address).json()
lib/python3.6/site-packages/requests/models.py:897: in json
return complexjson.loads(self.text, **kwargs)
../../../.anaconda3/lib/python3.6/json/__init__.py:354: in loads
return _default_decoder.decode(s)
../../../.anaconda3/lib/python3.6/json/decoder.py:339: in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <json.decoder.JSONDecoder object at 0x7f1f57210a90>, s = '', idx = 0
def raw_decode(self, s, idx=0):
"""Decode a JSON document from ``s`` (a ``str`` beginning with
a JSON document) and return a 2-tuple of the Python
representation and the index in ``s`` where the document ended.
This can be used to decode a JSON document from a string that may
have extraneous data at the end.
"""
try:
obj, end = self.scan_once(s, idx)
except StopIteration as err:
> raise JSONDecodeError("Expecting value", s, err.value) from None
E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
../../../.anaconda3/lib/python3.6/json/decoder.py:357: JSONDecodeError
------------------------------------------------------------------------------------------------------------------------------ Captured log setup ------------------------------------------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment