Closed vijay8451 closed 4 years ago
@rochacbruno to me more looks a bug ..
@vijay8451 I am not able to reproduce the problem, this is expected that it fails if was not possible to talk to BZ api, we need to improve the error message.
I would like to reproduce it, do you have more info? do you have api_key set?
@rochacbruno yes api_key
exists and correct as well...
tests/foreman/cli/test_repository.py::RepositoryTestCase::test_negative_synchronize_docker_repo_with_mix_valid_invalid_tags
retry
functionality as well if API does not give at first time as that would help to avoid false positive issues ? what do you think ?This happens when is_open
function is used outside of test, for example in setUpClass
. It happens because the BZ status is only cached when:
f364bd912 robottelo/helpers.py (Bruno Rocha 2019-10-29 17:06:15 -0300 899) if 'is_open(' in source:
@lhellebr thanks now I got it.
This was supposed to force an API call to bugzilla on deman, for example if I call is_open('BZ:123')
but BZ is not yet fetched, then an API call is fired on-demand.
I am taking a look on why this is not happening.
@rochacbruno thanks , same fix also requires to be cherry-pick for 6.6.z branch as well.
KeyError: 'status' if bz['status'] in OPEN_STATUSES: