Skip to content

Commit

Permalink
pants: add BUILD metadata for st2common itests
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Nov 12, 2024
1 parent b6e06a0 commit ec5c060
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
3 changes: 2 additions & 1 deletion st2common/tests/fixtures/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
python_sources()

shell_sources(
st2_shell_sources_and_resources(
name="shell",
sources=["*.sh"],
)
37 changes: 32 additions & 5 deletions st2common/tests/integration/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,46 @@ __defaults__(

python_tests(
name="tests",
dependencies=[
# used by test_register_content_script
"conf/st2.tests.conf:st2_tests_conf",
"conf/st2.tests1.conf:st2_tests_conf",
],
stevedore_namespaces=[
"orquesta.expressions.functions",
"st2common.runners.runner",
"st2common.rbac.backend",
"st2common.metrics.driver",
],
uses=["mongo", "rabbitmq", "redis"],
overrides={
"test_logging.py": dict(
dependencies=[
"./log_unicode_data.py",
],
),
"test_register_content_script.py": dict(
dependencies=[
"conf/st2.tests.conf:st2_tests_conf",
"conf/st2.tests1.conf:st2_tests_conf",
"st2common/bin/st2-register-content",
],
),
"test_service_setup_log_level_filtering.py": dict(
dependencies=[
"st2api/bin/st2api",
],
),
"test_util_green.py": dict(
dependencies=[
"st2common/tests/fixtures/print_to_stdout_stderr_sleep.sh:shell_resources",
],
),
},
)

python_test_utils(
sources=["*.py", "!test_*.py"],
overrides={
"log_unicode_data.py": dict(
dependencies=[
"st2tests/st2tests/fixtures/conf:st2.tests.conf",
],
),
},
)

0 comments on commit ec5c060

Please sign in to comment.