New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test BZ 1242534 #2724
Test BZ 1242534 #2724
Conversation
Depends on SatelliteQE/nailgun#193. |
In my opinion, it will be better to use new content view per each filter (use |
Could we have better name for our new class? Something not related to BZ ID as when defect get to |
ACK pending comments |
It seems these three test cases verify basic search functionality for content view filters. I would recommend something like
We are trying to get rid any references to BZ after defect is resolved. We have in plans to review code once a month to remove not actual
It is more correct from QA point of view, but it is not critical for sure |
That makes sense. I'll do that.
I see the benefit to making the test cases more independent. If there's an issue with making multiple content view filters that point to a single content view, then our tests will break! But that's not the case right now. And if there is, we can easily adjust the test suite. I'm trying to balance the desire for full test separation against the desire for speedy test runs. |
Sure. Thanks |
Listing a content view filter's rules succeeds when the content view filter is of type "rpm" or "package_group". It fails when the content view filter is of type "erratum". Test results without `@skip_if_bug_open` decorator: $ nosetests tests/foreman/api/test_contentviewfilter.py:SearchTestCase E.. ====================================================================== ERROR: @test: Search for an erratum content view filter's rules. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ichimonji10/code/robottelo/robottelo/common/decorators.py", line 372, in wrapper_func return func(*args, **kwargs) File "/home/ichimonji10/code/robottelo/tests/foreman/api/test_contentviewfilter.py", line 617, in test_search_erratum entities.ContentViewFilterRule(content_view_filter=cv_filter).search() File "/home/ichimonji10/code/nailgun/nailgun/entity_mixins.py", line 1243, in search results = self.search_json(fields, query)['results'] File "/home/ichimonji10/code/nailgun/nailgun/entity_mixins.py", line 1096, in search_json response.raise_for_status() File "/home/ichimonji10/.virtualenvs/robottelo2/lib/python2.7/site-packages/requests/models.py", line 851, in raise_for_status raise HTTPError(http_error_msg, response=self) HTTPError: 500 Server Error: Internal Server Error ---------------------------------------------------------------------- Ran 3 tests in 10.545s FAILED (errors=1) Test results with decorator applied: $ nosetests tests/foreman/api/test_contentviewfilter.py:SearchTestCase S.. ---------------------------------------------------------------------- Ran 3 tests in 6.881s OK (SKIP=1) See: https://bugzilla.redhat.com/show_bug.cgi?id=1242534#c5
The tests still act as expected:
|
ACK |
1 similar comment
ACK |
Listing a content view filter's rules succeeds when the content view filter is
of type "rpm" or "package_group". It fails when the content view filter is of
type "erratum".
Test results without
@skip_if_bug_open
decorator:Test results with decorator applied:
See: https://bugzilla.redhat.com/show_bug.cgi?id=1242534#c5