Skip to content

Commit 2e078ad

Browse files
committed
revert child_packs_glob
1 parent 1fb09d3 commit 2e078ad

4 files changed

Lines changed: 2 additions & 37 deletions

File tree

st2actions/tests/unit/test_actions_registrar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
PACK_NAME as GENERIC_PACK,
3131
PACK_PATH as GENERIC_PACK_PATH,
3232
)
33-
from st2tests.fixtures.child_packs_glob import PACKS_PATH
3433
import st2tests.fixturesloader as fixtures_loader
3534

3635
MOCK_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.")

st2tests/st2tests/fixtures/BUILD

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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-
)

st2tests/st2tests/fixtures/child_packs_glob/BUILD

Lines changed: 0 additions & 3 deletions
This file was deleted.

st2tests/st2tests/fixtures/child_packs_glob/__init__.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)