-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to test facts based on privilege level
Adds constants that contain what denial messages an underprivileged user may encounter for given facts. Now when testing facts, if it is a fact that's data varies based on privilege level, we only test for an exact match to the test data for privileged users, and otherwise test against the various denial messages acceptable for that fact. This commit also updates the gen_config.py script to be able to take in a new column of data in the profiles csv indicating if the profile is one with a privileged user. Now no profiles are re-used from the original config, only profiles indicated in the profiles csv are used.
- Loading branch information
Showing
6 changed files
with
246 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
camayoc\.tests\.remote\.rho\.conftest module | ||
============================================ | ||
|
||
.. automodule:: camayoc.tests.remote.rho.conftest | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,6 @@ Submodules | |
|
||
.. toctree:: | ||
|
||
camayoc.tests.remote.rho.conftest | ||
camayoc.tests.remote.rho.test_scan | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters