Skip to content

Commit

Permalink
pants: add BUILD metadata for st2reactor itests
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Nov 12, 2024
1 parent f6bc9df commit b6e06a0
Showing 1 changed file with 44 additions and 4 deletions.
48 changes: 44 additions & 4 deletions st2reactor/tests/integration/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,50 @@ __defaults__(
extend=True,
)

_conf_deps = [
"conf/st2.tests.conf:st2_tests_conf",
"conf/st2.tests2.conf:st2_tests_conf",
]

python_tests(
name="tests",
dependencies=[
"conf/st2.tests.conf:st2_tests_conf",
"conf/st2.tests2.conf:st2_tests_conf",
],
dependencies=_conf_deps,
uses=["mongo", "rabbitmq", "redis"],
overrides={
"test_garbage_collector.py": dict(
dependencies=[
*_conf_deps,
"st2reactor/bin/st2garbagecollector",
],
stevedore_namespaces=[
"st2common.metrics.driver",
],
entry_point_dependencies={
"contrib/runners/inquirer_runner": ["st2common.runners.runner"],
},
),
"test_rules_engine.py": dict(
dependencies=[
*_conf_deps,
"st2reactor/bin/st2timersengine",
],
stevedore_namespaces=[
"st2common.metrics.driver",
],
),
"test_sensor_container.py": dict(
dependencies=[
*_conf_deps,
"st2reactor/bin/st2sensorcontainer",
"contrib/examples/sensors",
"contrib/examples:metadata",
],
stevedore_namespaces=[
"st2common.metrics.driver",
],
),
"test_sensor_watcher.py": dict(
uses=["rabbitmq"],
),
},
)

0 comments on commit b6e06a0

Please sign in to comment.