Skip to content

Commit

Permalink
use __defaults__ to propogate unit,integration,benchmarks tags on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Dec 21, 2022
1 parent 9d0be4e commit 77c7766
Show file tree
Hide file tree
Showing 37 changed files with 165 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/runners/action_chain_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions contrib/runners/action_chain_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
4 changes: 4 additions & 0 deletions contrib/runners/announcement_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions contrib/runners/announcement_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
4 changes: 4 additions & 0 deletions contrib/runners/http_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions contrib/runners/http_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
4 changes: 4 additions & 0 deletions contrib/runners/inquirer_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions contrib/runners/inquirer_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions contrib/runners/local_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)

python_tests(
name="tests",
)
4 changes: 4 additions & 0 deletions contrib/runners/local_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)
4 changes: 4 additions & 0 deletions contrib/runners/noop_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions contrib/runners/noop_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions contrib/runners/orquesta_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions contrib/runners/orquesta_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
dependencies=[
Expand Down
5 changes: 5 additions & 0 deletions contrib/runners/python_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions contrib/runners/python_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
4 changes: 4 additions & 0 deletions contrib/runners/remote_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)
4 changes: 4 additions & 0 deletions contrib/runners/remote_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)
4 changes: 4 additions & 0 deletions contrib/runners/winrm_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions contrib/runners/winrm_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions st2actions/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions st2actions/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions st2api/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions st2api/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
4 changes: 4 additions & 0 deletions st2auth/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions st2auth/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
dependencies=[
Expand Down
4 changes: 4 additions & 0 deletions st2client/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions st2client/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
dependencies=[
Expand Down
3 changes: 3 additions & 0 deletions st2common/benchmarks/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
__defaults__(
{python_tests: dict(tags=["benchmarks"])},
)
5 changes: 5 additions & 0 deletions st2common/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)

python_sources()

python_tests(
Expand Down
5 changes: 5 additions & 0 deletions st2common/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
dependencies=[
Expand Down
5 changes: 5 additions & 0 deletions st2reactor/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions st2reactor/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
4 changes: 4 additions & 0 deletions st2stream/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
extend=True,
)
4 changes: 4 additions & 0 deletions st2stream/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)
1 change: 1 addition & 0 deletions st2tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__defaults__(
{python_tests: dict(tags=["integration"])},
all=dict(
skip_pylint=True,
),
Expand Down
4 changes: 4 additions & 0 deletions st2tests/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{python_tests: dict(tags=["unit"])},
extend=True,
)

0 comments on commit 77c7766

Please sign in to comment.