Skip to content

Commit

Permalink
removed wotfix-skipped test (#12280)
Browse files Browse the repository at this point in the history
  • Loading branch information
pondrejk authored Aug 21, 2023
1 parent d3896bc commit eef7524
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions tests/foreman/ui/test_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from fauxfactory import gen_string
from nailgun import entities

from robottelo.constants import ANY_CONTEXT
from robottelo.constants import ENVIRONMENT


Expand Down Expand Up @@ -112,7 +111,6 @@ def test_positive_audit_comment(session, module_org):
assert values['comment'] == audit_comment


@pytest.mark.skip_if_open("BZ:2222890")
@pytest.mark.tier2
def test_positive_update_event(session, module_org):
"""When existing content view is updated, corresponding audit entry appear
Expand Down Expand Up @@ -202,47 +200,3 @@ def test_positive_add_event(session, module_org):
assert values['action_summary'][0]['column0'] == 'Added {}/{} to {}'.format(
ENVIRONMENT, cv.name, cv.name
)


@pytest.mark.skip_if_open("BZ:1701118")
@pytest.mark.skip_if_open("BZ:1701132")
@pytest.mark.tier2
def test_positive_create_role_filter(session, module_org, target_sat):
"""Update a role with new filter and check that corresponding event
appeared in the audit log
:id: 74679c0d-7ef1-4ab1-8282-9377c6cabb9f
:customerscenario: true
:expectedresults: audit log has an entry for a new filter that was
added to the role
:BZ: 1425977, 1701118, 1701132
:CaseAutomation: Automated
:CaseLevel: Integration
:CaseImportance: Medium
"""
role = entities.Role(organization=[module_org]).create()
with session:
session.organization.select(org_name=ANY_CONTEXT['org'])
values = session.audit.search(f'type=role and organization={module_org.name}')
assert values['action_type'] == 'create'
assert values['resource_type'] == 'ROLE'
assert values['resource_name'] == role.name
target_sat.api_factory.create_role_permissions(
role, {'Architecture': ['view_architectures', 'edit_architectures']}
)
values = session.audit.search('type=filter')
assert values['action_type'] == 'added'
assert values['resource_type'] == 'Filter'
assert values['resource_name'] == '{} and {} / {}'.format(
'view_architectures', 'edit_architectures', role.name
)
assert len(values['action_summary']) == 1
assert values['action_summary'][0]['column0'] == 'Added {} and {} to {}'.format(
'view_architectures', 'edit_architectures', role.name
)

0 comments on commit eef7524

Please sign in to comment.