Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[WIP] Adding test coverage #9085

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

apagac
Copy link
Contributor

@apagac apagac commented Jul 17, 2019

Adding test coverage for BZs with test_coverage_flag.

Also removed test_osp_snapshot_buttons which is no longer relevant. Dev choose different approach.

@apagac apagac force-pushed the another_qe_coverage branch from 4137261 to a04cedf Compare August 30, 2019 07:56
@apagac apagac changed the title [WIP] Adding test coverage [RFR] Adding test coverage Aug 30, 2019
@dajoRH dajoRH removed the WIP label Aug 30, 2019
Copy link
Contributor

@john-dupuy john-dupuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test cases look good, just one comment about adding coverage=[<bug_id>] metadata

1. Snapshot not created; 'Required' displayed
2. Snapshot created successfully
Bugzilla:
1647916
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@apagac since you are putting in the BZ metadata, can you also add it to the top of the file?
@pytest.mark.meta(coverage=[<bug_id>])

Copy link
Contributor

@lina-is-here lina-is-here Aug 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and the same for other tests

@john-dupuy john-dupuy changed the title [RFR] Adding test coverage [WIPTEST] Adding test coverage Aug 30, 2019
@john-dupuy john-dupuy added the manual For things concerning manual test definitions label Aug 30, 2019

@pytest.mark.manual
@pytest.mark.provider([OpenStackProvider])
@test_requirements.snapshot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All tests in this module have the same requirement, so please put it for the whole module

pytestmark = [test_requirements.snapshot]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lina-nikiforova some have rbac and auth

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh but they are different files, please ignore above 🤦‍♂️



@pytest.mark.manual
@test_requirements.rbac
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here for the requirements, I think it's better to define at the module level

@pytest.mark.tier(2)
def test_create_higher_permission():
"""
Test creating a group with higher permission that the user currently has.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it the correct description? I don't see group creation in the test steps...



@pytest.mark.manual
@test_requirements.auth
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for the requirements as above

Copy link
Contributor

@lina-is-here lina-is-here left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, please look into the comments

@dajoRH
Copy link
Contributor

dajoRH commented Oct 9, 2019

Would you mind rebasing this Pull Request against latest master, please? :trollface:
CFME QE Bot

@dajoRH dajoRH changed the title [WIPTEST] Adding test coverage [WIP] Adding test coverage Oct 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lint-ok manual For things concerning manual test definitions needs-rebase WIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants