-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to parallelize rbac roles tests (#2237)
* fix typo * enable other envs * test with include * rework rbac-parallel * fix typo * fix RBAC_PARALLEL_GROUP * fix linter No-Issue
- Loading branch information
1 parent
1ded60e
commit 676e7a2
Showing
5 changed files
with
38 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import action_lib | ||
import sys | ||
|
||
rbac_parallel_group = None | ||
|
||
rbac_parallel_group = sys.argv[1] if len(sys.argv) == 2 else None | ||
rbac_marker = rbac_parallel_group if rbac_parallel_group else "rbac_roles" | ||
|
||
pytest_flags = "-m {0}".format(rbac_marker) | ||
|
||
env = action_lib.OCIEnvIntegrationTest( | ||
envs=[ | ||
{ | ||
"env_file": "standalone.compose.env", | ||
"run_tests": True, | ||
"db_restore": None, | ||
"pytest_flags": pytest_flags | ||
} | ||
] | ||
) |
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