File tree Expand file tree Collapse file tree
st2tests/st2tests/fixtures Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 PACK_NAME as GENERIC_PACK ,
3131 PACK_PATH as GENERIC_PACK_PATH ,
3232)
33- from st2tests .fixtures .child_packs_glob import PACKS_PATH
3433import st2tests .fixturesloader as fixtures_loader
3534
3635MOCK_RUNNER_TYPE_DB = RunnerTypeDB (name = "run-local" , runner_module = "st2.runners.local" )
@@ -53,8 +52,9 @@ class ActionsRegistrarTest(tests_base.DbTestCase):
5352 )
5453 def test_register_all_actions (self ):
5554 try :
55+ packs_base_path = fixtures_loader .get_fixtures_base_path ()
5656 all_actions_in_db = Action .get_all ()
57- actions_registrar .register_actions (packs_base_paths = [PACKS_PATH ])
57+ actions_registrar .register_actions (packs_base_paths = [packs_base_path ])
5858 except Exception as e :
5959 print (six .text_type (e ))
6060 self .fail ("All actions must be registered without exceptions." )
Original file line number Diff line number Diff line change @@ -6,19 +6,3 @@ resources(
66 "./rbac_invalid/**/*.yaml" ,
77 ],
88)
9-
10- # Please make sure to register all of the packs in this dir.
11- # For each pack, depend on the python_sources target (which depends on pack_metadata).
12- target (
13- name = "child_packs" ,
14- dependencies = [
15- "./aliases" ,
16- "./backstop" ,
17- "./descendants" ,
18- "./generic" ,
19- "./localrunner_pack" ,
20- "./rule_enforcements" ,
21- "./timers" ,
22- "./traces" ,
23- ],
24- )
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments