Skip to content

Commit

Permalink
[6.16.z] removing unskipped test (#16480)
Browse files Browse the repository at this point in the history
removing unskipped test (#16478)

(cherry picked from commit a66393a)

Co-authored-by: Peter Ondrejka <pondrejk@users.noreply.github.com>
  • Loading branch information
Satellite-QE and pondrejk authored Sep 24, 2024
1 parent e408ed0 commit 15dedd4
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions tests/foreman/api/test_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -1451,47 +1451,6 @@ def test_positive_access_users_inside_org_admin_taxonomies(self, role_taxonomies
except HTTPError as err:
pytest.fail(str(err))

@pytest.mark.tier2
def test_positive_create_nested_location(self, role_taxonomies, target_sat):
"""Org Admin can create nested locations
:id: 971bc909-96a5-4614-b254-04a51c708432
:bz: 1694199, 1825698
:customerscenario: true
:steps:
1. Create a regular user and associate it with existing location
2. Add org_admin rights to that user
3. Attempt to create a nested location
:expectedresults: after adding the needed permissions, user should be
able to create nested locations
"""
user_login = gen_string('alpha')
user_pass = gen_string('alphanumeric')
user = target_sat.api.User(
login=user_login,
password=user_pass,
organization=[role_taxonomies['org']],
location=[role_taxonomies['loc']],
).create()
org_admin = self.create_org_admin_role(
target_sat, orgs=[role_taxonomies['org'].id], locs=[role_taxonomies['loc'].id]
)
user.role = [org_admin]
user = user.update(['role'])
sc = ServerConfig(
auth=(user_login, user_pass), url=target_sat.url, verify=settings.server.verify_ca
)
name = gen_string('alphanumeric')
location = target_sat.api.Location(
server_config=sc, name=name, parent=role_taxonomies['loc'].id
).create()
assert location.name == name

@pytest.mark.tier2
def test_negative_access_users_outside_org_admin_taxonomies(
self, role_taxonomies, filter_taxonomies, target_sat
Expand Down

0 comments on commit 15dedd4

Please sign in to comment.