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

Commit

Permalink
Merge pull request #9000 from john-dupuy/add-bz-metadata-control
Browse files Browse the repository at this point in the history
[1LP][RFR][NOTEST] Add automates metadata for control FA
  • Loading branch information
mshriver authored Jun 27, 2019
2 parents f43d180 + 6daf1e0 commit 22a9a15
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cfme/tests/control/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def _cleanup():
@pytest.mark.provider(
[VMwareProvider, RHEVMProvider, OpenStackProvider, AzureProvider], scope="module"
)
@pytest.mark.meta(blockers=[BZ(1702018)])
@pytest.mark.meta(blockers=[BZ(1702018)], automates=[1702018])
def test_action_prevent_vm_retire(request, vm, vm_on, policy_for_testing):
"""This test sets the policy that prevents VM retiring.
Expand Down Expand Up @@ -360,6 +360,7 @@ def _fail_func():


@pytest.mark.provider([VMwareProvider], scope="module")
@pytest.mark.meta(automates=[1433084])
def test_action_prevent_ssa(request, appliance, configure_fleecing, vm, vm_on, policy_for_testing):
"""Tests preventing Smart State Analysis.
Expand Down Expand Up @@ -402,6 +403,7 @@ def _cleanup():


@pytest.mark.provider([VMwareProvider, RHEVMProvider], scope="module")
@pytest.mark.meta(automates=[1437910])
def test_action_prevent_host_ssa(request, appliance, host, host_policy):
"""Tests preventing Smart State Analysis on a host.
Expand Down
17 changes: 16 additions & 1 deletion cfme/tests/control/test_bugs.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ def test_scope_windows_registry_stuck(request, appliance, infra_provider):
casecomponent: Control
caseimportance: low
initialEstimate: 1/6h
Bugzilla:
1155284
"""
policy = appliance.collections.policies.create(
VMCompliancePolicy,
Expand Down Expand Up @@ -281,6 +284,9 @@ def test_invoke_custom_automation(request, appliance):
casecomponent: Control
caseimportance: medium
initialEstimate: 1/6h
Bugzilla:
1243357
"""
# The action is to have all possible fields filled, that way we can ensure it is good
action = appliance.collections.actions.create(
Expand Down Expand Up @@ -323,6 +329,9 @@ def test_check_compliance_history(request, virtualcenter_provider, vmware_vm, ap
assignee: jdupuy
initialEstimate: 1/4h
casecomponent: Control
Bugzilla:
1375093
"""
policy = appliance.collections.policies.create(
VMCompliancePolicy,
Expand All @@ -346,7 +355,7 @@ def test_check_compliance_history(request, virtualcenter_provider, vmware_vm, ap
vmware_vm.name)


@pytest.mark.meta(blockers=[BZ(1395965), BZ(1491576)])
@pytest.mark.meta(blockers=[BZ(1395965), BZ(1491576)], automates=[1395965])
def test_delete_all_actions_from_compliance_policy(request, appliance):
"""We should not allow a compliance policy to be saved
if there are no actions on the compliance event.
Expand All @@ -364,6 +373,10 @@ def test_delete_all_actions_from_compliance_policy(request, appliance):
caseimportance: medium
caseposneg: negative
initialEstimate: 1/12h
Bugzilla:
1395965
1491576
"""
policy = appliance.collections.policies.create(
VMCompliancePolicy, fauxfactory.gen_alphanumeric()
Expand Down Expand Up @@ -446,6 +459,7 @@ def test_alert_ram_reconfigured(hardware_reconfigured_alert):

@pytest.mark.tier(2)
@test_requirements.alert
@pytest.mark.meta(automates=[1658670, 1672698])
def test_alert_for_disk_usage(setup_disk_usage_alert):
"""
Bugzilla:
Expand Down Expand Up @@ -508,6 +522,7 @@ def _check_query():
@pytest.mark.parametrize(
"condition_class", CONDITIONS, ids=lambda condition_class: condition_class.__name__
)
@pytest.mark.meta(automates=[1683697])
def test_accordion_after_condition_creation(appliance, condition_class):
"""
Bugzilla:
Expand Down

0 comments on commit 22a9a15

Please sign in to comment.