Skip to content
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

[CoE] Security Roles - drift report & config #348

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix path of test files in module test
  • Loading branch information
zruzhinov committed Jan 17, 2023
commit 80f60fd9f9f942c23e4d8e5aede54c8812d27ea4
2 changes: 2 additions & 0 deletions changelog/348.added
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Added module for vCenter Security Roles with functionality - list/find/save roles.
Added state for Security Roles - drift report and remediation.
joechainz marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 3 additions & 3 deletions tests/unit/modules/test_roles.py
Original file line number Diff line number Diff line change
@@ -192,15 +192,15 @@ def mocked_roles_data(request, fake_service_instance):
privilege_descriptions = []
privilege_group_descriptions = []
privileges_list = []
with open("../../test_files/role-privilege-descriptions.json") as dfile:
with open("tests/test_files/role-privilege-descriptions.json") as dfile:
descs = json.load(dfile)
for desc in descs:
privilege_descriptions.append(Mock(**desc))
with open("../../test_files/role-privilege-group-descriptions.json") as dfile:
with open("tests/test_files/role-privilege-group-descriptions.json") as dfile:
descs = json.load(dfile)
for desc in descs:
privilege_group_descriptions.append(Mock(**desc))
with open("../../test_files/role-privileges.json") as dfile:
with open("tests/test_files/role-privileges.json") as dfile:
descs = json.load(dfile)
for desc in descs:
privileges_list.append(Mock(**desc))