diff --git a/.github/workflows/pants.yaml b/.github/workflows/pants.yaml index f3de3924f8..94ac92e6bf 100644 --- a/.github/workflows/pants.yaml +++ b/.github/workflows/pants.yaml @@ -2,23 +2,21 @@ name: Validate Pants Metadata on: - # temporarily only allow manual runs until we have BUILD files and lockfiles - workflow_dispatch: - #push: - # branches: - # # only on merges to master branch - # - master - # # and version branches, which only include minor versions (eg: v3.4) - # - v[0-9]+.[0-9]+ - # tags: - # # also version tags, which include bugfix releases (eg: v3.4.0) - # - v[0-9]+.[0-9]+.[0-9]+ - #pull_request: - # type: [opened, reopened, edited] - # branches: - # # Only for PRs targeting those branches - # - master - # - v[0-9]+.[0-9]+ + push: + branches: + # only on merges to master branch + - master + # and version branches, which only include minor versions (eg: v3.4) + - v[0-9]+.[0-9]+ + tags: + # also version tags, which include bugfix releases (eg: v3.4.0) + - v[0-9]+.[0-9]+.[0-9]+ + pull_request: + type: [opened, reopened, edited] + branches: + # Only for PRs targeting those branches + - master + - v[0-9]+.[0-9]+ jobs: pants-tailor: @@ -42,11 +40,12 @@ jobs: # Otherwise, we may need an additional workflow or job to delete old caches # if they are not expiring fast enough, and we hit the GHA 10GB per repo max. with: + base-branch: master # To ignore a bad cache, bump the cache* integer. gha-cache-key: cache0-BUILD # This hash should include all of our lockfiles so that the pip/pex caches # get invalidated on any transitive dependency update. - named-caches-hash: ${{ hashFiles('requirements.txt' }} + named-caches-hash: ${{ hashFiles('requirements.txt') }} # enable the optional lmdb_store cache since we're not using remote caching. cache-lmdb-store: 'true' diff --git a/BUILD b/BUILD new file mode 100644 index 0000000000..389d4a2126 --- /dev/null +++ b/BUILD @@ -0,0 +1,7 @@ +python_requirements( + name="root", +) + +python_test_utils( + name="test_utils0", +) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index baa1c894ec..526c385bae 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -53,7 +53,7 @@ Added * Begin introducing `pants `_ to improve DX (Developer Experience) working on StackStorm, improve our security posture, and improve CI reliability thanks in part - to pants' use of PEX lockfiles. This is not a user-facing addition. #5713 #5724 #5726 #5725 #5732 #5733 #5737 + to pants' use of PEX lockfiles. This is not a user-facing addition. #5713 #5724 #5726 #5725 #5732 #5733 #5737 #5738 Contributed by @cognifloyd Changed diff --git a/contrib/chatops/actions/BUILD b/contrib/chatops/actions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/chatops/actions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/chatops/tests/BUILD b/contrib/chatops/tests/BUILD new file mode 100644 index 0000000000..dabf212d7e --- /dev/null +++ b/contrib/chatops/tests/BUILD @@ -0,0 +1 @@ +python_tests() diff --git a/contrib/core/BUILD b/contrib/core/BUILD new file mode 100644 index 0000000000..24a2f3fe28 --- /dev/null +++ b/contrib/core/BUILD @@ -0,0 +1,6 @@ +python_sources() + +python_requirements( + name="reqs", + source="requirements-tests.txt", +) diff --git a/contrib/core/actions/BUILD b/contrib/core/actions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/core/actions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/core/tests/BUILD b/contrib/core/tests/BUILD new file mode 100644 index 0000000000..dabf212d7e --- /dev/null +++ b/contrib/core/tests/BUILD @@ -0,0 +1 @@ +python_tests() diff --git a/contrib/debug/actions/BUILD b/contrib/debug/actions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/debug/actions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/examples/actions/BUILD b/contrib/examples/actions/BUILD new file mode 100644 index 0000000000..a36ccd24d3 --- /dev/null +++ b/contrib/examples/actions/BUILD @@ -0,0 +1,5 @@ +python_sources() + +shell_sources( + name="actions0", +) diff --git a/contrib/examples/actions/bash_exit_code/BUILD b/contrib/examples/actions/bash_exit_code/BUILD new file mode 100644 index 0000000000..6c95f66377 --- /dev/null +++ b/contrib/examples/actions/bash_exit_code/BUILD @@ -0,0 +1 @@ +shell_sources() diff --git a/contrib/examples/actions/bash_ping/BUILD b/contrib/examples/actions/bash_ping/BUILD new file mode 100644 index 0000000000..6c95f66377 --- /dev/null +++ b/contrib/examples/actions/bash_ping/BUILD @@ -0,0 +1 @@ +shell_sources() diff --git a/contrib/examples/actions/bash_random/BUILD b/contrib/examples/actions/bash_random/BUILD new file mode 100644 index 0000000000..6c95f66377 --- /dev/null +++ b/contrib/examples/actions/bash_random/BUILD @@ -0,0 +1 @@ +shell_sources() diff --git a/contrib/examples/actions/pythonactions/BUILD b/contrib/examples/actions/pythonactions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/examples/actions/pythonactions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/examples/actions/ubuntu_pkg_info/BUILD b/contrib/examples/actions/ubuntu_pkg_info/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/examples/actions/ubuntu_pkg_info/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/examples/actions/ubuntu_pkg_info/lib/BUILD b/contrib/examples/actions/ubuntu_pkg_info/lib/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/examples/actions/ubuntu_pkg_info/lib/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/examples/lib/BUILD b/contrib/examples/lib/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/examples/lib/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/examples/sensors/BUILD b/contrib/examples/sensors/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/examples/sensors/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/examples/tests/BUILD b/contrib/examples/tests/BUILD new file mode 100644 index 0000000000..dabf212d7e --- /dev/null +++ b/contrib/examples/tests/BUILD @@ -0,0 +1 @@ +python_tests() diff --git a/contrib/hello_st2/actions/BUILD b/contrib/hello_st2/actions/BUILD new file mode 100644 index 0000000000..6c95f66377 --- /dev/null +++ b/contrib/hello_st2/actions/BUILD @@ -0,0 +1 @@ +shell_sources() diff --git a/contrib/hello_st2/sensors/BUILD b/contrib/hello_st2/sensors/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/hello_st2/sensors/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/linux/BUILD b/contrib/linux/BUILD new file mode 100644 index 0000000000..b8519ce575 --- /dev/null +++ b/contrib/linux/BUILD @@ -0,0 +1,3 @@ +python_requirements( + name="reqs", +) diff --git a/contrib/linux/actions/BUILD b/contrib/linux/actions/BUILD new file mode 100644 index 0000000000..a36ccd24d3 --- /dev/null +++ b/contrib/linux/actions/BUILD @@ -0,0 +1,5 @@ +python_sources() + +shell_sources( + name="actions0", +) diff --git a/contrib/linux/actions/checks/BUILD b/contrib/linux/actions/checks/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/linux/actions/checks/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/linux/sensors/BUILD b/contrib/linux/sensors/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/linux/sensors/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/linux/tests/BUILD b/contrib/linux/tests/BUILD new file mode 100644 index 0000000000..dabf212d7e --- /dev/null +++ b/contrib/linux/tests/BUILD @@ -0,0 +1 @@ +python_tests() diff --git a/contrib/packs/actions/BUILD b/contrib/packs/actions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/packs/actions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/packs/actions/pack_mgmt/BUILD b/contrib/packs/actions/pack_mgmt/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/packs/actions/pack_mgmt/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/packs/tests/BUILD b/contrib/packs/tests/BUILD new file mode 100644 index 0000000000..dabf212d7e --- /dev/null +++ b/contrib/packs/tests/BUILD @@ -0,0 +1 @@ +python_tests() diff --git a/contrib/packs/tests/fixtures/BUILD b/contrib/packs/tests/fixtures/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/packs/tests/fixtures/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/runners/action_chain_runner/action_chain_runner/BUILD b/contrib/runners/action_chain_runner/action_chain_runner/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/runners/action_chain_runner/action_chain_runner/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/runners/action_chain_runner/tests/unit/BUILD b/contrib/runners/action_chain_runner/tests/unit/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/contrib/runners/action_chain_runner/tests/unit/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/contrib/runners/announcement_runner/announcement_runner/BUILD b/contrib/runners/announcement_runner/announcement_runner/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/runners/announcement_runner/announcement_runner/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/runners/announcement_runner/tests/unit/BUILD b/contrib/runners/announcement_runner/tests/unit/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/contrib/runners/announcement_runner/tests/unit/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/contrib/runners/http_runner/http_runner/BUILD b/contrib/runners/http_runner/http_runner/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/runners/http_runner/http_runner/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/runners/http_runner/tests/unit/BUILD b/contrib/runners/http_runner/tests/unit/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/contrib/runners/http_runner/tests/unit/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/contrib/runners/inquirer_runner/inquirer_runner/BUILD b/contrib/runners/inquirer_runner/inquirer_runner/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/runners/inquirer_runner/inquirer_runner/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/runners/inquirer_runner/tests/unit/BUILD b/contrib/runners/inquirer_runner/tests/unit/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/contrib/runners/inquirer_runner/tests/unit/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/contrib/runners/local_runner/local_runner/BUILD b/contrib/runners/local_runner/local_runner/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/runners/local_runner/local_runner/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/runners/local_runner/tests/integration/BUILD b/contrib/runners/local_runner/tests/integration/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/contrib/runners/local_runner/tests/integration/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/contrib/runners/noop_runner/noop_runner/BUILD b/contrib/runners/noop_runner/noop_runner/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/runners/noop_runner/noop_runner/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/runners/noop_runner/tests/unit/BUILD b/contrib/runners/noop_runner/tests/unit/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/contrib/runners/noop_runner/tests/unit/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/contrib/runners/orquesta_runner/orquesta_functions/BUILD b/contrib/runners/orquesta_runner/orquesta_functions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/runners/orquesta_runner/orquesta_functions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/runners/orquesta_runner/orquesta_runner/BUILD b/contrib/runners/orquesta_runner/orquesta_runner/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/runners/orquesta_runner/orquesta_runner/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/runners/orquesta_runner/tests/integration/BUILD b/contrib/runners/orquesta_runner/tests/integration/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/contrib/runners/orquesta_runner/tests/integration/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/contrib/runners/orquesta_runner/tests/unit/BUILD b/contrib/runners/orquesta_runner/tests/unit/BUILD new file mode 100644 index 0000000000..00e59b3017 --- /dev/null +++ b/contrib/runners/orquesta_runner/tests/unit/BUILD @@ -0,0 +1,5 @@ +python_tests( + name="tests", +) + +python_sources() diff --git a/contrib/runners/python_runner/python_runner/BUILD b/contrib/runners/python_runner/python_runner/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/runners/python_runner/python_runner/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/runners/python_runner/tests/integration/BUILD b/contrib/runners/python_runner/tests/integration/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/contrib/runners/python_runner/tests/integration/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/contrib/runners/python_runner/tests/unit/BUILD b/contrib/runners/python_runner/tests/unit/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/contrib/runners/python_runner/tests/unit/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/contrib/runners/remote_runner/remote_runner/BUILD b/contrib/runners/remote_runner/remote_runner/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/runners/remote_runner/remote_runner/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/runners/winrm_runner/tests/unit/BUILD b/contrib/runners/winrm_runner/tests/unit/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/contrib/runners/winrm_runner/tests/unit/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/contrib/runners/winrm_runner/tests/unit/fixtures/BUILD b/contrib/runners/winrm_runner/tests/unit/fixtures/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/runners/winrm_runner/tests/unit/fixtures/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/contrib/runners/winrm_runner/winrm_runner/BUILD b/contrib/runners/winrm_runner/winrm_runner/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/contrib/runners/winrm_runner/winrm_runner/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/pylint_plugins/BUILD b/pylint_plugins/BUILD new file mode 100644 index 0000000000..0eea8b1cf1 --- /dev/null +++ b/pylint_plugins/BUILD @@ -0,0 +1,5 @@ +python_sources() + +python_tests( + name="tests", +) diff --git a/scripts/BUILD b/scripts/BUILD new file mode 100644 index 0000000000..0fabf607be --- /dev/null +++ b/scripts/BUILD @@ -0,0 +1,5 @@ +python_sources() + +shell_sources( + name="scripts0", +) diff --git a/scripts/ci/BUILD b/scripts/ci/BUILD new file mode 100644 index 0000000000..6c95f66377 --- /dev/null +++ b/scripts/ci/BUILD @@ -0,0 +1 @@ +shell_sources() diff --git a/scripts/github/BUILD b/scripts/github/BUILD new file mode 100644 index 0000000000..6c95f66377 --- /dev/null +++ b/scripts/github/BUILD @@ -0,0 +1 @@ +shell_sources() diff --git a/st2actions/bin/BUILD b/st2actions/bin/BUILD new file mode 100644 index 0000000000..6c95f66377 --- /dev/null +++ b/st2actions/bin/BUILD @@ -0,0 +1 @@ +shell_sources() diff --git a/st2actions/st2actions/BUILD b/st2actions/st2actions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2actions/st2actions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2actions/st2actions/cmd/BUILD b/st2actions/st2actions/cmd/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2actions/st2actions/cmd/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2actions/st2actions/container/BUILD b/st2actions/st2actions/container/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2actions/st2actions/container/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2actions/st2actions/notifier/BUILD b/st2actions/st2actions/notifier/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2actions/st2actions/notifier/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2actions/st2actions/policies/BUILD b/st2actions/st2actions/policies/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2actions/st2actions/policies/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2actions/st2actions/runners/BUILD b/st2actions/st2actions/runners/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2actions/st2actions/runners/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2actions/st2actions/scheduler/BUILD b/st2actions/st2actions/scheduler/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2actions/st2actions/scheduler/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2actions/st2actions/workflows/BUILD b/st2actions/st2actions/workflows/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2actions/st2actions/workflows/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2actions/tests/integration/BUILD b/st2actions/tests/integration/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2actions/tests/integration/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2actions/tests/unit/BUILD b/st2actions/tests/unit/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2actions/tests/unit/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2actions/tests/unit/policies/BUILD b/st2actions/tests/unit/policies/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2actions/tests/unit/policies/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2api/st2api/BUILD b/st2api/st2api/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2api/st2api/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2api/st2api/cmd/BUILD b/st2api/st2api/cmd/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2api/st2api/cmd/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2api/st2api/controllers/BUILD b/st2api/st2api/controllers/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2api/st2api/controllers/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2api/st2api/controllers/v1/BUILD b/st2api/st2api/controllers/v1/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2api/st2api/controllers/v1/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2api/tests/integration/BUILD b/st2api/tests/integration/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2api/tests/integration/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2api/tests/unit/BUILD b/st2api/tests/unit/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2api/tests/unit/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2api/tests/unit/controllers/BUILD b/st2api/tests/unit/controllers/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2api/tests/unit/controllers/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2api/tests/unit/controllers/v1/BUILD b/st2api/tests/unit/controllers/v1/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2api/tests/unit/controllers/v1/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2api/tests/unit/controllers/v1/test_packs_views.py b/st2api/tests/unit/controllers/v1/test_packs_views.py index d5fed094db..e2e3f93783 100644 --- a/st2api/tests/unit/controllers/v1/test_packs_views.py +++ b/st2api/tests/unit/controllers/v1/test_packs_views.py @@ -133,7 +133,7 @@ def test_get_pack_files_and_pack_file_ref_doesnt_equal_pack_name(self): # Ref is not equal to the name, controller should still work resp = self.app.get("/v1/packs/views/files/dummy_pack_16") self.assertEqual(resp.status_int, http_client.OK) - self.assertEqual(len(resp.json), 3) + self.assertEqual(len(resp.json), 4) self.assertIn("pack.yaml", [f["file_path"] for f in resp.json]) resp = self.app.get("/v1/packs/views/file/dummy_pack_16/pack.yaml") diff --git a/st2auth/st2auth/BUILD b/st2auth/st2auth/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2auth/st2auth/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2auth/st2auth/backends/BUILD b/st2auth/st2auth/backends/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2auth/st2auth/backends/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2auth/st2auth/cmd/BUILD b/st2auth/st2auth/cmd/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2auth/st2auth/cmd/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2auth/st2auth/controllers/v1/BUILD b/st2auth/st2auth/controllers/v1/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2auth/st2auth/controllers/v1/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2auth/st2auth/sso/BUILD b/st2auth/st2auth/sso/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2auth/st2auth/sso/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2auth/tests/BUILD b/st2auth/tests/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2auth/tests/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2auth/tests/unit/BUILD b/st2auth/tests/unit/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2auth/tests/unit/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2auth/tests/unit/controllers/v1/BUILD b/st2auth/tests/unit/controllers/v1/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2auth/tests/unit/controllers/v1/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2client/conf/BUILD b/st2client/conf/BUILD new file mode 100644 index 0000000000..6c95f66377 --- /dev/null +++ b/st2client/conf/BUILD @@ -0,0 +1 @@ +shell_sources() diff --git a/st2client/st2client/BUILD b/st2client/st2client/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2client/st2client/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2client/st2client/commands/BUILD b/st2client/st2client/commands/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2client/st2client/commands/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2client/st2client/exceptions/BUILD b/st2client/st2client/exceptions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2client/st2client/exceptions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2client/st2client/formatters/BUILD b/st2client/st2client/formatters/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2client/st2client/formatters/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2client/st2client/models/BUILD b/st2client/st2client/models/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2client/st2client/models/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2client/st2client/utils/BUILD b/st2client/st2client/utils/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2client/st2client/utils/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2client/tests/BUILD b/st2client/tests/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2client/tests/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2client/tests/fixtures/BUILD b/st2client/tests/fixtures/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2client/tests/fixtures/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2client/tests/unit/BUILD b/st2client/tests/unit/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2client/tests/unit/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2common/benchmarks/micro/BUILD b/st2common/benchmarks/micro/BUILD new file mode 100644 index 0000000000..0eea8b1cf1 --- /dev/null +++ b/st2common/benchmarks/micro/BUILD @@ -0,0 +1,5 @@ +python_sources() + +python_tests( + name="tests", +) diff --git a/st2common/bin/BUILD b/st2common/bin/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/bin/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/bin/migrations/v1.5/BUILD b/st2common/bin/migrations/v1.5/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/bin/migrations/v1.5/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/bin/migrations/v2.1/BUILD b/st2common/bin/migrations/v2.1/BUILD new file mode 100644 index 0000000000..ae8a03e5ae --- /dev/null +++ b/st2common/bin/migrations/v2.1/BUILD @@ -0,0 +1,5 @@ +python_sources() + +shell_sources( + name="v2.10", +) diff --git a/st2common/bin/migrations/v3.1/BUILD b/st2common/bin/migrations/v3.1/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/bin/migrations/v3.1/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/bin/migrations/v3.5/BUILD b/st2common/bin/migrations/v3.5/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/bin/migrations/v3.5/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/BUILD b/st2common/st2common/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/bootstrap/BUILD b/st2common/st2common/bootstrap/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/bootstrap/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/callback/BUILD b/st2common/st2common/callback/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/callback/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/cmd/BUILD b/st2common/st2common/cmd/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/cmd/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/constants/BUILD b/st2common/st2common/constants/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/constants/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/content/BUILD b/st2common/st2common/content/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/content/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/exceptions/BUILD b/st2common/st2common/exceptions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/exceptions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/expressions/functions/BUILD b/st2common/st2common/expressions/functions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/expressions/functions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/garbage_collection/BUILD b/st2common/st2common/garbage_collection/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/garbage_collection/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/logging/BUILD b/st2common/st2common/logging/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/logging/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/metrics/BUILD b/st2common/st2common/metrics/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/metrics/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/metrics/drivers/BUILD b/st2common/st2common/metrics/drivers/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/metrics/drivers/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/middleware/BUILD b/st2common/st2common/middleware/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/middleware/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/models/BUILD b/st2common/st2common/models/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/models/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/models/api/BUILD b/st2common/st2common/models/api/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/models/api/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/models/db/BUILD b/st2common/st2common/models/db/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/models/db/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/models/system/BUILD b/st2common/st2common/models/system/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/models/system/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/models/utils/BUILD b/st2common/st2common/models/utils/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/models/utils/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/persistence/BUILD b/st2common/st2common/persistence/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/persistence/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/policies/BUILD b/st2common/st2common/policies/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/policies/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/rbac/BUILD b/st2common/st2common/rbac/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/rbac/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/rbac/backends/BUILD b/st2common/st2common/rbac/backends/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/rbac/backends/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/runners/BUILD b/st2common/st2common/runners/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/runners/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/services/BUILD b/st2common/st2common/services/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/services/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/stream/BUILD b/st2common/st2common/stream/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/stream/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/transport/BUILD b/st2common/st2common/transport/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/transport/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/util/BUILD b/st2common/st2common/util/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/util/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/util/green/BUILD b/st2common/st2common/util/green/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/util/green/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/util/schema/BUILD b/st2common/st2common/util/schema/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/util/schema/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/validators/api/BUILD b/st2common/st2common/validators/api/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/validators/api/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/st2common/validators/workflow/BUILD b/st2common/st2common/validators/workflow/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/st2common/validators/workflow/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/tests/fixtures/BUILD b/st2common/tests/fixtures/BUILD new file mode 100644 index 0000000000..4775698535 --- /dev/null +++ b/st2common/tests/fixtures/BUILD @@ -0,0 +1,5 @@ +python_sources() + +shell_sources( + name="fixtures0", +) diff --git a/st2common/tests/fixtures/local_runner/BUILD b/st2common/tests/fixtures/local_runner/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/tests/fixtures/local_runner/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/tests/integration/BUILD b/st2common/tests/integration/BUILD new file mode 100644 index 0000000000..0eea8b1cf1 --- /dev/null +++ b/st2common/tests/integration/BUILD @@ -0,0 +1,5 @@ +python_sources() + +python_tests( + name="tests", +) diff --git a/st2common/tests/resources/loadableplugin/plugin/BUILD b/st2common/tests/resources/loadableplugin/plugin/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/tests/resources/loadableplugin/plugin/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/tests/resources/loadableplugin/plugin/util/BUILD b/st2common/tests/resources/loadableplugin/plugin/util/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2common/tests/resources/loadableplugin/plugin/util/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2common/tests/unit/BUILD b/st2common/tests/unit/BUILD new file mode 100644 index 0000000000..00e59b3017 --- /dev/null +++ b/st2common/tests/unit/BUILD @@ -0,0 +1,5 @@ +python_tests( + name="tests", +) + +python_sources() diff --git a/st2common/tests/unit/migrations/BUILD b/st2common/tests/unit/migrations/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2common/tests/unit/migrations/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2common/tests/unit/services/BUILD b/st2common/tests/unit/services/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2common/tests/unit/services/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2common/tests/unit/test_util_file_system.py b/st2common/tests/unit/test_util_file_system.py index a1af0c957a..e36fa85301 100644 --- a/st2common/tests/unit/test_util_file_system.py +++ b/st2common/tests/unit/test_util_file_system.py @@ -30,6 +30,7 @@ def test_get_file_list(self): # Standard exclude pattern directory = os.path.join(ST2TESTS_DIR, "policies") expected = [ + "BUILD", "mock_exception.py", "concurrency.py", "__init__.py", @@ -48,6 +49,6 @@ def test_get_file_list(self): "meta/__init__.py", ] result = get_file_list( - directory=directory, exclude_patterns=["*.pyc", "*.yaml"] + directory=directory, exclude_patterns=["*.pyc", "*.yaml", "BUILD"] ) self.assertItemsEqual(expected, result) diff --git a/st2reactor/st2reactor/BUILD b/st2reactor/st2reactor/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2reactor/st2reactor/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2reactor/st2reactor/cmd/BUILD b/st2reactor/st2reactor/cmd/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2reactor/st2reactor/cmd/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2reactor/st2reactor/container/BUILD b/st2reactor/st2reactor/container/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2reactor/st2reactor/container/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2reactor/st2reactor/garbage_collector/BUILD b/st2reactor/st2reactor/garbage_collector/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2reactor/st2reactor/garbage_collector/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2reactor/st2reactor/rules/BUILD b/st2reactor/st2reactor/rules/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2reactor/st2reactor/rules/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2reactor/st2reactor/sensor/BUILD b/st2reactor/st2reactor/sensor/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2reactor/st2reactor/sensor/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2reactor/st2reactor/timer/BUILD b/st2reactor/st2reactor/timer/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2reactor/st2reactor/timer/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2reactor/tests/fixtures/fixture/BUILD b/st2reactor/tests/fixtures/fixture/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2reactor/tests/fixtures/fixture/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2reactor/tests/fixtures/packs/BUILD b/st2reactor/tests/fixtures/packs/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2reactor/tests/fixtures/packs/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2reactor/tests/fixtures/packs/pack_with_rules/BUILD b/st2reactor/tests/fixtures/packs/pack_with_rules/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2reactor/tests/fixtures/packs/pack_with_rules/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2reactor/tests/fixtures/packs/pack_with_sensor/BUILD b/st2reactor/tests/fixtures/packs/pack_with_sensor/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2reactor/tests/fixtures/packs/pack_with_sensor/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2reactor/tests/integration/BUILD b/st2reactor/tests/integration/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2reactor/tests/integration/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2reactor/tests/resources/BUILD b/st2reactor/tests/resources/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2reactor/tests/resources/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2reactor/tests/unit/BUILD b/st2reactor/tests/unit/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2reactor/tests/unit/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2stream/st2stream/BUILD b/st2stream/st2stream/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2stream/st2stream/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2stream/st2stream/cmd/BUILD b/st2stream/st2stream/cmd/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2stream/st2stream/cmd/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2stream/st2stream/controllers/v1/BUILD b/st2stream/st2stream/controllers/v1/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2stream/st2stream/controllers/v1/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2stream/tests/unit/controllers/v1/BUILD b/st2stream/tests/unit/controllers/v1/BUILD new file mode 100644 index 0000000000..00e59b3017 --- /dev/null +++ b/st2stream/tests/unit/controllers/v1/BUILD @@ -0,0 +1,5 @@ +python_tests( + name="tests", +) + +python_sources() diff --git a/st2tests/integration/BUILD b/st2tests/integration/BUILD new file mode 100644 index 0000000000..6c95f66377 --- /dev/null +++ b/st2tests/integration/BUILD @@ -0,0 +1 @@ +shell_sources() diff --git a/st2tests/integration/orquesta/BUILD b/st2tests/integration/orquesta/BUILD new file mode 100644 index 0000000000..0eea8b1cf1 --- /dev/null +++ b/st2tests/integration/orquesta/BUILD @@ -0,0 +1,5 @@ +python_sources() + +python_tests( + name="tests", +) diff --git a/st2tests/st2tests/BUILD b/st2tests/st2tests/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/aliases/BUILD b/st2tests/st2tests/fixtures/aliases/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/aliases/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/backstop/BUILD b/st2tests/st2tests/fixtures/backstop/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/backstop/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/conf/BUILD b/st2tests/st2tests/fixtures/conf/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/conf/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/descendants/BUILD b/st2tests/st2tests/fixtures/descendants/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/descendants/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/generic/BUILD b/st2tests/st2tests/fixtures/generic/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/generic/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/generic/actions/BUILD b/st2tests/st2tests/fixtures/generic/actions/BUILD new file mode 100644 index 0000000000..6c95f66377 --- /dev/null +++ b/st2tests/st2tests/fixtures/generic/actions/BUILD @@ -0,0 +1 @@ +shell_sources() diff --git a/st2tests/st2tests/fixtures/history_views/BUILD b/st2tests/st2tests/fixtures/history_views/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/history_views/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/keyczar_keys/BUILD b/st2tests/st2tests/fixtures/keyczar_keys/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/keyczar_keys/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/localrunner_pack/BUILD b/st2tests/st2tests/fixtures/localrunner_pack/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/localrunner_pack/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/localrunner_pack/actions/BUILD b/st2tests/st2tests/fixtures/localrunner_pack/actions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/localrunner_pack/actions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/BUILD b/st2tests/st2tests/fixtures/packs/BUILD new file mode 100644 index 0000000000..01ca6fa556 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/BUILD @@ -0,0 +1,31 @@ +# The files in test_content_version* targets are in ./test_content_version +# which is a git submodule. +# The test_content_version* targets are dependencies of ./test_content_version_fixture + +resources( + name="test_content_version_metadata", + sources=[ + "test_content_version/pack.yaml", + "test_content_version/**/*.yaml", + "test_content_version/icon.png", + "test_content_version/requirements.txt", + ], +) + +shell_sources( + name="test_content_version_shell", + sources=[ + "test_content_version/**/*.sh", + ], +) + +python_sources( + name="test_content_version", + dependencies=[ + ":test_content_version_metadata", + ":test_content_version_shell", + ], + sources=[ + "test_content_version/**/*.py", + ], +) diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/BUILD b/st2tests/st2tests/fixtures/packs/action_chain_tests/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/action_chain_tests/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_1/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_1/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/actions/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_1/actions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_1/actions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_10/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_10/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_10/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_11/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_11/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_11/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_12/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_12/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_12/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_13/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_13/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_13/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_14/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_14/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_14/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_15/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_15/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_15/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_16/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_16/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_16/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_17/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_17/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_17/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_18/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_18/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_18/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_19/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_19/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_19/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_2/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_2/BUILD new file mode 100644 index 0000000000..075e7aff44 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_2/BUILD @@ -0,0 +1,6 @@ +resource( + name="pack_requirements", + source="requirements.txt", +) + +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_2/actions/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_2/actions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_2/actions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_2/sensors/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_2/sensors/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_2/sensors/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_20/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_20/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_20/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_21/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_21/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_21/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_22/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_22/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_22/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_23/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_23/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_23/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_3/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_3/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_3/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_3/actions/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_3/actions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_3/actions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_3/sensors/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_3/sensors/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_3/sensors/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_4/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_4/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_4/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_5/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_5/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_5/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_6/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_6/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_6/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_7/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_7/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_7/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_7/actions/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_7/actions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_7/actions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_8/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_8/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_8/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_9/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_9/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_9/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_9/actions/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_9/actions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_9/actions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_additional_items_1/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_additional_items_1/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_additional_items_1/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_additional_properties_1/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_additional_properties_1/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_additional_properties_1/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_1/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_1/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_1/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_2/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_2/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_2/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_3/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_3/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_3/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_4/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_4/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_4/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_5/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_5/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_5/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_pattern_and_additional_properties_1/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_pattern_and_additional_properties_1/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_pattern_and_additional_properties_1/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_pattern_properties_1/BUILD b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_pattern_properties_1/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_pattern_properties_1/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/executions/BUILD b/st2tests/st2tests/fixtures/packs/executions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/executions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/BUILD b/st2tests/st2tests/fixtures/packs/orquesta_tests/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/orquesta_tests/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/BUILD b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/pack_dir_name_doesnt_match_ref/BUILD b/st2tests/st2tests/fixtures/packs/pack_dir_name_doesnt_match_ref/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/pack_dir_name_doesnt_match_ref/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/pack_invalid_requirements/BUILD b/st2tests/st2tests/fixtures/packs/pack_invalid_requirements/BUILD new file mode 100644 index 0000000000..075e7aff44 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/pack_invalid_requirements/BUILD @@ -0,0 +1,6 @@ +resource( + name="pack_requirements", + source="requirements.txt", +) + +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/runners/BUILD b/st2tests/st2tests/fixtures/packs/runners/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/runners/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/runners/test_async_runner/BUILD b/st2tests/st2tests/fixtures/packs/runners/test_async_runner/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/runners/test_async_runner/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2tests/st2tests/fixtures/packs/runners/test_polling_async_runner/BUILD b/st2tests/st2tests/fixtures/packs/runners/test_polling_async_runner/BUILD new file mode 100644 index 0000000000..57341b1358 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/runners/test_polling_async_runner/BUILD @@ -0,0 +1,3 @@ +python_tests( + name="tests", +) diff --git a/st2tests/st2tests/fixtures/packs/test_content_version_fixture/BUILD b/st2tests/st2tests/fixtures/packs/test_content_version_fixture/BUILD new file mode 100644 index 0000000000..e593d5a8eb --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/test_content_version_fixture/BUILD @@ -0,0 +1,3 @@ +python_sources( + dependencies=["st2tests/st2tests/fixtures/packs:test_content_version"], +) diff --git a/st2tests/st2tests/fixtures/packs/test_library_dependencies/BUILD b/st2tests/st2tests/fixtures/packs/test_library_dependencies/BUILD new file mode 100644 index 0000000000..075e7aff44 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/test_library_dependencies/BUILD @@ -0,0 +1,6 @@ +resource( + name="pack_requirements", + source="requirements.txt", +) + +python_sources() diff --git a/st2tests/st2tests/fixtures/packs/test_library_dependencies/actions/BUILD b/st2tests/st2tests/fixtures/packs/test_library_dependencies/actions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs/test_library_dependencies/actions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs_1/dummy_pack_4/BUILD b/st2tests/st2tests/fixtures/packs_1/dummy_pack_4/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs_1/dummy_pack_4/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_17/BUILD b/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_17/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_17/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_18/BUILD b/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_18/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_18/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/rule_enforcements/BUILD b/st2tests/st2tests/fixtures/rule_enforcements/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/rule_enforcements/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/ssl_certs/BUILD b/st2tests/st2tests/fixtures/ssl_certs/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/ssl_certs/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/timers/BUILD b/st2tests/st2tests/fixtures/timers/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/timers/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/fixtures/traces/BUILD b/st2tests/st2tests/fixtures/traces/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/fixtures/traces/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/mocks/BUILD b/st2tests/st2tests/mocks/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/mocks/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/mocks/runners/BUILD b/st2tests/st2tests/mocks/runners/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/mocks/runners/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/policies/BUILD b/st2tests/st2tests/policies/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/policies/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/st2tests/resources/packs/pythonactions/actions/BUILD b/st2tests/st2tests/resources/packs/pythonactions/actions/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/st2tests/resources/packs/pythonactions/actions/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/testpacks/checks/actions/checks/BUILD b/st2tests/testpacks/checks/actions/checks/BUILD new file mode 100644 index 0000000000..db46e8d6c9 --- /dev/null +++ b/st2tests/testpacks/checks/actions/checks/BUILD @@ -0,0 +1 @@ +python_sources() diff --git a/st2tests/testpacks/errorcheck/actions/BUILD b/st2tests/testpacks/errorcheck/actions/BUILD new file mode 100644 index 0000000000..6c95f66377 --- /dev/null +++ b/st2tests/testpacks/errorcheck/actions/BUILD @@ -0,0 +1 @@ +shell_sources() diff --git a/tools/BUILD b/tools/BUILD new file mode 100644 index 0000000000..a23b4b2fa6 --- /dev/null +++ b/tools/BUILD @@ -0,0 +1,5 @@ +python_sources() + +shell_sources( + name="tools0", +)