Fix permissions that come from an external auditor role (#15291)

* Add tests for external auditor

* Add assertion for unified JTs which fails

* Fix UJT listing bug

* Add test for ad hoc commands just to be sure
This commit is contained in:
Alan Rominger
2024-06-27 15:57:39 -04:00
committed by GitHub
parent 4e0d19914f
commit db72c9d5b8
4 changed files with 142 additions and 16 deletions

View File

@@ -92,6 +92,11 @@ def deploy_jobtemplate(project, inventory, credential):
return jt
@pytest.fixture()
def execution_environment():
return ExecutionEnvironment.objects.create(name="test-ee", description="test-ee", managed=True)
@pytest.fixture
def setup_managed_roles():
"Run the migration script to pre-create managed role definitions"