diff --git a/.github/workflows/build-test-release.yml b/.github/workflows/build-test-release.yml index 868317c46..ed0afbe7e 100644 --- a/.github/workflows/build-test-release.yml +++ b/.github/workflows/build-test-release.yml @@ -74,6 +74,8 @@ jobs: submodules: true - name: Install dependencies run: | + git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com + git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf ssh://git@github.com curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1 poetry install poetry run pytest -v tests/unit @@ -99,6 +101,8 @@ jobs: run: | mkdir test-results-${{ matrix.splunk.version }} - name: Test + env: + GH_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }} run: | export SPLUNK_APP_PACKAGE=./tests/e2e/addons/TA_fiction_indextime export SPLUNK_ADDON=TA_fiction_indextime @@ -159,14 +163,105 @@ jobs: with: python-version: 3.7 - run: | + git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com + git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf ssh://git@github.com curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1 poetry install poetry run pytest -v --splunk-version=${{ matrix.splunk.version }} -m docker -m ${{ matrix.test-marker }} tests/e2e + env: + GH_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }} + + # --------------------------------------------------------------------------- + # Validate PSA against multiple splunk-cim-models package versions. + # + # Matrix axes: + # splunk – every supported Splunk version (from meta job) + # cim-models – every package git ref listed below + # + # How to add a new CIM models release: + # 1. Append a new entry to the cim-models list with the git ref (branch + # or tag) and a short human-readable label. + # 2. The matrix will automatically run the splunk_cim_model e2e test + # for each (Splunk version, CIM models version) combination. + # + # Only the splunk_cim_model marker is used here because the other CIM + # e2e markers (splunk_app_cim_fiction, splunk_app_cim_broken) always pass + # --splunk-dm-path with custom fiction models and are therefore unaffected + # by the installed splunk-cim-models version. + # --------------------------------------------------------------------------- + test-cim-models-versions: + needs: + - meta + - pre-commit + - fossa-scan + - compliance-copyrights + - test-splunk-unit + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }} + cim-models: + - ref: "v1" + label: "1.x" + - ref: "v2" + label: "2.x" + # Add future releases here, e.g.: + # - ref: "v3" + # label: "3.x" + name: "CIM models ${{ matrix.cim-models.label }} / Splunk ${{ matrix.splunk.version }}" + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - uses: actions/setup-python@v5 + with: + python-version: "3.7" + - name: Install PSA with CIM models ${{ matrix.cim-models.label }} + env: + GH_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }} + run: | + git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com + git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf ssh://git@github.com + curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1 + poetry install + # Override the dev-dependency CIM models with the matrix version. + # Using pip inside the Poetry venv so the pytester subprocess sees + # the same environment. + poetry run pip install \ + "git+https://github.com/splunk/psa-cim-models.git@${{ matrix.cim-models.ref }}" + - name: Verify splunk-cim-models ${{ matrix.cim-models.label }} + run: | + poetry run python - <<'EOF' + import splunk_cim_models as scm + print("DATA_MODELS_PATH:", scm.DATA_MODELS_PATH) + print("CIM versions available:", list(scm.datamodels.keys())) + EOF + - name: Run CIM compatibility e2e tests + env: + GH_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }} + run: | + # splunk_app_cim_fiction uses --splunk-dm-path with local fiction + # data models, so expected test outcomes are identical across all + # splunk-cim-models versions. It still exercises all PSA import + # paths (COMMON_FIELDS_PATH, DATAMODEL_SCHEMA_PATH, datamodels) so + # an incompatible package version will surface as a collection or + # runtime error rather than a wrong-field assertion. + # + # splunk_cim_model (real Change/Network_Traffic models) is left to + # test-splunk-matrix, which always uses the default v2 dev + # dependency and asserts version-specific field outcomes. + poetry run pytest -v \ + --splunk-version=${{ matrix.splunk.version }} \ + -m docker \ + -m splunk_app_cim_fiction \ + tests/e2e publish: needs: - test-splunk-external - test-splunk-matrix + - test-cim-models-versions runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 diff --git a/.licenserc.yaml b/.licenserc.yaml index eeaa31d26..1b25cf7bb 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -38,3 +38,4 @@ header: - "pytest_splunk_addon/.ignore_splunk_internal_errors" - "pytest_splunk_addon/docker_class.py" - "deps" + - "splunk-cim-models/**" diff --git a/docker-compose-ci.yml b/docker-compose-ci.yml index ade2fe765..93587562b 100644 --- a/docker-compose-ci.yml +++ b/docker-compose-ci.yml @@ -32,6 +32,8 @@ services: - sc4s volumes: - results:/work/test-results + environment: + - GH_TOKEN sc4s: image: ghcr.io/splunk/splunk-connect-for-syslog/container2:latest diff --git a/docs/cim_tests.md b/docs/cim_tests.md index 1aae162bd..9afbd8292 100644 --- a/docs/cim_tests.md +++ b/docs/cim_tests.md @@ -2,12 +2,42 @@ ## Overview -The CIM tests are written with a purpose of testing the compatibility of the add-on with CIM Data Models (Based on Splunk_SA_CIM 4.15.0). +The CIM tests are written with a purpose of testing the compatibility of the add-on with CIM Data Models. An add-on is said to be CIM compatible if it fulfils the following two criteria: -1. The add-on extracts all the fields with valid values, which are marked as required by the [Data Model Definitions](https://github.com/splunk/pytest-splunk-addon/tree/main/pytest_splunk_addon/standard_lib/data_models). +1. The add-on extracts all the fields with valid values, which are marked as required by the [Data Model Definitions](https://github.com/splunk/psa-cim-models). 2. Any event for the add-on is not mapped with more than one data model. +## CIM Data Models Package (`splunk-cim-models`) + +CIM data model definitions are provided by the separate +[`splunk-cim-models`](https://github.com/splunk/psa-cim-models) package. +This lets you update or pin CIM definitions independently of `pytest-splunk-addon` itself. + +**Install for CIM testing:** + +```console +pip install splunk-cim-models +``` + +Or, during development, install the latest from the repository: + +```console +pip install git+https://github.com/splunk/psa-cim-models.git@v2 +``` + +The package exposes: + +| Symbol | Description | +|---|---| +| `DATA_MODELS_PATH` | Path to the directory containing the built-in CIM JSON data model files | +| `COMMON_FIELDS_PATH` | Path to `CommonFields.json` (fields forbidden in props/search) | +| `DATAMODEL_SCHEMA_PATH` | Path to `DatamodelSchema.json` (JSON schema for validating custom data model files) | +| `datamodels` | Dict mapping CIM version strings to recommended fields per model | + +If `splunk-cim-models` is not installed, any test run that exercises CIM functionality +will raise an `ImportError` with a message pointing to the package. + ______________________________________________________________________ To generate test cases only for CIM compatibility, append the following marker to pytest command: @@ -30,7 +60,7 @@ To generate test cases only for CIM compatibility, append the following marker t **Workflow:** - Plugin parses tags.conf to get a list of tags for each eventtype. - - Plugin parses all the [supported datamodels](https://github.com/splunk/pytest-splunk-addon/tree/main/pytest_splunk_addon/standard_lib/data_models). + - Plugin parses all the [supported datamodels](https://github.com/splunk/psa-cim-models). - Then it gets a list of the datasets mapped with an eventtype. - Generates test case for each eventtype. @@ -79,11 +109,11 @@ To generate test cases only for CIM compatibility, append the following marker t **Workflow:** - - Plugin collects the list of not_allowed_in_search fields from mapped datasets and [CommonFields.json](https://github.com/splunk/pytest-splunk-addon/blob/main/pytest_splunk_addon/standard_lib/cim_tests/CommonFields.json). + - Plugin collects the list of not_allowed_in_search fields from mapped datasets and [CommonFields.json](https://github.com/splunk/psa-cim-models/blob/v2/splunk_cim_models/CommonFields.json). - Using search query the test case verifies if not_allowed_in_search fields are populated in search or not. > **_NOTE:_** - [CommonFields.json](https://github.com/splunk/pytest-splunk-addon/blob/main/pytest_splunk_addon/standard_lib/cim_tests/CommonFields.json) contains fields which are automatically provided by asset and identity correlation features of applications like Splunk Enterprise Security. + [CommonFields.json](https://github.com/splunk/psa-cim-models/blob/v2/splunk_cim_models/CommonFields.json) contains fields which are automatically provided by asset and identity correlation features of applications like Splunk Enterprise Security. **4. Testcase for all not_allowed_in_props fields** diff --git a/docs/contributing.md b/docs/contributing.md index 49401576a..d366f7cca 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -18,6 +18,42 @@ To install currently checked out version of pytest-splunk-addon use: $ poetry install ``` +This installs `splunk-cim-models` automatically as a dev dependency (from the `v2` branch of +[psa-cim-models](https://github.com/splunk/psa-cim-models)). In CI or when installing from +PyPI, install `splunk-cim-models` separately before running CIM tests: + +``` +$ pip install splunk-cim-models +``` + +### Working with `splunk-cim-models` + +CIM data model definitions live in the separate +[`splunk-cim-models`](https://github.com/splunk/psa-cim-models) package. +PSA imports four symbols from it: + +| Symbol | Used by | +|---|---| +| `DATA_MODELS_PATH` | `app_test_generator.py` — default path for `--splunk_dm_path` | +| `COMMON_FIELDS_PATH` | `cim_tests/test_generator.py` — fields forbidden in props/search | +| `DATAMODEL_SCHEMA_PATH` | `cim_tests/json_schema.py` — JSON schema for custom data models | +| `datamodels` | `splunk.py` — CIM version → recommended fields map | + +To update CIM definitions locally without waiting for a `splunk-cim-models` release: + +```bash +# Edit files under splunk-cim-models/ then reinstall editable +pip install -e path/to/psa-cim-models/ + +# Verify +python -c "from splunk_cim_models import datamodels; print(list(datamodels.keys()))" +``` + +After editing, run the unit tests to confirm nothing is broken: + +```bash +poetry run pytest -v tests/unit +``` ### Unit tests diff --git a/docs/how_to_use.md b/docs/how_to_use.md index e72083705..058d9e80e 100644 --- a/docs/how_to_use.md +++ b/docs/how_to_use.md @@ -460,6 +460,12 @@ def splunk_setup(splunk): How can this be achieved : - - Make json representation of the data models, which satisfies this [DataModelSchema](https://github.com/splunk/pytest-splunk-addon/blob/main/pytest_splunk_addon/cim_tests/DatamodelSchema.json). - - Provide the path to the directory having all the data models by adding `--splunk_dm_path path_to_dir` to the pytest command - - The test cases will now be generated for the data models provided to the plugin and not for the [default data models](https://github.com/splunk/pytest-splunk-addon/tree/main/pytest_splunk_addon/data_models). + - Make json representation of the data models, which satisfies the [DatamodelSchema](https://github.com/splunk/psa-cim-models/blob/v2/splunk_cim_models/DatamodelSchema.json) provided by the `splunk-cim-models` package. + - Provide the path to the directory having all the data models by adding `--splunk_dm_path path_to_dir` to the pytest command. + - The test cases will now be generated for the data models provided to the plugin and not for the [default data models](https://github.com/splunk/psa-cim-models/tree/v2/splunk_cim_models/data_models) bundled in `splunk-cim-models`. + +> **_NOTE:_** CIM data model definitions are provided by the [`splunk-cim-models`](https://github.com/splunk/psa-cim-models) package. Install it separately before running CIM tests: +> +> ```console +> pip install splunk-cim-models +> ``` diff --git a/docs/index.md b/docs/index.md index 842acd26d..f78ea188e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -8,6 +8,7 @@ which allows the user to test [knowledge objects](https://docs.splunk.com/Splexi - Splunk App or Add-on package - Splunk instance with App or Add-on installed (Not required if using Docker) - Docker (Not required if using external Splunk instance) +- [`splunk-cim-models`](https://github.com/splunk/psa-cim-models) — required for [CIM Compatibility Tests](./cim_tests.md) (not installed automatically) ## Support @@ -22,6 +23,17 @@ pytest-splunk-addon can be installed via pip from PyPI: pip3 install pytest-splunk-addon ``` +To run **CIM compatibility tests** you also need the CIM data models package: + +```console +pip3 install splunk-cim-models +``` + +`splunk-cim-models` is versioned independently of `pytest-splunk-addon` so that CIM +definitions can be updated without a full PSA release. See the +[CIM Compatibility Tests](./cim_tests.md) page for details on how the two packages +interact and how to pin or override data model definitions. + ## Features The pytest-splunk-addon works by dynamically generating different types of tests for Splunk apps and add-ons by parsing their configuration files. Specifically, it looks at the .conf files in the provided Splunk app/add-on to create: diff --git a/entrypoint.sh b/entrypoint.sh index 3664f2a46..2e168999b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,6 +9,10 @@ pyenv local 3.7.8 curl -sSL https://install.python-poetry.org | python - --version 1.5.1 export PATH="/root/.local/bin:$PATH" source ~/.poetry/env +if [ -n "$GH_TOKEN" ]; then + git config --global --add url."https://$GH_TOKEN@github.com".insteadOf https://github.com + git config --global --add url."https://$GH_TOKEN@github.com".insteadOf ssh://git@github.com +fi sleep 15 poetry install exec poetry run pytest -vv $@ diff --git a/poetry.lock b/poetry.lock index f78dd9f1a..d96b8ab46 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.1.4 and should not be changed by hand. [[package]] name = "addonfactory-splunk-conf-parser-lib" @@ -6,6 +6,7 @@ version = "0.4.3" description = "Splunk .conf files parser" optional = false python-versions = "<4.0,>=3.7" +groups = ["main"] files = [ {file = "addonfactory_splunk_conf_parser_lib-0.4.3-py3-none-any.whl", hash = "sha256:16a66c1829eec876c21b2d2ee2b2ef305bc23516837fc0e63d5e7512c06d357d"}, {file = "addonfactory_splunk_conf_parser_lib-0.4.3.tar.gz", hash = "sha256:847e2eb34b3be35d1e5d3d5a2cdaec1ccd33cc687b7bbd1f3f746184f16b1479"}, @@ -17,6 +18,7 @@ version = "24.2.0" description = "Classes Without Boilerplate" optional = false python-versions = ">=3.7" +groups = ["main"] files = [ {file = "attrs-24.2.0-py3-none-any.whl", hash = "sha256:81921eb96de3191c8258c199618104dd27ac608d9366f5e35d011eae1867ede2"}, {file = "attrs-24.2.0.tar.gz", hash = "sha256:5cfb1b9148b5b086569baec03f20d7b6bf3bcacc9a42bebf87ffaaca362f6346"}, @@ -26,12 +28,12 @@ files = [ importlib-metadata = {version = "*", markers = "python_version < \"3.8\""} [package.extras] -benchmark = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-codspeed", "pytest-mypy-plugins", "pytest-xdist[psutil]"] -cov = ["cloudpickle", "coverage[toml] (>=5.3)", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] -dev = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pre-commit", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] +benchmark = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.11.1) ; platform_python_implementation == \"CPython\" and python_version >= \"3.9\"", "pympler", "pytest (>=4.3.0)", "pytest-codspeed", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version >= \"3.9\" and python_version < \"3.13\"", "pytest-xdist[psutil]"] +cov = ["cloudpickle ; platform_python_implementation == \"CPython\"", "coverage[toml] (>=5.3)", "hypothesis", "mypy (>=1.11.1) ; platform_python_implementation == \"CPython\" and python_version >= \"3.9\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version >= \"3.9\" and python_version < \"3.13\"", "pytest-xdist[psutil]"] +dev = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.11.1) ; platform_python_implementation == \"CPython\" and python_version >= \"3.9\"", "pre-commit", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version >= \"3.9\" and python_version < \"3.13\"", "pytest-xdist[psutil]"] docs = ["cogapp", "furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier (<24.7)"] -tests = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] -tests-mypy = ["mypy (>=1.11.1)", "pytest-mypy-plugins"] +tests = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.11.1) ; platform_python_implementation == \"CPython\" and python_version >= \"3.9\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version >= \"3.9\" and python_version < \"3.13\"", "pytest-xdist[psutil]"] +tests-mypy = ["mypy (>=1.11.1) ; platform_python_implementation == \"CPython\" and python_version >= \"3.9\"", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version >= \"3.9\" and python_version < \"3.13\""] [[package]] name = "certifi" @@ -39,6 +41,7 @@ version = "2024.12.14" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.6" +groups = ["main", "dev"] files = [ {file = "certifi-2024.12.14-py3-none-any.whl", hash = "sha256:1275f7a45be9464efc1173084eaa30f866fe2e47d389406136d332ed4967ec56"}, {file = "certifi-2024.12.14.tar.gz", hash = "sha256:b650d30f370c2b724812bee08008be0c4163b163ddaec3f2546c1caf65f191db"}, @@ -46,90 +49,125 @@ files = [ [[package]] name = "charset-normalizer" -version = "3.4.3" +version = "3.4.4" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." optional = false python-versions = ">=3.7" -files = [ - {file = "charset_normalizer-3.4.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:fb7f67a1bfa6e40b438170ebdc8158b78dc465a5a67b6dde178a46987b244a72"}, - {file = "charset_normalizer-3.4.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:cc9370a2da1ac13f0153780040f465839e6cccb4a1e44810124b4e22483c93fe"}, - {file = "charset_normalizer-3.4.3-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:07a0eae9e2787b586e129fdcbe1af6997f8d0e5abaa0bc98c0e20e124d67e601"}, - {file = "charset_normalizer-3.4.3-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:74d77e25adda8581ffc1c720f1c81ca082921329452eba58b16233ab1842141c"}, - {file = "charset_normalizer-3.4.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d0e909868420b7049dafd3a31d45125b31143eec59235311fc4c57ea26a4acd2"}, - {file = "charset_normalizer-3.4.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:c6f162aabe9a91a309510d74eeb6507fab5fff92337a15acbe77753d88d9dcf0"}, - {file = "charset_normalizer-3.4.3-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:4ca4c094de7771a98d7fbd67d9e5dbf1eb73efa4f744a730437d8a3a5cf994f0"}, - {file = "charset_normalizer-3.4.3-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:02425242e96bcf29a49711b0ca9f37e451da7c70562bc10e8ed992a5a7a25cc0"}, - {file = "charset_normalizer-3.4.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:78deba4d8f9590fe4dae384aeff04082510a709957e968753ff3c48399f6f92a"}, - {file = "charset_normalizer-3.4.3-cp310-cp310-win32.whl", hash = "sha256:d79c198e27580c8e958906f803e63cddb77653731be08851c7df0b1a14a8fc0f"}, - {file = "charset_normalizer-3.4.3-cp310-cp310-win_amd64.whl", hash = "sha256:c6e490913a46fa054e03699c70019ab869e990270597018cef1d8562132c2669"}, - {file = "charset_normalizer-3.4.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:b256ee2e749283ef3ddcff51a675ff43798d92d746d1a6e4631bf8c707d22d0b"}, - {file = "charset_normalizer-3.4.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:13faeacfe61784e2559e690fc53fa4c5ae97c6fcedb8eb6fb8d0a15b475d2c64"}, - {file = "charset_normalizer-3.4.3-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:00237675befef519d9af72169d8604a067d92755e84fe76492fef5441db05b91"}, - {file = "charset_normalizer-3.4.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:585f3b2a80fbd26b048a0be90c5aae8f06605d3c92615911c3a2b03a8a3b796f"}, - {file = "charset_normalizer-3.4.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0e78314bdc32fa80696f72fa16dc61168fda4d6a0c014e0380f9d02f0e5d8a07"}, - {file = "charset_normalizer-3.4.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:96b2b3d1a83ad55310de8c7b4a2d04d9277d5591f40761274856635acc5fcb30"}, - {file = "charset_normalizer-3.4.3-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:939578d9d8fd4299220161fdd76e86c6a251987476f5243e8864a7844476ba14"}, - {file = "charset_normalizer-3.4.3-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:fd10de089bcdcd1be95a2f73dbe6254798ec1bda9f450d5828c96f93e2536b9c"}, - {file = "charset_normalizer-3.4.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:1e8ac75d72fa3775e0b7cb7e4629cec13b7514d928d15ef8ea06bca03ef01cae"}, - {file = "charset_normalizer-3.4.3-cp311-cp311-win32.whl", hash = "sha256:6cf8fd4c04756b6b60146d98cd8a77d0cdae0e1ca20329da2ac85eed779b6849"}, - {file = "charset_normalizer-3.4.3-cp311-cp311-win_amd64.whl", hash = "sha256:31a9a6f775f9bcd865d88ee350f0ffb0e25936a7f930ca98995c05abf1faf21c"}, - {file = "charset_normalizer-3.4.3-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:e28e334d3ff134e88989d90ba04b47d84382a828c061d0d1027b1b12a62b39b1"}, - {file = "charset_normalizer-3.4.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0cacf8f7297b0c4fcb74227692ca46b4a5852f8f4f24b3c766dd94a1075c4884"}, - {file = "charset_normalizer-3.4.3-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c6fd51128a41297f5409deab284fecbe5305ebd7e5a1f959bee1c054622b7018"}, - {file = "charset_normalizer-3.4.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3cfb2aad70f2c6debfbcb717f23b7eb55febc0bb23dcffc0f076009da10c6392"}, - {file = "charset_normalizer-3.4.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1606f4a55c0fd363d754049cdf400175ee96c992b1f8018b993941f221221c5f"}, - {file = "charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:027b776c26d38b7f15b26a5da1044f376455fb3766df8fc38563b4efbc515154"}, - {file = "charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:42e5088973e56e31e4fa58eb6bd709e42fc03799c11c42929592889a2e54c491"}, - {file = "charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:cc34f233c9e71701040d772aa7490318673aa7164a0efe3172b2981218c26d93"}, - {file = "charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:320e8e66157cc4e247d9ddca8e21f427efc7a04bbd0ac8a9faf56583fa543f9f"}, - {file = "charset_normalizer-3.4.3-cp312-cp312-win32.whl", hash = "sha256:fb6fecfd65564f208cbf0fba07f107fb661bcd1a7c389edbced3f7a493f70e37"}, - {file = "charset_normalizer-3.4.3-cp312-cp312-win_amd64.whl", hash = "sha256:86df271bf921c2ee3818f0522e9a5b8092ca2ad8b065ece5d7d9d0e9f4849bcc"}, - {file = "charset_normalizer-3.4.3-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:14c2a87c65b351109f6abfc424cab3927b3bdece6f706e4d12faaf3d52ee5efe"}, - {file = "charset_normalizer-3.4.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:41d1fc408ff5fdfb910200ec0e74abc40387bccb3252f3f27c0676731df2b2c8"}, - {file = "charset_normalizer-3.4.3-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:1bb60174149316da1c35fa5233681f7c0f9f514509b8e399ab70fea5f17e45c9"}, - {file = "charset_normalizer-3.4.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:30d006f98569de3459c2fc1f2acde170b7b2bd265dc1943e87e1a4efe1b67c31"}, - {file = "charset_normalizer-3.4.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:416175faf02e4b0810f1f38bcb54682878a4af94059a1cd63b8747244420801f"}, - {file = "charset_normalizer-3.4.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:6aab0f181c486f973bc7262a97f5aca3ee7e1437011ef0c2ec04b5a11d16c927"}, - {file = "charset_normalizer-3.4.3-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:fdabf8315679312cfa71302f9bd509ded4f2f263fb5b765cf1433b39106c3cc9"}, - {file = "charset_normalizer-3.4.3-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:bd28b817ea8c70215401f657edef3a8aa83c29d447fb0b622c35403780ba11d5"}, - {file = "charset_normalizer-3.4.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:18343b2d246dc6761a249ba1fb13f9ee9a2bcd95decc767319506056ea4ad4dc"}, - {file = "charset_normalizer-3.4.3-cp313-cp313-win32.whl", hash = "sha256:6fb70de56f1859a3f71261cbe41005f56a7842cc348d3aeb26237560bfa5e0ce"}, - {file = "charset_normalizer-3.4.3-cp313-cp313-win_amd64.whl", hash = "sha256:cf1ebb7d78e1ad8ec2a8c4732c7be2e736f6e5123a4146c5b89c9d1f585f8cef"}, - {file = "charset_normalizer-3.4.3-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:3cd35b7e8aedeb9e34c41385fda4f73ba609e561faedfae0a9e75e44ac558a15"}, - {file = "charset_normalizer-3.4.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b89bc04de1d83006373429975f8ef9e7932534b8cc9ca582e4db7d20d91816db"}, - {file = "charset_normalizer-3.4.3-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2001a39612b241dae17b4687898843f254f8748b796a2e16f1051a17078d991d"}, - {file = "charset_normalizer-3.4.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8dcfc373f888e4fb39a7bc57e93e3b845e7f462dacc008d9749568b1c4ece096"}, - {file = "charset_normalizer-3.4.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:18b97b8404387b96cdbd30ad660f6407799126d26a39ca65729162fd810a99aa"}, - {file = "charset_normalizer-3.4.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ccf600859c183d70eb47e05a44cd80a4ce77394d1ac0f79dbd2dd90a69a3a049"}, - {file = "charset_normalizer-3.4.3-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:53cd68b185d98dde4ad8990e56a58dea83a4162161b1ea9272e5c9182ce415e0"}, - {file = "charset_normalizer-3.4.3-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:30a96e1e1f865f78b030d65241c1ee850cdf422d869e9028e2fc1d5e4db73b92"}, - {file = "charset_normalizer-3.4.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:d716a916938e03231e86e43782ca7878fb602a125a91e7acb8b5112e2e96ac16"}, - {file = "charset_normalizer-3.4.3-cp314-cp314-win32.whl", hash = "sha256:c6dbd0ccdda3a2ba7c2ecd9d77b37f3b5831687d8dc1b6ca5f56a4880cc7b7ce"}, - {file = "charset_normalizer-3.4.3-cp314-cp314-win_amd64.whl", hash = "sha256:73dc19b562516fc9bcf6e5d6e596df0b4eb98d87e4f79f3ae71840e6ed21361c"}, - {file = "charset_normalizer-3.4.3-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:0f2be7e0cf7754b9a30eb01f4295cc3d4358a479843b31f328afd210e2c7598c"}, - {file = "charset_normalizer-3.4.3-cp38-cp38-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c60e092517a73c632ec38e290eba714e9627abe9d301c8c8a12ec32c314a2a4b"}, - {file = "charset_normalizer-3.4.3-cp38-cp38-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:252098c8c7a873e17dd696ed98bbe91dbacd571da4b87df3736768efa7a792e4"}, - {file = "charset_normalizer-3.4.3-cp38-cp38-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3653fad4fe3ed447a596ae8638b437f827234f01a8cd801842e43f3d0a6b281b"}, - {file = "charset_normalizer-3.4.3-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8999f965f922ae054125286faf9f11bc6932184b93011d138925a1773830bbe9"}, - {file = "charset_normalizer-3.4.3-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:d95bfb53c211b57198bb91c46dd5a2d8018b3af446583aab40074bf7988401cb"}, - {file = "charset_normalizer-3.4.3-cp38-cp38-musllinux_1_2_ppc64le.whl", hash = "sha256:5b413b0b1bfd94dbf4023ad6945889f374cd24e3f62de58d6bb102c4d9ae534a"}, - {file = "charset_normalizer-3.4.3-cp38-cp38-musllinux_1_2_s390x.whl", hash = "sha256:b5e3b2d152e74e100a9e9573837aba24aab611d39428ded46f4e4022ea7d1942"}, - {file = "charset_normalizer-3.4.3-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:a2d08ac246bb48479170408d6c19f6385fa743e7157d716e144cad849b2dd94b"}, - {file = "charset_normalizer-3.4.3-cp38-cp38-win32.whl", hash = "sha256:ec557499516fc90fd374bf2e32349a2887a876fbf162c160e3c01b6849eaf557"}, - {file = "charset_normalizer-3.4.3-cp38-cp38-win_amd64.whl", hash = "sha256:5d8d01eac18c423815ed4f4a2ec3b439d654e55ee4ad610e153cf02faf67ea40"}, - {file = "charset_normalizer-3.4.3-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:70bfc5f2c318afece2f5838ea5e4c3febada0be750fcf4775641052bbba14d05"}, - {file = "charset_normalizer-3.4.3-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:23b6b24d74478dc833444cbd927c338349d6ae852ba53a0d02a2de1fce45b96e"}, - {file = "charset_normalizer-3.4.3-cp39-cp39-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:34a7f768e3f985abdb42841e20e17b330ad3aaf4bb7e7aeeb73db2e70f077b99"}, - {file = "charset_normalizer-3.4.3-cp39-cp39-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:fb731e5deb0c7ef82d698b0f4c5bb724633ee2a489401594c5c88b02e6cb15f7"}, - {file = "charset_normalizer-3.4.3-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:257f26fed7d7ff59921b78244f3cd93ed2af1800ff048c33f624c87475819dd7"}, - {file = "charset_normalizer-3.4.3-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:1ef99f0456d3d46a50945c98de1774da86f8e992ab5c77865ea8b8195341fc19"}, - {file = "charset_normalizer-3.4.3-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:2c322db9c8c89009a990ef07c3bcc9f011a3269bc06782f916cd3d9eed7c9312"}, - {file = "charset_normalizer-3.4.3-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:511729f456829ef86ac41ca78c63a5cb55240ed23b4b737faca0eb1abb1c41bc"}, - {file = "charset_normalizer-3.4.3-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:88ab34806dea0671532d3f82d82b85e8fc23d7b2dd12fa837978dad9bb392a34"}, - {file = "charset_normalizer-3.4.3-cp39-cp39-win32.whl", hash = "sha256:16a8770207946ac75703458e2c743631c79c59c5890c80011d536248f8eaa432"}, - {file = "charset_normalizer-3.4.3-cp39-cp39-win_amd64.whl", hash = "sha256:d22dbedd33326a4a5190dd4fe9e9e693ef12160c77382d9e87919bce54f3d4ca"}, - {file = "charset_normalizer-3.4.3-py3-none-any.whl", hash = "sha256:ce571ab16d890d23b5c278547ba694193a45011ff86a9162a71307ed9f86759a"}, - {file = "charset_normalizer-3.4.3.tar.gz", hash = "sha256:6fce4b8500244f6fcb71465d4a4930d132ba9ab8e71a7859e6a5d59851068d14"}, +groups = ["main", "dev"] +files = [ + {file = "charset_normalizer-3.4.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e824f1492727fa856dd6eda4f7cee25f8518a12f3c4a56a74e8095695089cf6d"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4bd5d4137d500351a30687c2d3971758aac9a19208fc110ccb9d7188fbe709e8"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:027f6de494925c0ab2a55eab46ae5129951638a49a34d87f4c3eda90f696b4ad"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f820802628d2694cb7e56db99213f930856014862f3fd943d290ea8438d07ca8"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:798d75d81754988d2565bff1b97ba5a44411867c0cf32b77a7e8f8d84796b10d"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9d1bb833febdff5c8927f922386db610b49db6e0d4f4ee29601d71e7c2694313"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:9cd98cdc06614a2f768d2b7286d66805f94c48cde050acdbbb7db2600ab3197e"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:077fbb858e903c73f6c9db43374fd213b0b6a778106bc7032446a8e8b5b38b93"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:244bfb999c71b35de57821b8ea746b24e863398194a4014e4c76adc2bbdfeff0"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:64b55f9dce520635f018f907ff1b0df1fdc31f2795a922fb49dd14fbcdf48c84"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:faa3a41b2b66b6e50f84ae4a68c64fcd0c44355741c6374813a800cd6695db9e"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:6515f3182dbe4ea06ced2d9e8666d97b46ef4c75e326b79bb624110f122551db"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:cc00f04ed596e9dc0da42ed17ac5e596c6ccba999ba6bd92b0e0aef2f170f2d6"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-win32.whl", hash = "sha256:f34be2938726fc13801220747472850852fe6b1ea75869a048d6f896838c896f"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-win_amd64.whl", hash = "sha256:a61900df84c667873b292c3de315a786dd8dac506704dea57bc957bd31e22c7d"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-win_arm64.whl", hash = "sha256:cead0978fc57397645f12578bfd2d5ea9138ea0fac82b2f63f7f7c6877986a69"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:6e1fcf0720908f200cd21aa4e6750a48ff6ce4afe7ff5a79a90d5ed8a08296f8"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5f819d5fe9234f9f82d75bdfa9aef3a3d72c4d24a6e57aeaebba32a704553aa0"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a59cb51917aa591b1c4e6a43c132f0cdc3c76dbad6155df4e28ee626cc77a0a3"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8ef3c867360f88ac904fd3f5e1f902f13307af9052646963ee08ff4f131adafc"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d9e45d7faa48ee908174d8fe84854479ef838fc6a705c9315372eacbc2f02897"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:840c25fb618a231545cbab0564a799f101b63b9901f2569faecd6b222ac72381"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ca5862d5b3928c4940729dacc329aa9102900382fea192fc5e52eb69d6093815"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d9c7f57c3d666a53421049053eaacdd14bbd0a528e2186fcb2e672effd053bb0"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:277e970e750505ed74c832b4bf75dac7476262ee2a013f5574dd49075879e161"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:31fd66405eaf47bb62e8cd575dc621c56c668f27d46a61d975a249930dd5e2a4"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:0d3d8f15c07f86e9ff82319b3d9ef6f4bf907608f53fe9d92b28ea9ae3d1fd89"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:9f7fcd74d410a36883701fafa2482a6af2ff5ba96b9a620e9e0721e28ead5569"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ebf3e58c7ec8a8bed6d66a75d7fb37b55e5015b03ceae72a8e7c74495551e224"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-win32.whl", hash = "sha256:eecbc200c7fd5ddb9a7f16c7decb07b566c29fa2161a16cf67b8d068bd21690a"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-win_amd64.whl", hash = "sha256:5ae497466c7901d54b639cf42d5b8c1b6a4fead55215500d2f486d34db48d016"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-win_arm64.whl", hash = "sha256:65e2befcd84bc6f37095f5961e68a6f077bf44946771354a28ad434c2cce0ae1"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:0a98e6759f854bd25a58a73fa88833fba3b7c491169f86ce1180c948ab3fd394"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b5b290ccc2a263e8d185130284f8501e3e36c5e02750fc6b6bdeb2e9e96f1e25"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:74bb723680f9f7a6234dcf67aea57e708ec1fbdf5699fb91dfd6f511b0a320ef"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f1e34719c6ed0b92f418c7c780480b26b5d9c50349e9a9af7d76bf757530350d"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2437418e20515acec67d86e12bf70056a33abdacb5cb1655042f6538d6b085a8"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:11d694519d7f29d6cd09f6ac70028dba10f92f6cdd059096db198c283794ac86"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ac1c4a689edcc530fc9d9aa11f5774b9e2f33f9a0c6a57864e90908f5208d30a"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:21d142cc6c0ec30d2efee5068ca36c128a30b0f2c53c1c07bd78cb6bc1d3be5f"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:5dbe56a36425d26d6cfb40ce79c314a2e4dd6211d51d6d2191c00bed34f354cc"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:5bfbb1b9acf3334612667b61bd3002196fe2a1eb4dd74d247e0f2a4d50ec9bbf"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:d055ec1e26e441f6187acf818b73564e6e6282709e9bcb5b63f5b23068356a15"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:af2d8c67d8e573d6de5bc30cdb27e9b95e49115cd9baad5ddbd1a6207aaa82a9"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:780236ac706e66881f3b7f2f32dfe90507a09e67d1d454c762cf642e6e1586e0"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-win32.whl", hash = "sha256:5833d2c39d8896e4e19b689ffc198f08ea58116bee26dea51e362ecc7cd3ed26"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-win_amd64.whl", hash = "sha256:a79cfe37875f822425b89a82333404539ae63dbdddf97f84dcbc3d339aae9525"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-win_arm64.whl", hash = "sha256:376bec83a63b8021bb5c8ea75e21c4ccb86e7e45ca4eb81146091b56599b80c3"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:e1f185f86a6f3403aa2420e815904c67b2f9ebc443f045edd0de921108345794"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6b39f987ae8ccdf0d2642338faf2abb1862340facc796048b604ef14919e55ed"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3162d5d8ce1bb98dd51af660f2121c55d0fa541b46dff7bb9b9f86ea1d87de72"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:81d5eb2a312700f4ecaa977a8235b634ce853200e828fbadf3a9c50bab278328"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5bd2293095d766545ec1a8f612559f6b40abc0eb18bb2f5d1171872d34036ede"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a8a8b89589086a25749f471e6a900d3f662d1d3b6e2e59dcecf787b1cc3a1894"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bc7637e2f80d8530ee4a78e878bce464f70087ce73cf7c1caf142416923b98f1"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f8bf04158c6b607d747e93949aa60618b61312fe647a6369f88ce2ff16043490"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:554af85e960429cf30784dd47447d5125aaa3b99a6f0683589dbd27e2f45da44"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:74018750915ee7ad843a774364e13a3db91682f26142baddf775342c3f5b1133"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:c0463276121fdee9c49b98908b3a89c39be45d86d1dbaa22957e38f6321d4ce3"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:362d61fd13843997c1c446760ef36f240cf81d3ebf74ac62652aebaf7838561e"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9a26f18905b8dd5d685d6d07b0cdf98a79f3c7a918906af7cc143ea2e164c8bc"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-win32.whl", hash = "sha256:9b35f4c90079ff2e2edc5b26c0c77925e5d2d255c42c74fdb70fb49b172726ac"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-win_amd64.whl", hash = "sha256:b435cba5f4f750aa6c0a0d92c541fb79f69a387c91e61f1795227e4ed9cece14"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-win_arm64.whl", hash = "sha256:542d2cee80be6f80247095cc36c418f7bddd14f4a6de45af91dfad36d817bba2"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:da3326d9e65ef63a817ecbcc0df6e94463713b754fe293eaa03da99befb9a5bd"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8af65f14dc14a79b924524b1e7fffe304517b2bff5a58bf64f30b98bbc5079eb"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:74664978bb272435107de04e36db5a9735e78232b85b77d45cfb38f758efd33e"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:752944c7ffbfdd10c074dc58ec2d5a8a4cd9493b314d367c14d24c17684ddd14"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d1f13550535ad8cff21b8d757a3257963e951d96e20ec82ab44bc64aeb62a191"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ecaae4149d99b1c9e7b88bb03e3221956f68fd6d50be2ef061b2381b61d20838"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:cb6254dc36b47a990e59e1068afacdcd02958bdcce30bb50cc1700a8b9d624a6"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c8ae8a0f02f57a6e61203a31428fa1d677cbe50c93622b4149d5c0f319c1d19e"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:47cc91b2f4dd2833fddaedd2893006b0106129d4b94fdb6af1f4ce5a9965577c"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:82004af6c302b5d3ab2cfc4cc5f29db16123b1a8417f2e25f9066f91d4411090"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:2b7d8f6c26245217bd2ad053761201e9f9680f8ce52f0fcd8d0755aeae5b2152"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:799a7a5e4fb2d5898c60b640fd4981d6a25f1c11790935a44ce38c54e985f828"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:99ae2cffebb06e6c22bdc25801d7b30f503cc87dbd283479e7b606f70aff57ec"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-win32.whl", hash = "sha256:f9d332f8c2a2fcbffe1378594431458ddbef721c1769d78e2cbc06280d8155f9"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-win_amd64.whl", hash = "sha256:8a6562c3700cce886c5be75ade4a5db4214fda19fede41d9792d100288d8f94c"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-win_arm64.whl", hash = "sha256:de00632ca48df9daf77a2c65a484531649261ec9f25489917f09e455cb09ddb2"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:ce8a0633f41a967713a59c4139d29110c07e826d131a316b50ce11b1d79b4f84"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eaabd426fe94daf8fd157c32e571c85cb12e66692f15516a83a03264b08d06c3"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c4ef880e27901b6cc782f1b95f82da9313c0eb95c3af699103088fa0ac3ce9ac"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2aaba3b0819274cc41757a1da876f810a3e4d7b6eb25699253a4effef9e8e4af"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:778d2e08eda00f4256d7f672ca9fef386071c9202f5e4607920b86d7803387f2"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f155a433c2ec037d4e8df17d18922c3a0d9b3232a396690f17175d2946f0218d"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a8bf8d0f749c5757af2142fe7903a9df1d2e8aa3841559b2bad34b08d0e2bcf3"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:194f08cbb32dc406d6e1aea671a68be0823673db2832b38405deba2fb0d88f63"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_armv7l.whl", hash = "sha256:6aee717dcfead04c6eb1ce3bd29ac1e22663cdea57f943c87d1eab9a025438d7"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_ppc64le.whl", hash = "sha256:cd4b7ca9984e5e7985c12bc60a6f173f3c958eae74f3ef6624bb6b26e2abbae4"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_riscv64.whl", hash = "sha256:b7cf1017d601aa35e6bb650b6ad28652c9cd78ee6caff19f3c28d03e1c80acbf"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_s390x.whl", hash = "sha256:e912091979546adf63357d7e2ccff9b44f026c075aeaf25a52d0e95ad2281074"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:5cb4d72eea50c8868f5288b7f7f33ed276118325c1dfd3957089f6b519e1382a"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-win32.whl", hash = "sha256:837c2ce8c5a65a2035be9b3569c684358dfbf109fd3b6969630a87535495ceaa"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-win_amd64.whl", hash = "sha256:44c2a8734b333e0578090c4cd6b16f275e07aa6614ca8715e6c038e865e70576"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:a9768c477b9d7bd54bc0c86dbaebdec6f03306675526c9927c0e8a04e8f94af9"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1bee1e43c28aa63cb16e5c14e582580546b08e535299b8b6158a7c9c768a1f3d"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:fd44c878ea55ba351104cb93cc85e74916eb8fa440ca7903e57575e97394f608"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0f04b14ffe5fdc8c4933862d8306109a2c51e0704acfa35d51598eb45a1e89fc"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:cd09d08005f958f370f539f186d10aec3377d55b9eeb0d796025d4886119d76e"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4fe7859a4e3e8457458e2ff592f15ccb02f3da787fcd31e0183879c3ad4692a1"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:fa09f53c465e532f4d3db095e0c55b615f010ad81803d383195b6b5ca6cbf5f3"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:7fa17817dc5625de8a027cb8b26d9fefa3ea28c8253929b8d6649e705d2835b6"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_armv7l.whl", hash = "sha256:5947809c8a2417be3267efc979c47d76a079758166f7d43ef5ae8e9f92751f88"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:4902828217069c3c5c71094537a8e623f5d097858ac6ca8252f7b4d10b7560f1"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_riscv64.whl", hash = "sha256:7c308f7e26e4363d79df40ca5b2be1c6ba9f02bdbccfed5abddb7859a6ce72cf"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:2c9d3c380143a1fedbff95a312aa798578371eb29da42106a29019368a475318"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:cb01158d8b88ee68f15949894ccc6712278243d95f344770fa7593fa2d94410c"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-win32.whl", hash = "sha256:2677acec1a2f8ef614c6888b5b4ae4060cc184174a938ed4e8ef690e15d3e505"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-win_amd64.whl", hash = "sha256:f8e160feb2aed042cd657a72acc0b481212ed28b1b9a95c0cee1621b524e1966"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-win_arm64.whl", hash = "sha256:b5d84d37db046c5ca74ee7bb47dd6cbc13f80665fdde3e8040bdd3fb015ecb50"}, + {file = "charset_normalizer-3.4.4-py3-none-any.whl", hash = "sha256:7a32c560861a02ff789ad905a2fe94e3f840803362c84fecf1851cb4cf3dc37f"}, + {file = "charset_normalizer-3.4.4.tar.gz", hash = "sha256:94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a"}, ] [[package]] @@ -138,6 +176,8 @@ version = "0.4.6" description = "Cross-platform colored terminal text." optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" +groups = ["main", "dev"] +markers = "sys_platform == \"win32\"" files = [ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, @@ -149,6 +189,7 @@ version = "7.2.7" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.7" +groups = ["dev"] files = [ {file = "coverage-7.2.7-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d39b5b4f2a66ccae8b7263ac3c8170994b65266797fb96cbbfd3fb5b23921db8"}, {file = "coverage-7.2.7-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:6d040ef7c9859bb11dfeb056ff5b3872436e3b5e401817d87a31e1750b9ae2fb"}, @@ -216,7 +257,7 @@ files = [ tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.11.0a6\" and extra == \"toml\""} [package.extras] -toml = ["tomli"] +toml = ["tomli ; python_full_version <= \"3.11.0a6\""] [[package]] name = "defusedxml" @@ -224,6 +265,7 @@ version = "0.7.1" description = "XML bomb protection for Python stdlib modules" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +groups = ["main"] files = [ {file = "defusedxml-0.7.1-py2.py3-none-any.whl", hash = "sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61"}, {file = "defusedxml-0.7.1.tar.gz", hash = "sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69"}, @@ -235,6 +277,7 @@ version = "2.1.0" description = "A library to handle automated deprecations" optional = false python-versions = "*" +groups = ["main"] files = [ {file = "deprecation-2.1.0-py2.py3-none-any.whl", hash = "sha256:a10811591210e1fb0e768a8c25517cabeabcba6f0bf96564f8ff45189f90b14a"}, {file = "deprecation-2.1.0.tar.gz", hash = "sha256:72b3bde64e5d778694b0cf68178aed03d15e15477116add3fb773e581f9518ff"}, @@ -249,6 +292,7 @@ version = "4.1.5" description = "XPath 1.0/2.0/3.0/3.1 parsers and selectors for ElementTree and lxml" optional = false python-versions = ">=3.7" +groups = ["main"] files = [ {file = "elementpath-4.1.5-py3-none-any.whl", hash = "sha256:2ac1a2fb31eb22bbbf817f8cf6752f844513216263f0e3892c8e79782fe4bb55"}, {file = "elementpath-4.1.5.tar.gz", hash = "sha256:c2d6dc524b29ef751ecfc416b0627668119d8812441c555d7471da41d4bacb8d"}, @@ -259,13 +303,15 @@ dev = ["Sphinx", "coverage", "flake8", "lxml", "lxml-stubs", "memory-profiler", [[package]] name = "exceptiongroup" -version = "1.3.0" +version = "1.3.1" description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" +groups = ["main", "dev"] +markers = "python_version < \"3.11\"" files = [ - {file = "exceptiongroup-1.3.0-py3-none-any.whl", hash = "sha256:4d111e6e0c13d0644cad6ddaa7ed0261a0b36971f6d23e7ec9b4b9097da78a10"}, - {file = "exceptiongroup-1.3.0.tar.gz", hash = "sha256:b241f5885f560bc56a59ee63ca4c6a8bfa46ae4ad651af316d4e81817bb9fd88"}, + {file = "exceptiongroup-1.3.1-py3-none-any.whl", hash = "sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598"}, + {file = "exceptiongroup-1.3.1.tar.gz", hash = "sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219"}, ] [package.dependencies] @@ -280,6 +326,7 @@ version = "2.0.2" description = "execnet: rapid multi-Python deployment" optional = false python-versions = ">=3.7" +groups = ["main"] files = [ {file = "execnet-2.0.2-py3-none-any.whl", hash = "sha256:88256416ae766bc9e8895c76a87928c0012183da3cc4fc18016e6f050e025f41"}, {file = "execnet-2.0.2.tar.gz", hash = "sha256:cc59bc4423742fd71ad227122eb0dd44db51efb3dc4095b45ac9a08c770096af"}, @@ -294,6 +341,7 @@ version = "18.13.0" description = "Faker is a Python package that generates fake data for you." optional = false python-versions = ">=3.7" +groups = ["main"] files = [ {file = "Faker-18.13.0-py3-none-any.whl", hash = "sha256:801d1a2d71f1fc54d332de2ab19de7452454309937233ea2f7485402882d67b3"}, {file = "Faker-18.13.0.tar.gz", hash = "sha256:84bcf92bb725dd7341336eea4685df9a364f16f2470c4d29c1d7e6c5fd5a457d"}, @@ -309,6 +357,7 @@ version = "3.12.2" description = "A platform independent file lock." optional = false python-versions = ">=3.7" +groups = ["main"] files = [ {file = "filelock-3.12.2-py3-none-any.whl", hash = "sha256:cbb791cdea2a72f23da6ac5b5269ab0a0d161e9ef0100e653b69049a7706d1ec"}, {file = "filelock-3.12.2.tar.gz", hash = "sha256:002740518d8aa59a26b0c76e10fb8c6e15eae825d34b6fdf670333fd7b938d81"}, @@ -324,6 +373,7 @@ version = "1.5.1" description = "Let your Python tests travel through time" optional = false python-versions = ">=3.7" +groups = ["dev"] files = [ {file = "freezegun-1.5.1-py3-none-any.whl", hash = "sha256:bf111d7138a8abe55ab48a71755673dbaa4ab87f4cff5634a4442dfec34c15f1"}, {file = "freezegun-1.5.1.tar.gz", hash = "sha256:b29dedfcda6d5e8e083ce71b2b542753ad48cfec44037b3fc79702e2980a89e9"}, @@ -334,17 +384,18 @@ python-dateutil = ">=2.7" [[package]] name = "httplib2" -version = "0.30.0" +version = "0.31.2" description = "A comprehensive HTTP client library." optional = false python-versions = ">=3.6" +groups = ["main"] files = [ - {file = "httplib2-0.30.0-py3-none-any.whl", hash = "sha256:d10443a2bdfe0ea5dbb17e016726146d48b574208dafd41e854cf34e7d78842c"}, - {file = "httplib2-0.30.0.tar.gz", hash = "sha256:d5b23c11fcf8e57e00ff91b7008656af0f6242c8886fd97065c97509e4e548c5"}, + {file = "httplib2-0.31.2-py3-none-any.whl", hash = "sha256:dbf0c2fa3862acf3c55c078ea9c0bc4481d7dc5117cae71be9514912cf9f8349"}, + {file = "httplib2-0.31.2.tar.gz", hash = "sha256:385e0869d7397484f4eab426197a4c020b606edd43372492337c0b4010ae5d24"}, ] [package.dependencies] -pyparsing = ">=3.0.4,<4" +pyparsing = ">=3.1,<4" [[package]] name = "idna" @@ -352,6 +403,7 @@ version = "3.10" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.6" +groups = ["main", "dev"] files = [ {file = "idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"}, {file = "idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"}, @@ -366,6 +418,8 @@ version = "6.7.0" description = "Read metadata from Python packages" optional = false python-versions = ">=3.7" +groups = ["main", "dev"] +markers = "python_version == \"3.7\"" files = [ {file = "importlib_metadata-6.7.0-py3-none-any.whl", hash = "sha256:cb52082e659e97afc5dac71e79de97d8681de3aa07ff18578330904a9d18e5b5"}, {file = "importlib_metadata-6.7.0.tar.gz", hash = "sha256:1aaf550d4f73e5d6783e7acb77aec43d49da8017410afae93822cc9cca98c4d4"}, @@ -378,7 +432,7 @@ zipp = ">=0.5" [package.extras] docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] perf = ["ipython"] -testing = ["flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefs", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-mypy (>=0.9.1)", "pytest-perf (>=0.9.2)", "pytest-ruff"] +testing = ["flufl.flake8", "importlib-resources (>=1.3) ; python_version < \"3.9\"", "packaging", "pyfakefs", "pytest (>=6)", "pytest-black (>=0.3.7) ; platform_python_implementation != \"PyPy\"", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-mypy (>=0.9.1) ; platform_python_implementation != \"PyPy\"", "pytest-perf (>=0.9.2)", "pytest-ruff"] [[package]] name = "importlib-resources" @@ -386,6 +440,8 @@ version = "5.12.0" description = "Read resources from Python packages" optional = false python-versions = ">=3.7" +groups = ["main"] +markers = "python_version < \"3.9\"" files = [ {file = "importlib_resources-5.12.0-py3-none-any.whl", hash = "sha256:7b1deeebbf351c7578e09bf2f63fa2ce8b5ffec296e0d349139d43cca061a81a"}, {file = "importlib_resources-5.12.0.tar.gz", hash = "sha256:4be82589bf5c1d7999aedf2a45159d10cb3ca4f19b2271f8792bc8e6da7b22f6"}, @@ -396,7 +452,7 @@ zipp = {version = ">=3.1.0", markers = "python_version < \"3.10\""} [package.extras] docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["flake8 (<5)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)"] +testing = ["flake8 (<5)", "pytest (>=6)", "pytest-black (>=0.3.7) ; platform_python_implementation != \"PyPy\"", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8 ; python_version < \"3.12\"", "pytest-mypy (>=0.9.1) ; platform_python_implementation != \"PyPy\""] [[package]] name = "iniconfig" @@ -404,6 +460,7 @@ version = "2.0.0" description = "brain-dead simple config-ini parsing" optional = false python-versions = ">=3.7" +groups = ["main", "dev"] files = [ {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, @@ -415,6 +472,7 @@ version = "4.17.3" description = "An implementation of JSON Schema validation for Python" optional = false python-versions = ">=3.7" +groups = ["main"] files = [ {file = "jsonschema-4.17.3-py3-none-any.whl", hash = "sha256:a870ad254da1a8ca84b6a2905cac29d265f805acc57af304784962a2aa6508f6"}, {file = "jsonschema-4.17.3.tar.gz", hash = "sha256:0f864437ab8b6076ba6707453ef8f98a6a0d512a80e93f8abdb676f737ecb60d"}, @@ -438,6 +496,7 @@ version = "4.0.2" description = "Manipulates JUnit/xUnit Result XML files" optional = false python-versions = ">=3.6" +groups = ["main"] files = [ {file = "junitparser-4.0.2-py3-none-any.whl", hash = "sha256:94c3570e41fcaedc64cc3c634ca99457fe41a84dd1aa8ff74e9e12e66223a155"}, {file = "junitparser-4.0.2.tar.gz", hash = "sha256:d5d07cece6d4a600ff3b7b96c8db5ffa45a91eed695cb86c45c3db113c1ca0f8"}, @@ -449,6 +508,7 @@ version = "24.0" description = "Core utilities for Python packages" optional = false python-versions = ">=3.7" +groups = ["main", "dev"] files = [ {file = "packaging-24.0-py3-none-any.whl", hash = "sha256:2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5"}, {file = "packaging-24.0.tar.gz", hash = "sha256:eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9"}, @@ -460,6 +520,8 @@ version = "1.3.10" description = "Resolve a name to an object." optional = false python-versions = ">=3.6" +groups = ["main"] +markers = "python_version < \"3.9\"" files = [ {file = "pkgutil_resolve_name-1.3.10-py3-none-any.whl", hash = "sha256:ca27cc078d25c5ad71a9de0a7a330146c4e014c2462d9af19c6b828280649c5e"}, {file = "pkgutil_resolve_name-1.3.10.tar.gz", hash = "sha256:357d6c9e6a755653cfd78893817c0853af365dd51ec97f3d358a819373bbd174"}, @@ -471,6 +533,7 @@ version = "1.2.0" description = "plugin and hook calling mechanisms for python" optional = false python-versions = ">=3.7" +groups = ["main", "dev"] files = [ {file = "pluggy-1.2.0-py3-none-any.whl", hash = "sha256:c2fd55a7d7a3863cba1a013e4e2414658b1d07b6bc57b3919e0c63c9abb99849"}, {file = "pluggy-1.2.0.tar.gz", hash = "sha256:d12f0c4b579b15f5e054301bb226ee85eeeba08ffec228092f8defbaa3a4c4b3"}, @@ -489,6 +552,7 @@ version = "3.1.4" description = "pyparsing module - Classes and methods to define and execute parsing grammars" optional = false python-versions = ">=3.6.8" +groups = ["main"] files = [ {file = "pyparsing-3.1.4-py3-none-any.whl", hash = "sha256:a6a7ee4235a3f944aa1fa2249307708f893fe5717dc603503c6c7969c070fb7c"}, {file = "pyparsing-3.1.4.tar.gz", hash = "sha256:f86ec8d1a83f11977c9a6ea7598e8c27fc5cddfa5b07ea2241edbbde1d7bc032"}, @@ -503,6 +567,7 @@ version = "0.19.3" description = "Persistent/Functional/Immutable data structures" optional = false python-versions = ">=3.7" +groups = ["main"] files = [ {file = "pyrsistent-0.19.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:20460ac0ea439a3e79caa1dbd560344b64ed75e85d8703943e0b66c2a6150e4a"}, {file = "pyrsistent-0.19.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4c18264cb84b5e68e7085a43723f9e4c1fd1d935ab240ce02c0324a8e01ccb64"}, @@ -539,6 +604,7 @@ version = "7.4.4" description = "pytest: simple powerful testing with Python" optional = false python-versions = ">=3.7" +groups = ["main", "dev"] files = [ {file = "pytest-7.4.4-py3-none-any.whl", hash = "sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8"}, {file = "pytest-7.4.4.tar.gz", hash = "sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280"}, @@ -562,6 +628,7 @@ version = "4.1.0" description = "Pytest plugin for measuring coverage." optional = false python-versions = ">=3.7" +groups = ["dev"] files = [ {file = "pytest-cov-4.1.0.tar.gz", hash = "sha256:3904b13dfbfec47f003b8e77fd5b589cd11904a21ddf1ab38a64f204d6a10ef6"}, {file = "pytest_cov-4.1.0-py3-none-any.whl", hash = "sha256:6ba70b9e97e69fcc3fb45bfeab2d0a138fb65c4d0d6a41ef33983ad114be8c3a"}, @@ -580,6 +647,7 @@ version = "0.6" description = "pytest plugin to run your tests in a specific order" optional = false python-versions = "*" +groups = ["main"] files = [ {file = "pytest-ordering-0.6.tar.gz", hash = "sha256:561ad653626bb171da78e682f6d39ac33bb13b3e272d406cd555adb6b006bda6"}, {file = "pytest_ordering-0.6-py2-none-any.whl", hash = "sha256:27fba3fc265f5d0f8597e7557885662c1bdc1969497cd58aff6ed21c3b617de2"}, @@ -595,6 +663,7 @@ version = "3.5.0" description = "pytest xdist plugin for distributed testing, most importantly across multiple CPUs" optional = false python-versions = ">=3.7" +groups = ["main"] files = [ {file = "pytest-xdist-3.5.0.tar.gz", hash = "sha256:cbb36f3d67e0c478baa57fa4edc8843887e0f6cfc42d677530a36d7472b32d8a"}, {file = "pytest_xdist-3.5.0-py3-none-any.whl", hash = "sha256:d075629c7e00b611df89f490a5063944bee7a4362a5ff11c7cc7824a03dfce24"}, @@ -615,6 +684,7 @@ version = "2.9.0.post0" description = "Extensions to the standard Python datetime module" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" +groups = ["main", "dev"] files = [ {file = "python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3"}, {file = "python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427"}, @@ -629,6 +699,7 @@ version = "2024.2" description = "World timezone definitions, modern and historical" optional = false python-versions = "*" +groups = ["dev"] files = [ {file = "pytz-2024.2-py2.py3-none-any.whl", hash = "sha256:31c7c1817eb7fae7ca4b8c7ee50c72f93aa2dd863de768e1ef4245d426aa0725"}, {file = "pytz-2024.2.tar.gz", hash = "sha256:2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a"}, @@ -640,6 +711,7 @@ version = "2.31.0" description = "Python HTTP for Humans." optional = false python-versions = ">=3.7" +groups = ["main", "dev"] files = [ {file = "requests-2.31.0-py3-none-any.whl", hash = "sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f"}, {file = "requests-2.31.0.tar.gz", hash = "sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1"}, @@ -661,6 +733,7 @@ version = "1.12.1" description = "Mock out responses from the requests package" optional = false python-versions = ">=3.5" +groups = ["dev"] files = [ {file = "requests-mock-1.12.1.tar.gz", hash = "sha256:e9e12e333b525156e82a3c852f22016b9158220d2f47454de9cae8a77d371401"}, {file = "requests_mock-1.12.1-py2.py3-none-any.whl", hash = "sha256:b1e37054004cdd5e56c84454cc7df12b25f90f382159087f4b6915aaeef39563"}, @@ -678,17 +751,35 @@ version = "1.17.0" description = "Python 2 and 3 compatibility utilities" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" +groups = ["main", "dev"] files = [ {file = "six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274"}, {file = "six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81"}, ] +[[package]] +name = "splunk-cim-models" +version = "2.0.0" +description = "Splunk CIM (Common Information Model) data model definitions and schemas" +optional = false +python-versions = ">=3.7" +groups = ["dev"] +files = [] +develop = false + +[package.source] +type = "git" +url = "https://github.com/splunk/psa-cim-models.git" +reference = "v2" +resolved_reference = "338dc37836126a1ee372a8cf160b763840f45bf1" + [[package]] name = "splunk-sdk" version = "2.1.1" description = "The Splunk Software Development Kit for Python." optional = false python-versions = "*" +groups = ["main"] files = [ {file = "splunk-sdk-2.1.1.tar.gz", hash = "sha256:46300d52f09e0aed7e5962ce2ba08ef54421ffb3a538c6af6164dcbf9f075faa"}, ] @@ -702,6 +793,7 @@ version = "1.1.4" description = "Package to interact with Splunk" optional = false python-versions = ">=3.7,<4.0" +groups = ["main"] files = [ {file = "splunksplwrapper-1.1.4-py3-none-any.whl", hash = "sha256:65d62fe00a89b0f0ef849f37b15db068d293ed2fc430a1b74ca8c9bc34436f67"}, {file = "splunksplwrapper-1.1.4.tar.gz", hash = "sha256:d8b319080b0260cc47723fe95afeddbdda35f6cb43fdb6249bbcb3c20c03aa77"}, @@ -718,10 +810,12 @@ version = "2.0.1" description = "A lil' TOML parser" optional = false python-versions = ">=3.7" +groups = ["main", "dev"] files = [ {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, ] +markers = {main = "python_version < \"3.11\"", dev = "python_full_version <= \"3.11.0a6\""} [[package]] name = "typing-extensions" @@ -729,6 +823,8 @@ version = "4.7.1" description = "Backported and Experimental Type Hints for Python 3.7+" optional = false python-versions = ">=3.7" +groups = ["main", "dev"] +markers = "python_version < \"3.11\"" files = [ {file = "typing_extensions-4.7.1-py3-none-any.whl", hash = "sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36"}, {file = "typing_extensions-4.7.1.tar.gz", hash = "sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2"}, @@ -740,14 +836,15 @@ version = "1.26.20" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7" +groups = ["main", "dev"] files = [ {file = "urllib3-1.26.20-py2.py3-none-any.whl", hash = "sha256:0ed14ccfbf1c30a9072c7ca157e4319b70d65f623e91e7b32fadb2853431016e"}, {file = "urllib3-1.26.20.tar.gz", hash = "sha256:40c2dc0c681e47eb8f90e7e27bf6ff7df2e677421fd46756da1161c39ca70d32"}, ] [package.extras] -brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"] -secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"] +brotli = ["brotli (==1.0.9) ; os_name != \"nt\" and python_version < \"3\" and platform_python_implementation == \"CPython\"", "brotli (>=1.0.9) ; python_version >= \"3\" and platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; (os_name != \"nt\" or python_version >= \"3\") and platform_python_implementation != \"CPython\"", "brotlipy (>=0.6.0) ; os_name == \"nt\" and python_version < \"3\""] +secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress ; python_version == \"2.7\"", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"] socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] [[package]] @@ -756,6 +853,7 @@ version = "2.5.1" description = "An XML Schema validator and decoder" optional = false python-versions = ">=3.7" +groups = ["main"] files = [ {file = "xmlschema-2.5.1-py3-none-any.whl", hash = "sha256:ec2b2a15c8896c1fcd14dcee34ca30032b99456c3c43ce793fdb9dca2fb4b869"}, {file = "xmlschema-2.5.1.tar.gz", hash = "sha256:4f7497de6c8b6dc2c28ad7b9ed6e21d186f4afe248a5bea4f54eedab4da44083"}, @@ -775,6 +873,7 @@ version = "0.14.2" description = "Makes working with XML feel like you are working with JSON" optional = false python-versions = ">=3.6" +groups = ["main"] files = [ {file = "xmltodict-0.14.2-py2.py3-none-any.whl", hash = "sha256:20cc7d723ed729276e808f26fb6b3599f786cbc37e06c65e192ba77c40f20aac"}, {file = "xmltodict-0.14.2.tar.gz", hash = "sha256:201e7c28bb210e374999d1dde6382923ab0ed1a8a5faeece48ab525b7810a553"}, @@ -786,6 +885,7 @@ version = "3.15.0" description = "Backport of pathlib-compatible object wrapper for zip files" optional = false python-versions = ">=3.7" +groups = ["main", "dev"] files = [ {file = "zipp-3.15.0-py3-none-any.whl", hash = "sha256:48904fc76a60e542af151aded95726c1a5c34ed43ab4134b597665c86d7ad556"}, {file = "zipp-3.15.0.tar.gz", hash = "sha256:112929ad649da941c23de50f356a2b5570c954b65150642bccdd66bf194d224b"}, @@ -793,9 +893,9 @@ files = [ [package.extras] docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)"] +testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-black (>=0.3.7) ; platform_python_implementation != \"PyPy\"", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8 ; python_version < \"3.12\"", "pytest-mypy (>=0.9.1) ; platform_python_implementation != \"PyPy\""] [metadata] -lock-version = "2.0" +lock-version = "2.1" python-versions = "^3.7" -content-hash = "3b5dc6b305e520dc6251b8cb791f9ecbe27e5f9b1ba30f90c243e1cf8f9784e0" +content-hash = "8957c4a2f9ff0a6a1e1c919643b3b4ad9b1e5b17ed6691c9ff0d2fe11598a112" diff --git a/pyproject.toml b/pyproject.toml index 6d68da595..2dad66c62 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,6 +56,7 @@ pytest-cov = "^4" requests-mock = "^1.8.0" freezegun = "^1.5.1" pytz = "^2024.1" +splunk-cim-models = {git = "https://github.com/splunk/psa-cim-models.git", branch = "v2"} [tool.poetry.plugins] pytest11 = { plugin = "pytest_splunk_addon.plugin", "splunk" = "pytest_splunk_addon.splunk" } diff --git a/pytest_splunk_addon/CIM_Models/datamodel_definition.py b/pytest_splunk_addon/CIM_Models/datamodel_definition.py index a7758962e..6186b8b0a 100644 --- a/pytest_splunk_addon/CIM_Models/datamodel_definition.py +++ b/pytest_splunk_addon/CIM_Models/datamodel_definition.py @@ -13,2392 +13,17 @@ # See the License for the specific language governing permissions and # limitations under the License. # -datamodels = { - "4.18.1": { - "Alerts": { - "BaseEvent": [ - "app", - "dest", - "severity", - "signature_id", - "src", - "type", - "user", - ] - }, - "Application_State": { - "BaseEvent": ["dest", "process"], - "Ports": ["dest_port", "transport"], - "Services": ["service", "service_id", "start_mode", "status"], - }, - "Authentication": { - "BaseEvent": ["action", "app", "src", "src_user", "dest", "user"] - }, - "Certificates": { - "SSL": [ - "ssl_end_time", - "ssl_serial", - "ssl_start_time", - "ssl_hash", - "ssl_issuer", - "ssl_issuer_common_name", - "ssl_issuer_email_domain", - "ssl_subject", - "ssl_subject_common_name", - "ssl_subject_email_domain", - ] - }, - "Change": { - "Account_Management": ["dest_nt_domain", "src_nt_domain", "src_user"], - "BaseEvent": [ - "change_type", - "command", - "dest", - "dvc", - "object", - "object_attrs", - "object_category", - "object_id", - "object_path", - "status", - "result", - "result_id", - "src", - "user", - "vendor_product", - "action", - ], - "Instance_Changes": ["image_id", "instance_type"], - }, - "Change_Analysis": { - "Account_Management": ["dest_nt_domain", "src_nt_domain", "src_user"], - "BaseEvent": [ - "change_type", - "command", - "dest", - "dvc", - "object", - "object_attrs", - "object_category", - "object_id", - "object_path", - "status", - "result", - "result_id", - "src", - "user", - "vendor_product", - "action", - ], - "Filesystem_Changes": [ - "file_access_time", - "file_create_time", - "file_hash", - "file_modify_time", - "file_name", - "file_path", - "file_acl", - "file_size", - ], - }, - "Compute_Inventory": { - "BaseEvent": ["dest", "vendor_product"], - "CPU": ["cpu_cores", "cpu_count", "cpu_mhz"], - "Memory": ["mem"], - "Network": ["dns", "interface", "ip", "mac", "name"], - "OS": ["os"], - "Snapshot": ["size", "snapshot"], - "Storage": ["mount", "storage"], - "User": ["interactive", "password", "user"], - "Virtual_OS": ["hypervisor"], - }, - "DLP": { - "BaseEvent": [ - "action", - "category", - "dvc", - "dlp_type", - "object", - "object_path", - "object_category", - "signature", - "severity", - "src", - "src_user", - "dest", - "user", - "vendor_product", - ] - }, - "Email": { - "BaseEvent": [ - "action", - "dest", - "src", - "recipient", - "recipient_domain", - "src_user", - "src_user_domain", - "vendor_product", - ], - "Filtering": ["signature"], - }, - "Endpoint": { - "Filesystem": [ - "file_access_time", - "file_create_time", - "file_modify_time", - "action", - "dest", - "file_hash", - "file_name", - "file_path", - "file_acl", - "file_size", - "user", - "vendor_product", - ], - "Ports": [ - "dest_port", - "transport", - "src", - "src_port", - "dest", - "user", - "vendor_product", - ], - "Processes": [ - "dest", - "parent_process", - "parent_process_name", - "process", - "process_name", - "user", - "vendor_product", - ], - "Registry": [ - "action", - "dest", - "registry_path", - "registry_key_name", - "registry_value_data", - "registry_value_name", - "registry_value_type", - "user", - "vendor_product", - ], - "Services": [ - "dest", - "service", - "service_name", - "service_id", - "start_mode", - "status", - "user", - "vendor_product", - ], - }, - "Event_Signatures": {"BaseEvent": ["vendor_product"]}, - "Intrusion_Detection": { - "BaseEvent": [ - "dvc", - "ids_type", - "category", - "signature", - "severity", - "src", - "dest", - "user", - "vendor_product", - ] - }, - "Malware": { - "BaseEvent": [ - "action", - "category", - "date", - "dest", - "dest_nt_domain", - "severity", - "signature", - "user", - "vendor_product", - ], - "Malware_Operations": [ - "product_version", - "signature_version", - "dest", - "dest_nt_domain", - "vendor_product", - ], - }, - "Network_Resolution": { - "BaseEvent": [ - "answer", - "dest", - "message_type", - "query", - "reply_code_id", - "reply_code", - "vendor_product", - ] - }, - "Network_Sessions": { - "BaseEvent": [ - "dest_ip", - "dest_mac", - "dest_nt_host", - "dest_dns", - "user", - "vendor_product", - ] - }, - "Network_Traffic": { - "BaseEvent": [ - "action", - "bytes", - "bytes_in", - "bytes_out", - "dest", - "dest_port", - "dvc", - "rule", - "src", - "src_port", - "transport", - "user", - "vendor_product", - ] - }, - "Performance": { - "BaseEvent": ["dest"], - "CPU": ["cpu_load_percent"], - "Facilities": ["temperature"], - "Memory": ["mem", "mem_free", "mem_used"], - "Network": ["thruput"], - "OS": ["signature"], - "Storage": [ - "storage_free", - "storage_free_percent", - "storage_used", - "storage_used_percent", - ], - "Timesync": ["action"], - "Uptime": ["uptime"], - }, - "Updates": { - "BaseEvent": [ - "dest", - "signature", - "signature_id", - "status", - "vendor_product", - ] - }, - "Vulnerabilities": { - "BaseEvent": [ - "category", - "cve", - "dest", - "dvc", - "severity", - "signature", - "vendor_product", - ] - }, - "Web": { - "BaseEvent": [ - "action", - "bytes", - "bytes_in", - "bytes_out", - "dest", - "http_content_type", - "http_method", - "http_referrer", - "http_referrer_domain", - "http_user_agent", - "src", - "status", - "url", - "url_domain", - "user", - "vendor_product", - ] - }, - }, - "4.19": { - "Alerts": { - "BaseEvent": [ - "app", - "dest", - "severity", - "signature_id", - "src", - "type", - "user", - "user_name", - ] - }, - "Application_State": { - "BaseEvent": ["dest", "process"], - "Ports": ["dest_port", "transport"], - "Services": ["service", "service_id", "start_mode", "status"], - }, - "Authentication": { - "BaseEvent": ["action", "app", "src", "src_user", "dest", "user"] - }, - "Certificates": { - "SSL": [ - "ssl_end_time", - "ssl_serial", - "ssl_start_time", - "ssl_hash", - "ssl_issuer", - "ssl_issuer_common_name", - "ssl_issuer_email_domain", - "ssl_subject", - "ssl_subject_common_name", - "ssl_subject_email_domain", - ] - }, - "Change": { - "Account_Management": [ - "dest_nt_domain", - "src_nt_domain", - "src_user", - "src_user_name", - ], - "BaseEvent": [ - "change_type", - "command", - "dest", - "dvc", - "object", - "object_attrs", - "object_category", - "object_id", - "object_path", - "status", - "result", - "result_id", - "src", - "user", - "user_name", - "vendor_product", - "action", - ], - "Instance_Changes": ["image_id", "instance_type"], - }, - "Change_Analysis": { - "Account_Management": ["dest_nt_domain", "src_nt_domain", "src_user"], - "BaseEvent": [ - "change_type", - "command", - "dest", - "dvc", - "object", - "object_attrs", - "object_category", - "object_id", - "object_path", - "status", - "result", - "result_id", - "src", - "user", - "vendor_product", - "action", - ], - "Filesystem_Changes": [ - "file_access_time", - "file_create_time", - "file_hash", - "file_modify_time", - "file_name", - "file_path", - "file_acl", - "file_size", - ], - }, - "Compute_Inventory": { - "BaseEvent": ["dest", "vendor_product"], - "CPU": ["cpu_cores", "cpu_count", "cpu_mhz"], - "Memory": ["mem"], - "Network": ["dns", "interface", "ip", "mac", "name"], - "OS": ["os"], - "Snapshot": ["size", "snapshot"], - "Storage": ["mount", "storage"], - "User": ["interactive", "password", "user"], - "Virtual_OS": ["hypervisor"], - }, - "DLP": { - "BaseEvent": [ - "action", - "category", - "dvc", - "dlp_type", - "object", - "object_path", - "object_category", - "signature", - "severity", - "src", - "src_user", - "dest", - "user", - "vendor_product", - ] - }, - "Email": { - "BaseEvent": [ - "action", - "dest", - "src", - "recipient", - "recipient_domain", - "src_user", - "src_user_domain", - "vendor_product", - ], - "Filtering": ["signature"], - }, - "Endpoint": { - "Filesystem": [ - "file_access_time", - "file_create_time", - "file_modify_time", - "action", - "dest", - "file_hash", - "file_name", - "file_path", - "file_acl", - "file_size", - "user", - "vendor_product", - ], - "Ports": [ - "dest_port", - "transport", - "src", - "src_port", - "dest", - "user", - "vendor_product", - ], - "Processes": [ - "dest", - "parent_process", - "parent_process_name", - "process", - "process_name", - "user", - "vendor_product", - ], - "Registry": [ - "action", - "dest", - "registry_path", - "registry_key_name", - "registry_value_data", - "registry_value_name", - "registry_value_type", - "user", - "vendor_product", - ], - "Services": [ - "dest", - "service", - "service_name", - "service_id", - "start_mode", - "status", - "user", - "vendor_product", - ], - }, - "Event_Signatures": {"BaseEvent": ["vendor_product"]}, - "Intrusion_Detection": { - "BaseEvent": [ - "dvc", - "ids_type", - "category", - "signature", - "severity", - "src", - "dest", - "user", - "vendor_product", - ] - }, - "Malware": { - "BaseEvent": [ - "action", - "category", - "date", - "dest", - "dest_nt_domain", - "severity", - "signature", - "user", - "vendor_product", - ], - "Malware_Operations": [ - "product_version", - "signature_version", - "dest", - "dest_nt_domain", - "vendor_product", - ], - }, - "Network_Resolution": { - "BaseEvent": [ - "answer", - "dest", - "message_type", - "query", - "reply_code_id", - "reply_code", - "vendor_product", - ] - }, - "Network_Sessions": { - "BaseEvent": [ - "dest_ip", - "dest_mac", - "dest_nt_host", - "dest_dns", - "user", - "vendor_product", - ] - }, - "Network_Traffic": { - "BaseEvent": [ - "action", - "bytes", - "bytes_in", - "bytes_out", - "dest", - "dest_port", - "dvc", - "rule", - "src", - "src_port", - "transport", - "user", - "vendor_product", - ] - }, - "Performance": { - "BaseEvent": ["dest"], - "CPU": ["cpu_load_percent"], - "Facilities": ["temperature"], - "Memory": ["mem", "mem_free", "mem_used"], - "Network": ["thruput"], - "OS": ["signature"], - "Storage": [ - "storage_free", - "storage_free_percent", - "storage_used", - "storage_used_percent", - ], - "Timesync": ["action"], - "Uptime": ["uptime"], - }, - "Updates": { - "BaseEvent": [ - "dest", - "signature", - "signature_id", - "status", - "vendor_product", - ] - }, - "Vulnerabilities": { - "BaseEvent": [ - "category", - "cve", - "dest", - "dvc", - "severity", - "signature", - "vendor_product", - ] - }, - "Web": { - "BaseEvent": [ - "action", - "bytes", - "bytes_in", - "bytes_out", - "dest", - "http_content_type", - "http_method", - "http_referrer", - "http_referrer_domain", - "http_user_agent", - "src", - "status", - "url", - "url_domain", - "user", - "vendor_product", - ] - }, - }, - "4.20.2": { - "Alerts": { - "BaseEvent": [ - "app", - "dest", - "severity", - "signature_id", - "src", - "type", - "user", - "user_name", - ] - }, - "Application_State": { - "BaseEvent": ["dest", "process"], - "Ports": ["dest_port", "transport"], - "Services": ["service", "service_id", "start_mode", "status"], - }, - "Authentication": { - "BaseEvent": ["action", "app", "src", "src_user", "dest", "user"] - }, - "Certificates": { - "SSL": [ - "ssl_end_time", - "ssl_serial", - "ssl_start_time", - "ssl_hash", - "ssl_issuer", - "ssl_issuer_common_name", - "ssl_issuer_email_domain", - "ssl_subject", - "ssl_subject_common_name", - "ssl_subject_email_domain", - ] - }, - "Change": { - "Account_Management": [ - "dest_nt_domain", - "src_nt_domain", - "src_user", - "src_user_name", - ], - "BaseEvent": [ - "change_type", - "command", - "dest", - "dvc", - "object", - "object_attrs", - "object_category", - "object_id", - "object_path", - "status", - "result", - "result_id", - "src", - "user", - "user_name", - "vendor_product", - "action", - ], - "Instance_Changes": ["image_id", "instance_type"], - }, - "Change_Analysis": { - "Account_Management": ["dest_nt_domain", "src_nt_domain", "src_user"], - "BaseEvent": [ - "change_type", - "command", - "dest", - "dvc", - "object", - "object_attrs", - "object_category", - "object_id", - "object_path", - "status", - "result", - "result_id", - "src", - "user", - "vendor_product", - "action", - ], - "Filesystem_Changes": [ - "file_access_time", - "file_create_time", - "file_hash", - "file_modify_time", - "file_name", - "file_path", - "file_acl", - "file_size", - ], - }, - "Compute_Inventory": { - "BaseEvent": ["dest", "vendor_product"], - "CPU": ["cpu_cores", "cpu_count", "cpu_mhz"], - "Memory": ["mem"], - "Network": ["dns", "interface", "ip", "mac", "name"], - "OS": ["os"], - "Snapshot": ["size", "snapshot"], - "Storage": ["mount", "storage"], - "User": ["interactive", "password", "user"], - "Virtual_OS": ["hypervisor"], - }, - "DLP": { - "BaseEvent": [ - "action", - "category", - "dvc", - "dlp_type", - "object", - "object_path", - "object_category", - "signature", - "severity", - "src", - "src_user", - "dest", - "user", - "vendor_product", - ] - }, - "Data_Access": { - "BaseEvent": [ - "action", - "app", - "dest", - "object", - "object_category", - "object_id", - "object_size", - "src", - "tenant_id", - "user", - "vendor_product", - ] - }, - "Email": { - "BaseEvent": [ - "action", - "dest", - "src", - "recipient", - "recipient_domain", - "src_user", - "src_user_domain", - "vendor_product", - ], - "Filtering": ["signature"], - }, - "Endpoint": { - "Filesystem": [ - "file_access_time", - "file_create_time", - "file_modify_time", - "action", - "dest", - "file_hash", - "file_name", - "file_path", - "file_acl", - "file_size", - "user", - "vendor_product", - ], - "Ports": [ - "dest_port", - "transport", - "src", - "src_port", - "dest", - "user", - "vendor_product", - ], - "Processes": [ - "dest", - "original_file_name", - "parent_process", - "parent_process_name", - "process", - "process_name", - "user", - "vendor_product", - ], - "Registry": [ - "action", - "dest", - "registry_path", - "registry_key_name", - "registry_value_data", - "registry_value_name", - "registry_value_type", - "user", - "vendor_product", - ], - "Services": [ - "dest", - "service", - "service_name", - "service_id", - "start_mode", - "status", - "user", - "vendor_product", - ], - }, - "Event_Signatures": {"BaseEvent": ["vendor_product"]}, - "Intrusion_Detection": { - "BaseEvent": [ - "dvc", - "ids_type", - "category", - "signature", - "severity", - "src", - "dest", - "user", - "vendor_product", - ] - }, - "Malware": { - "BaseEvent": [ - "action", - "category", - "date", - "dest", - "dest_nt_domain", - "severity", - "signature", - "user", - "vendor_product", - ], - "Malware_Operations": [ - "product_version", - "signature_version", - "dest", - "dest_nt_domain", - "vendor_product", - ], - }, - "Network_Resolution": { - "BaseEvent": [ - "answer", - "dest", - "message_type", - "query", - "reply_code_id", - "reply_code", - "vendor_product", - ] - }, - "Network_Sessions": { - "BaseEvent": [ - "dest_ip", - "dest_mac", - "dest_nt_host", - "dest_dns", - "user", - "vendor_product", - ] - }, - "Network_Traffic": { - "BaseEvent": [ - "action", - "bytes", - "bytes_in", - "bytes_out", - "dest", - "dest_port", - "dvc", - "rule", - "src", - "src_port", - "transport", - "user", - "vendor_product", - ] - }, - "Performance": { - "BaseEvent": ["dest"], - "CPU": ["cpu_load_percent"], - "Facilities": ["temperature"], - "Memory": ["mem", "mem_free", "mem_used"], - "Network": ["thruput"], - "OS": ["signature"], - "Storage": [ - "storage_free", - "storage_free_percent", - "storage_used", - "storage_used_percent", - ], - "Timesync": ["action"], - "Uptime": ["uptime"], - }, - "Updates": { - "BaseEvent": [ - "dest", - "signature", - "signature_id", - "status", - "vendor_product", - ] - }, - "Vulnerabilities": { - "BaseEvent": [ - "category", - "cve", - "dest", - "dvc", - "severity", - "signature", - "vendor_product", - ] - }, - "Web": { - "BaseEvent": [ - "action", - "bytes", - "bytes_in", - "bytes_out", - "dest", - "http_content_type", - "http_method", - "http_referrer", - "http_referrer_domain", - "http_user_agent", - "src", - "status", - "url", - "url_domain", - "user", - "vendor_product", - ] - }, - }, - "5.0.0": { - "Alerts": { - "BaseEvent": [ - "app", - "dest", - "severity", - "signature_id", - "src", - "type", - "user", - "user_name", - ] - }, - "Application_State": { - "BaseEvent": ["dest", "process"], - "Ports": ["dest_port", "transport"], - "Services": ["service", "service_id", "start_mode", "status"], - }, - "Authentication": { - "BaseEvent": ["action", "app", "src", "src_user", "dest", "user"] - }, - "Certificates": { - "SSL": [ - "ssl_end_time", - "ssl_serial", - "ssl_start_time", - "ssl_hash", - "ssl_issuer", - "ssl_issuer_common_name", - "ssl_issuer_email_domain", - "ssl_subject", - "ssl_subject_common_name", - "ssl_subject_email_domain", - ] - }, - "Change": { - "Account_Management": [ - "dest_nt_domain", - "src_nt_domain", - "src_user", - "src_user_name", - ], - "BaseEvent": [ - "change_type", - "command", - "dest", - "dvc", - "object", - "object_attrs", - "object_category", - "object_id", - "object_path", - "status", - "result", - "result_id", - "src", - "user", - "user_name", - "vendor_product", - "action", - ], - "Instance_Changes": ["image_id", "instance_type"], - }, - "Change_Analysis": { - "Account_Management": ["dest_nt_domain", "src_nt_domain", "src_user"], - "BaseEvent": [ - "change_type", - "command", - "dest", - "dvc", - "object", - "object_attrs", - "object_category", - "object_id", - "object_path", - "status", - "result", - "result_id", - "src", - "user", - "vendor_product", - "action", - ], - "Filesystem_Changes": [ - "file_access_time", - "file_create_time", - "file_hash", - "file_modify_time", - "file_name", - "file_path", - "file_acl", - "file_size", - ], - }, - "Compute_Inventory": { - "BaseEvent": ["dest", "vendor_product"], - "CPU": ["cpu_cores", "cpu_count", "cpu_mhz"], - "Memory": ["mem"], - "Network": ["dns", "interface", "ip", "mac", "name"], - "OS": ["os"], - "Snapshot": ["size", "snapshot"], - "Storage": ["mount", "storage"], - "User": ["interactive", "password", "user"], - "Virtual_OS": ["hypervisor"], - }, - "DLP": { - "BaseEvent": [ - "action", - "category", - "dvc", - "dlp_type", - "object", - "object_path", - "object_category", - "signature", - "severity", - "src", - "src_user", - "dest", - "user", - "vendor_product", - ] - }, - "Data_Access": { - "BaseEvent": [ - "action", - "app", - "dest", - "object", - "object_category", - "object_id", - "object_size", - "src", - "vendor_account", - "user", - "vendor_product", - ] - }, - "Email": { - "BaseEvent": [ - "action", - "dest", - "src", - "recipient", - "recipient_domain", - "src_user", - "src_user_domain", - "vendor_product", - ], - "Filtering": ["signature"], - }, - "Endpoint": { - "Filesystem": [ - "file_access_time", - "file_create_time", - "file_modify_time", - "action", - "dest", - "file_hash", - "file_name", - "file_path", - "file_acl", - "file_size", - "user", - "vendor_product", - ], - "Ports": [ - "dest_port", - "transport", - "src", - "src_port", - "dest", - "user", - "vendor_product", - ], - "Processes": [ - "dest", - "original_file_name", - "parent_process", - "parent_process_name", - "process", - "process_name", - "user", - "vendor_product", - ], - "Registry": [ - "action", - "dest", - "registry_path", - "registry_key_name", - "registry_value_data", - "registry_value_name", - "registry_value_type", - "user", - "vendor_product", - ], - "Services": [ - "dest", - "service", - "service_name", - "service_id", - "start_mode", - "status", - "user", - "vendor_product", - ], - }, - "Event_Signatures": {"BaseEvent": ["vendor_product"]}, - "Intrusion_Detection": { - "BaseEvent": [ - "dvc", - "ids_type", - "category", - "signature", - "severity", - "src", - "dest", - "user", - "vendor_product", - ] - }, - "Malware": { - "BaseEvent": [ - "action", - "category", - "date", - "dest", - "dest_nt_domain", - "severity", - "signature", - "user", - "vendor_product", - ], - "Malware_Operations": [ - "product_version", - "signature_version", - "dest", - "dest_nt_domain", - "vendor_product", - ], - }, - "Network_Resolution": { - "BaseEvent": [ - "answer", - "dest", - "message_type", - "query", - "reply_code_id", - "reply_code", - "vendor_product", - ] - }, - "Network_Sessions": { - "BaseEvent": [ - "dest_ip", - "dest_mac", - "dest_nt_host", - "dest_dns", - "user", - "vendor_product", - ] - }, - "Network_Traffic": { - "BaseEvent": [ - "action", - "bytes", - "bytes_in", - "bytes_out", - "dest", - "dest_port", - "dvc", - "rule", - "src", - "src_port", - "transport", - "user", - "vendor_product", - ] - }, - "Performance": { - "BaseEvent": ["dest"], - "CPU": ["cpu_load_percent"], - "Facilities": ["temperature"], - "Memory": ["mem", "mem_free", "mem_used"], - "Network": ["thruput"], - "OS": ["signature"], - "Storage": [ - "storage_free", - "storage_free_percent", - "storage_used", - "storage_used_percent", - ], - "Timesync": ["action"], - "Uptime": ["uptime"], - }, - "Updates": { - "BaseEvent": [ - "dest", - "signature", - "signature_id", - "status", - "vendor_product", - ] - }, - "Vulnerabilities": { - "BaseEvent": [ - "category", - "cve", - "dest", - "dvc", - "severity", - "signature", - "vendor_product", - ] - }, - "Web": { - "BaseEvent": [ - "action", - "bytes", - "bytes_in", - "bytes_out", - "dest", - "http_content_type", - "http_method", - "http_referrer", - "http_referrer_domain", - "http_user_agent", - "src", - "status", - "url", - "url_domain", - "user", - "vendor_product", - ] - }, - }, - "5.3.1": { - "Alerts": { - "BaseEvent": [ - "app", - "dest", - "severity", - "signature_id", - "src", - "type", - "user", - ] - }, - "Application_State": { - "BaseEvent": ["dest", "process"], - "Ports": ["dest_port", "transport"], - "Services": ["service", "service_id", "start_mode", "status"], - }, - "Authentication": { - "BaseEvent": ["action", "app", "src", "src_user", "dest", "user"] - }, - "Certificates": { - "SSL": [ - "ssl_end_time", - "ssl_serial", - "ssl_start_time", - "ssl_hash", - "ssl_issuer", - "ssl_issuer_common_name", - "ssl_issuer_email_domain", - "ssl_subject", - "ssl_subject_common_name", - "ssl_subject_email_domain", - ] - }, - "Change": { - "Account_Management": [ - "dest_nt_domain", - "src_nt_domain", - "src_user", - ], - "BaseEvent": [ - "change_type", - "command", - "dest", - "dvc", - "object", - "object_attrs", - "object_category", - "object_id", - "object_path", - "status", - "result", - "result_id", - "src", - "user", - "vendor_product", - "action", - ], - "Instance_Changes": ["image_id", "instance_type"], - }, - "Change_Analysis": { - "Account_Management": ["dest_nt_domain", "src_nt_domain", "src_user"], - "BaseEvent": [ - "change_type", - "command", - "dest", - "dvc", - "object", - "object_attrs", - "object_category", - "object_id", - "object_path", - "status", - "result", - "result_id", - "src", - "user", - "vendor_product", - "action", - ], - "Filesystem_Changes": [ - "file_access_time", - "file_create_time", - "file_hash", - "file_modify_time", - "file_name", - "file_path", - "file_acl", - "file_size", - ], - }, - "Compute_Inventory": { - "BaseEvent": ["dest", "vendor_product"], - "CPU": ["cpu_cores", "cpu_count", "cpu_mhz"], - "Memory": ["mem"], - "Network": ["dns", "interface", "ip", "mac", "name"], - "OS": ["os"], - "Snapshot": ["size", "snapshot"], - "Storage": ["mount", "storage"], - "User": ["interactive", "password", "user"], - "Virtual_OS": ["hypervisor"], - }, - "DLP": { - "BaseEvent": [ - "action", - "category", - "dvc", - "dlp_type", - "object", - "object_path", - "object_category", - "signature", - "severity", - "src", - "src_user", - "dest", - "user", - "vendor_product", - ] - }, - "Data_Access": { - "BaseEvent": [ - "action", - "app", - "dest", - "object", - "object_attrs", - "object_category", - "object_id", - "object_size", - "src", - "user_name", - "vendor_account", - "user", - "vendor_product", - ] - }, - "Email": { - "BaseEvent": [ - "action", - "dest", - "src", - "recipient", - "recipient_domain", - "src_user", - "src_user_domain", - "vendor_product", - ], - "Filtering": ["signature"], - }, - "Endpoint": { - "Filesystem": [ - "file_access_time", - "file_create_time", - "file_modify_time", - "action", - "dest", - "file_hash", - "file_name", - "file_path", - "file_acl", - "file_size", - "user", - "vendor_product", - ], - "Ports": [ - "dest_port", - "transport", - "src", - "src_port", - "dest", - "user", - "vendor_product", - ], - "Processes": [ - "dest", - "loaded_file", - "original_file_name", - "parent_process", - "parent_process_name", - "process", - "process_name", - "user", - "vendor_product", - ], - "Registry": [ - "action", - "dest", - "registry_path", - "registry_key_name", - "registry_value_data", - "registry_value_name", - "registry_value_type", - "user", - "vendor_product", - ], - "Services": [ - "dest", - "service", - "service_name", - "service_id", - "start_mode", - "status", - "user", - "vendor_product", - ], - }, - "Event_Signatures": {"BaseEvent": ["vendor_product"]}, - "Intrusion_Detection": { - "BaseEvent": [ - "dvc", - "ids_type", - "category", - "signature", - "severity", - "src", - "dest", - "user", - "vendor_product", - ] - }, - "Malware": { - "BaseEvent": [ - "action", - "category", - "date", - "dest", - "dest_nt_domain", - "severity", - "signature", - "user", - "vendor_product", - ], - "Malware_Operations": [ - "product_version", - "signature_version", - "dest", - "dest_nt_domain", - "vendor_product", - ], - }, - "Network_Resolution": { - "BaseEvent": [ - "answer", - "dest", - "message_type", - "query", - "reply_code_id", - "reply_code", - "vendor_product", - ] - }, - "Network_Sessions": { - "BaseEvent": [ - "dest_ip", - "dest_mac", - "dest_nt_host", - "dest_dns", - "user", - "vendor_product", - ] - }, - "Network_Traffic": { - "BaseEvent": [ - "action", - "bytes", - "bytes_in", - "bytes_out", - "dest", - "dest_port", - "dvc", - "rule", - "src", - "src_port", - "transport", - "user", - "vendor_product", - ] - }, - "Performance": { - "BaseEvent": ["dest"], - "CPU": ["cpu_load_percent"], - "Facilities": ["temperature"], - "Memory": ["mem", "mem_free", "mem_used"], - "Network": ["thruput"], - "OS": ["signature"], - "Storage": [ - "storage_free", - "storage_free_percent", - "storage_used", - "storage_used_percent", - ], - "Timesync": ["action"], - "Uptime": ["uptime"], - }, - "Updates": { - "BaseEvent": [ - "dest", - "signature", - "signature_id", - "status", - "vendor_product", - ] - }, - "Vulnerabilities": { - "BaseEvent": [ - "category", - "cve", - "dest", - "dvc", - "severity", - "signature", - "vendor_product", - ] - }, - "Web": { - "BaseEvent": [ - "action", - "bytes", - "bytes_in", - "bytes_out", - "dest", - "http_content_type", - "http_method", - "http_referrer", - "http_referrer_domain", - "http_user_agent", - "src", - "status", - "url", - "url_domain", - "user", - "vendor_product", - ] - }, - }, - "5.3.2": { - "Alerts": { - "BaseEvent": [ - "app", - "dest", - "severity", - "signature", - "signature_id", - "src", - "type", - "user", - "description", - "id", - ] - }, - "Application_State": { - "BaseEvent": ["dest", "process"], - "Ports": ["dest_port", "transport"], - "Services": ["service", "service_id", "start_mode", "status"], - }, - "Authentication": { - "BaseEvent": ["action", "app", "src", "dest", "user"], - "Privileged_Authentication": ["src_user"], - }, - "Certificates": { - "SSL": [ - "ssl_end_time", - "ssl_serial", - "ssl_start_time", - "ssl_hash", - "ssl_issuer", - "ssl_issuer_common_name", - "ssl_subject", - "ssl_subject_common_name", - "ssl_subject_organization", - "ssl_validity_window", - ] - }, - "Change": { - "Account_Management": [ - "src_user", - "object_category", - ], - "BaseEvent": [ - "change_type", - "command", - "dest", - "dvc", - "object", - "object_attrs", - "object_id", - "status", - "result", - "src", - "user", - "vendor_product", - "action", - ], - "Instance_Changes": ["image_id", "instance_type"], - }, - "Change_Analysis": { - "Account_Management": ["dest_nt_domain", "src_nt_domain", "src_user"], - "BaseEvent": [ - "change_type", - "command", - "dest", - "dvc", - "object", - "object_attrs", - "object_category", - "object_id", - "object_path", - "status", - "result", - "result_id", - "src", - "user", - "vendor_product", - "action", - ], - "Filesystem_Changes": [ - "file_access_time", - "file_create_time", - "file_hash", - "file_modify_time", - "file_name", - "file_path", - "file_acl", - "file_size", - ], - }, - "Compute_Inventory": { - "BaseEvent": ["dest", "vendor_product"], - "CPU": ["cpu_cores", "cpu_count", "cpu_mhz"], - "Memory": ["mem"], - "Network": ["dns", "interface", "ip", "mac", "name"], - "OS": ["os"], - "Snapshot": ["size", "snapshot"], - "Storage": ["mount", "storage"], - "User": ["interactive", "password", "user"], - "Virtual_OS": ["hypervisor"], - }, - "DLP": { - "BaseEvent": [ - "action", - "category", - "dvc", - "dlp_type", - "object", - "object_path", - "object_category", - "signature", - "severity", - "src", - "src_user", - "dest", - "user", - "vendor_product", - "app", - ] - }, - "Data_Access": { - "BaseEvent": [ - "action", - "app", - "dest", - "object", - "object_attrs", - "object_category", - "object_id", - "object_size", - "src", - "user_name", - "vendor_account", - "user", - "vendor_product", - ] - }, - "Email": { - "BaseEvent": [ - "action", - "dest", - "src", - "recipient", - "recipient_domain", - "src_user", - "src_user_domain", - "vendor_product", - "internal_message_id", - "message_id", - "protocol", - "return_addr", - ], - "Filtering": ["signature"], - }, - "Endpoint": { - "Filesystem": [ - "file_create_time", - "file_modify_time", - "action", - "dest", - "file_hash", - "file_name", - "file_path", - "file_acl", - "file_size", - "user", - "vendor_product", - ], - "Ports": [ - "dest_port", - "transport", - "src", - "src_port", - "transport_dest_port", - "dest", - "vendor_product", - "state", - ], - "Processes": [ - "action", - "dest", - "parent_process", - "parent_process_name", - "process", - "process_name", - "process_id", - "process_path", - "parent_process_id", - "parent_process_path", - "user", - "vendor_product", - ], - "Registry": [ - "action", - "dest", - "registry_path", - "registry_key_name", - "registry_value_data", - "registry_value_name", - "registry_value_type", - "user", - "vendor_product", - "status", - "registry_hive", - "registry_value_text", - ], - "Services": [ - "dest", - "service", - "service_name", - "service_path", - "service_id", - "start_mode", - "status", - "user", - "vendor_product", - ], - }, - "Event_Signatures": {"BaseEvent": ["dest", "signature", "signature_id"]}, - "Intrusion_Detection": { - "BaseEvent": [ - "dvc", - "ids_type", - "category", - "signature", - "severity", - "src", - "dest", - "vendor_product", - "action", - ] - }, - "Malware": { - "BaseEvent": [ - "action", - "category", - "dest", - "severity", - "signature", - "file_name", - "file_path", - "vendor_product", - ], - "Malware_Operations": [ - "signature_version", - "dest", - "vendor_product", - ], - }, - "Network_Resolution": { - "BaseEvent": [ - "answer", - "dest", - "message_type", - "query", - "reply_code_id", - "reply_code", - "vendor_product", - "src", - "transport", - "answer_count", - "query_count", - "query_type", - "record_type", - "response_time", - "transaction_id", - ] - }, - "Network_Sessions": { - "BaseEvent": [ - "dest_ip", - "dest_mac", - "vendor_product", - "action", - "signature", - ], - "DHCP": ["lease_duration"], - "VPN": ["user"], - }, - "Network_Traffic": { - "BaseEvent": [ - "action", - "bytes", - "bytes_in", - "bytes_out", - "dest", - "dest_port", - "dvc", - "src", - "src_port", - "transport", - "vendor_product", - "app", - "packets", - "packets_in", - "packets_out", - "protocol", - ] - }, - "Performance": { - "BaseEvent": ["dest"], - "CPU": ["cpu_load_percent"], - "Facilities": ["temperature"], - "Memory": ["mem", "mem_free", "mem_used"], - "Network": ["thruput"], - "OS": ["signature"], - "Storage": [ - "storage_free", - "storage_free_percent", - "storage_used", - "storage_used_percent", - ], - "Timesync": ["action"], - "Uptime": ["uptime"], - }, - "Ticket_Management": { - "BaseEvent": [ - "priority", - "severity", - "severity_id", - "status", - "dest", - "ticket_id", - ] - }, - "Updates": { - "BaseEvent": [ - "dest", - "signature", - "signature_id", - "status", - "vendor_product", - "dvc", - "file_name", - ] - }, - "Vulnerabilities": { - "BaseEvent": [ - "category", - "cve", - "dest", - "dvc", - "severity", - "signature", - "vendor_product", - "cvss", - ] - }, - "Web": { - "BaseEvent": [ - "action", - "bytes", - "bytes_in", - "bytes_out", - "dest", - "http_method", - "http_user_agent", - "src", - "status", - "url", - "url_domain", - "user", - "vendor_product", - "category", - "dest_port", - "http_user_agent_length", - ] - }, - }, - "6.0.0": { - "Alerts": { - "BaseEvent": [ - "app", - "dest", - "severity", - "signature", - "signature_id", - "src", - "type", - "user", - "description", - "id", - ] - }, - "Application_State": { - "BaseEvent": ["dest", "process"], - "Ports": ["dest_port", "transport"], - "Services": ["service", "service_id", "start_mode", "status"], - }, - "Authentication": { - "BaseEvent": ["action", "app", "src", "dest", "user"], - "Privileged_Authentication": ["src_user"], - }, - "Certificates": { - "SSL": [ - "ssl_end_time", - "ssl_serial", - "ssl_start_time", - "ssl_hash", - "ssl_issuer", - "ssl_issuer_common_name", - "ssl_subject", - "ssl_subject_common_name", - "ssl_subject_organization", - "ssl_validity_window", - ] - }, - "Change": { - "Account_Management": [ - "src_user", - "object_category", - ], - "BaseEvent": [ - "change_type", - "command", - "dest", - "dvc", - "object", - "object_attrs", - "object_id", - "status", - "result", - "src", - "user", - "vendor_product", - "action", - ], - "Instance_Changes": ["image_id", "instance_type"], - }, - "Change_Analysis": { - "Account_Management": ["dest_nt_domain", "src_nt_domain", "src_user"], - "BaseEvent": [ - "change_type", - "command", - "dest", - "dvc", - "object", - "object_attrs", - "object_category", - "object_id", - "object_path", - "status", - "result", - "result_id", - "src", - "user", - "vendor_product", - "action", - ], - "Filesystem_Changes": [ - "file_access_time", - "file_create_time", - "file_hash", - "file_modify_time", - "file_name", - "file_path", - "file_acl", - "file_size", - ], - }, - "Compute_Inventory": { - "BaseEvent": ["dest", "vendor_product"], - "CPU": ["cpu_cores", "cpu_count", "cpu_mhz"], - "Memory": ["mem"], - "Network": ["dns", "interface", "ip", "mac", "name"], - "OS": ["os"], - "Snapshot": ["size", "snapshot"], - "Storage": ["mount", "storage"], - "User": ["interactive", "password", "user"], - "Virtual_OS": ["hypervisor"], - }, - "DLP": { - "BaseEvent": [ - "action", - "category", - "dvc", - "dlp_type", - "object", - "object_path", - "object_category", - "signature", - "severity", - "src", - "src_user", - "dest", - "user", - "vendor_product", - "app", - ] - }, - "Data_Access": { - "BaseEvent": [ - "action", - "app", - "dest", - "object", - "object_attrs", - "object_category", - "object_id", - "object_size", - "src", - "user_name", - "vendor_account", - "user", - "vendor_product", - ] - }, - "Email": { - "BaseEvent": [ - "action", - "dest", - "src", - "recipient", - "recipient_domain", - "src_user", - "src_user_domain", - "vendor_product", - "internal_message_id", - "message_id", - "protocol", - "return_addr", - ], - "Filtering": ["signature"], - }, - "Endpoint": { - "Filesystem": [ - "file_create_time", - "file_modify_time", - "action", - "dest", - "file_hash", - "file_name", - "file_path", - "file_acl", - "file_size", - "user", - "vendor_product", - ], - "Ports": [ - "dest_port", - "transport", - "src", - "src_port", - "transport_dest_port", - "dest", - "vendor_product", - "state", - ], - "Processes": [ - "action", - "dest", - "parent_process", - "parent_process_name", - "process", - "process_name", - "process_id", - "process_path", - "parent_process_id", - "parent_process_path", - "user", - "vendor_product", - ], - "Registry": [ - "action", - "dest", - "registry_path", - "registry_key_name", - "registry_value_data", - "registry_value_name", - "registry_value_type", - "user", - "vendor_product", - "status", - "registry_hive", - "registry_value_text", - ], - "Services": [ - "dest", - "service", - "service_name", - "service_path", - "service_id", - "start_mode", - "status", - "user", - "vendor_product", - ], - }, - "Event_Signatures": {"BaseEvent": ["dest", "signature", "signature_id"]}, - "Intrusion_Detection": { - "BaseEvent": [ - "dvc", - "ids_type", - "category", - "signature", - "severity", - "src", - "dest", - "vendor_product", - "action", - ] - }, - "Malware": { - "BaseEvent": [ - "action", - "category", - "dest", - "severity", - "signature", - "file_name", - "file_path", - "vendor_product", - ], - "Malware_Operations": [ - "signature_version", - "dest", - "vendor_product", - ], - }, - "Network_Resolution": { - "BaseEvent": [ - "answer", - "dest", - "message_type", - "query", - "reply_code_id", - "reply_code", - "vendor_product", - "src", - "transport", - "answer_count", - "query_count", - "query_type", - "record_type", - "response_time", - "transaction_id", - ] - }, - "Network_Sessions": { - "BaseEvent": [ - "dest_ip", - "dest_mac", - "vendor_product", - "action", - "signature", - ], - "DHCP": ["lease_duration"], - "VPN": ["user"], - }, - "Network_Traffic": { - "BaseEvent": [ - "action", - "bytes", - "bytes_in", - "bytes_out", - "dest", - "dest_port", - "dvc", - "src", - "src_port", - "transport", - "vendor_product", - "app", - "packets", - "packets_in", - "packets_out", - "protocol", - ] - }, - "Performance": { - "BaseEvent": ["dest"], - "CPU": ["cpu_load_percent"], - "Facilities": ["temperature"], - "Memory": ["mem", "mem_free", "mem_used"], - "Network": ["thruput"], - "OS": ["signature"], - "Storage": [ - "storage_free", - "storage_free_percent", - "storage_used", - "storage_used_percent", - ], - "Timesync": ["action"], - "Uptime": ["uptime"], - }, - "Ticket_Management": { - "BaseEvent": [ - "priority", - "severity", - "severity_id", - "status", - "dest", - "ticket_id", - ] - }, - "Updates": { - "BaseEvent": [ - "dest", - "signature", - "signature_id", - "status", - "vendor_product", - "dvc", - "file_name", - ] - }, - "Vulnerabilities": { - "BaseEvent": [ - "category", - "cve", - "dest", - "dvc", - "severity", - "signature", - "vendor_product", - "cvss", - ] - }, - "Web": { - "BaseEvent": [ - "action", - "bytes", - "bytes_in", - "bytes_out", - "dest", - "http_method", - "http_user_agent", - "src", - "status", - "url", - "url_domain", - "user", - "vendor_product", - "category", - "dest_port", - "http_user_agent_length", - ] - }, - }, -} -# No recommended/required fields changes between v6.0.0 and v6.2.0 -datamodels["6.0.1"] = datamodels["6.0.0"] -datamodels["6.0.2"] = datamodels["6.0.0"] -datamodels["6.1.0"] = datamodels["6.0.2"] -datamodels["6.2.0"] = datamodels["6.1.0"] -datamodels["latest"] = datamodels["6.2.0"] +# DEPRECATED: This module is kept for backward compatibility. +# Use ``from splunk_cim_models import datamodels`` instead. +import warnings as _warnings + +_warnings.warn( + "Importing datamodels from pytest_splunk_addon.CIM_Models.datamodel_definition " + "is deprecated. Use 'from splunk_cim_models import datamodels' instead.", + DeprecationWarning, + stacklevel=2, +) + +from splunk_cim_models.datamodel_definition import datamodels # noqa: F401, E402 + +__all__ = ["datamodels"] diff --git a/pytest_splunk_addon/app_test_generator.py b/pytest_splunk_addon/app_test_generator.py index 880b27d94..68bc68cc4 100644 --- a/pytest_splunk_addon/app_test_generator.py +++ b/pytest_splunk_addon/app_test_generator.py @@ -73,9 +73,9 @@ def __init__(self, pytest_config): splunk_ep=self.splunk_ep, ) - data_model_path = os.path.join( - os.path.dirname(os.path.abspath(__file__)), "data_models" - ) + from splunk_cim_models import DATA_MODELS_PATH + + data_model_path = DATA_MODELS_PATH LOGGER.debug("Initializing CIMTestGenerator to generate the test cases") self.cim_test_generator = CIMTestGenerator( self.pytest_config.getoption("splunk_app"), diff --git a/pytest_splunk_addon/cim_tests/json_schema.py b/pytest_splunk_addon/cim_tests/json_schema.py index 491ffae9d..ba398fd93 100644 --- a/pytest_splunk_addon/cim_tests/json_schema.py +++ b/pytest_splunk_addon/cim_tests/json_schema.py @@ -34,15 +34,13 @@ class JSONSchema(BaseSchema): schema_path (str): Relative or absolute path of the schema file """ - SCHEMA_FILE = "DatamodelSchema.json" - def __init__( self, schema_path=None, ): - self.schema_path = schema_path or op.join( - op.dirname(op.abspath(__file__)), self.SCHEMA_FILE - ) + from splunk_cim_models import DATAMODEL_SCHEMA_PATH + + self.schema_path = schema_path or DATAMODEL_SCHEMA_PATH @classmethod def parse_data_model(cls, file_path): diff --git a/pytest_splunk_addon/cim_tests/test_generator.py b/pytest_splunk_addon/cim_tests/test_generator.py index 5e133cfd4..5e21155b0 100644 --- a/pytest_splunk_addon/cim_tests/test_generator.py +++ b/pytest_splunk_addon/cim_tests/test_generator.py @@ -44,8 +44,6 @@ class CIMTestGenerator(object): Relative or absolute path of the json file with common fields """ - COMMON_FIELDS_PATH = "CommonFields.json" - def __init__( self, addon_path, @@ -55,14 +53,13 @@ def __init__( common_fields_path=None, splunk_ep=False, ): + from splunk_cim_models import COMMON_FIELDS_PATH as DEFAULT_COMMON_FIELDS self.data_model_handler = DataModelHandler(data_model_path) self.addon_parser = AddonParser(addon_path) self.tokenized_events = tokenized_events self.test_field_type = test_field_type - self.common_fields_path = common_fields_path or op.join( - op.dirname(op.abspath(__file__)), self.COMMON_FIELDS_PATH - ) + self.common_fields_path = common_fields_path or DEFAULT_COMMON_FIELDS self.splunk_ep = splunk_ep def generate_tests(self, fixture): diff --git a/pytest_splunk_addon/splunk.py b/pytest_splunk_addon/splunk.py index bcff2cc38..a5c434f8d 100644 --- a/pytest_splunk_addon/splunk.py +++ b/pytest_splunk_addon/splunk.py @@ -28,7 +28,7 @@ from splunksplwrapper.SearchUtil import SearchUtil from .event_ingestors import IngestorHelper from .docker_class import Services -from .CIM_Models.datamodel_definition import datamodels +from splunk_cim_models import datamodels import configparser from filelock import FileLock diff --git a/tests/unit/tests_standard_lib/test_app_test_generator.py b/tests/unit/tests_standard_lib/test_app_test_generator.py index e117d628b..ef76caecf 100644 --- a/tests/unit/tests_standard_lib/test_app_test_generator.py +++ b/tests/unit/tests_standard_lib/test_app_test_generator.py @@ -2,6 +2,7 @@ from unittest.mock import patch from collections import namedtuple from pytest_splunk_addon.app_test_generator import AppTestGenerator +from splunk_cim_models import DATA_MODELS_PATH module = "pytest_splunk_addon.app_test_generator" config = { @@ -38,7 +39,7 @@ def app_test_generator(mock_object): "simple_config, path", [ (test_config, "fake_path"), - (test_config_without_dm_path, "/fake_dir/data_models"), + (test_config_without_dm_path, DATA_MODELS_PATH), ], ) def test_app_test_generator_instantiation( diff --git a/tests/unit/tests_standard_lib/test_cim_tests/test_splunk_cim_models_contract.py b/tests/unit/tests_standard_lib/test_cim_tests/test_splunk_cim_models_contract.py new file mode 100644 index 000000000..6599a1b2a --- /dev/null +++ b/tests/unit/tests_standard_lib/test_cim_tests/test_splunk_cim_models_contract.py @@ -0,0 +1,336 @@ +# +# Copyright 2026 Splunk Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +""" +Contract tests for the splunk-cim-models package. + +These tests verify that the API surface PSA depends on is present and +structurally correct in the installed version of splunk-cim-models. +They are intentionally version-agnostic: a newer package version should +still satisfy the same contract. + +If any of these tests fail after upgrading splunk-cim-models, the +corresponding PSA import site must be updated to match the new API. +""" +import json +import os +import sys +from pathlib import Path +from unittest.mock import patch + +import pytest + + +# --------------------------------------------------------------------------- +# Helpers +# --------------------------------------------------------------------------- + +REQUIRED_SYMBOLS = [ + "DATA_MODELS_PATH", + "COMMON_FIELDS_PATH", + "DATAMODEL_SCHEMA_PATH", + "datamodels", +] + +KNOWN_CIM_MODELS = { + "Alerts", + "Application_State", + "Authentication", + "Certificates", + "Change", + "Change_Analysis", + "Compute_Inventory", + "DLP", + "Databases", + "Email", + "Endpoint", + "Event_Signatures", + "Interprocess_Messaging", + "Intrusion_Detection", + "JVM", + "Malware", + "Network_Resolution", + "Network_Sessions", + "Network_Traffic", + "Performance", + "Ticket_Management", + "Updates", + "Vulnerabilities", + "Web", +} + + +# --------------------------------------------------------------------------- +# Package availability +# --------------------------------------------------------------------------- + + +def test_splunk_cim_models_importable(): + """splunk_cim_models must be importable; clear error otherwise.""" + import splunk_cim_models # noqa: F401 + + +def test_missing_package_raises_import_error(monkeypatch): + """ + When splunk_cim_models is absent from sys.modules and the import + fails, Python should raise ImportError – not a silent AttributeError + or similar. This test simulates the package being absent. + """ + original = sys.modules.pop("splunk_cim_models", None) + try: + with patch.dict("sys.modules", {"splunk_cim_models": None}): + with pytest.raises((ImportError, AttributeError)): + import splunk_cim_models # noqa: F401 + + _ = splunk_cim_models.DATA_MODELS_PATH + finally: + if original is not None: + sys.modules["splunk_cim_models"] = original + + +# --------------------------------------------------------------------------- +# Required public symbols +# --------------------------------------------------------------------------- + + +@pytest.mark.parametrize("symbol", REQUIRED_SYMBOLS) +def test_required_symbol_exists(symbol): + """Every symbol PSA imports from splunk_cim_models must be present.""" + import splunk_cim_models + + assert hasattr(splunk_cim_models, symbol), ( + f"splunk_cim_models does not export '{symbol}'. " + "Update the package or the PSA import site." + ) + + +# --------------------------------------------------------------------------- +# Path symbols – point to real files / directories +# --------------------------------------------------------------------------- + + +def test_data_models_path_is_directory(): + from splunk_cim_models import DATA_MODELS_PATH + + assert os.path.isdir( + DATA_MODELS_PATH + ), f"DATA_MODELS_PATH '{DATA_MODELS_PATH}' is not a directory." + + +def test_common_fields_path_is_file(): + from splunk_cim_models import COMMON_FIELDS_PATH + + assert os.path.isfile( + COMMON_FIELDS_PATH + ), f"COMMON_FIELDS_PATH '{COMMON_FIELDS_PATH}' is not a file." + + +def test_datamodel_schema_path_is_file(): + from splunk_cim_models import DATAMODEL_SCHEMA_PATH + + assert os.path.isfile( + DATAMODEL_SCHEMA_PATH + ), f"DATAMODEL_SCHEMA_PATH '{DATAMODEL_SCHEMA_PATH}' is not a file." + + +# --------------------------------------------------------------------------- +# DATA_MODELS_PATH – JSON data model files +# --------------------------------------------------------------------------- + + +def test_data_models_directory_contains_json_files(): + from splunk_cim_models import DATA_MODELS_PATH + + json_files = [f for f in os.listdir(DATA_MODELS_PATH) if f.endswith(".json")] + assert json_files, f"No JSON files found in DATA_MODELS_PATH '{DATA_MODELS_PATH}'." + + +def test_data_models_cover_known_cim_models(): + """At least a core subset of well-known CIM data models must be present.""" + from splunk_cim_models import DATA_MODELS_PATH + + present = { + Path(f).stem for f in os.listdir(DATA_MODELS_PATH) if f.endswith(".json") + } + # Require a representative subset rather than the full list so minor + # schema renames don't cause spurious failures. + core_required = { + "Authentication", + "Endpoint", + "Network_Traffic", + "Malware", + "Web", + } + missing = core_required - present + assert not missing, f"Core CIM data models missing from DATA_MODELS_PATH: {missing}" + + +def test_each_data_model_file_is_valid_json(): + from splunk_cim_models import DATA_MODELS_PATH + + for filename in os.listdir(DATA_MODELS_PATH): + if not filename.endswith(".json"): + continue + filepath = os.path.join(DATA_MODELS_PATH, filename) + with open(filepath) as fh: + try: + data = json.load(fh) + except json.JSONDecodeError as exc: + pytest.fail(f"Invalid JSON in {filepath}: {exc}") + assert isinstance( + data, dict + ), f"Expected dict at top level of {filepath}, got {type(data).__name__}" + + +# --------------------------------------------------------------------------- +# COMMON_FIELDS_PATH – fields forbidden in props/search +# --------------------------------------------------------------------------- + + +def test_common_fields_json_is_valid(): + from splunk_cim_models import COMMON_FIELDS_PATH + + with open(COMMON_FIELDS_PATH) as fh: + data = json.load(fh) + assert "fields" in data, "CommonFields.json must have a top-level 'fields' key." + assert isinstance( + data["fields"], list + ), "'fields' in CommonFields.json must be a list." + + +def test_common_fields_entries_have_type_and_name(): + """Each field entry must have at least 'name' and 'type' keys.""" + from splunk_cim_models import COMMON_FIELDS_PATH + + with open(COMMON_FIELDS_PATH) as fh: + data = json.load(fh) + for entry in data["fields"]: + assert "name" in entry, f"Field entry missing 'name': {entry}" + assert "type" in entry, f"Field entry missing 'type': {entry}" + + +# --------------------------------------------------------------------------- +# DATAMODEL_SCHEMA_PATH – JSON schema for custom data models +# --------------------------------------------------------------------------- + + +def test_datamodel_schema_json_is_valid(): + from splunk_cim_models import DATAMODEL_SCHEMA_PATH + + with open(DATAMODEL_SCHEMA_PATH) as fh: + data = json.load(fh) + assert isinstance(data, dict), "DatamodelSchema.json must be a JSON object." + # JSON Schema documents typically have $schema or type at the root. + assert data, "DatamodelSchema.json must not be empty." + + +# --------------------------------------------------------------------------- +# datamodels – CIM version → recommended fields dict +# --------------------------------------------------------------------------- + + +def test_datamodels_is_dict(): + from splunk_cim_models import datamodels + + assert isinstance( + datamodels, dict + ), f"'datamodels' must be a dict, got {type(datamodels).__name__}" + + +def test_datamodels_has_at_least_one_version(): + from splunk_cim_models import datamodels + + assert datamodels, "'datamodels' dict must not be empty." + + +def test_datamodels_latest_key_present(): + """Consumers may rely on the 'latest' sentinel key.""" + from splunk_cim_models import datamodels + + assert "latest" in datamodels, "'datamodels' dict must contain a 'latest' key." + + +def test_datamodels_version_values_are_dicts(): + """Each CIM version entry must map model names to field lists.""" + from splunk_cim_models import datamodels + + for version, models in datamodels.items(): + assert isinstance(models, dict), ( + f"datamodels[{version!r}] must be a dict of model→fields, " + f"got {type(models).__name__}" + ) + + +def test_datamodels_field_lists_are_non_empty(): + """Each model in each version must have at least one entry.""" + from splunk_cim_models import datamodels + + for version, models in datamodels.items(): + for model_name, fields in models.items(): + assert ( + fields + ), f"datamodels[{version!r}][{model_name!r}] field list is empty." + + +@pytest.mark.parametrize("version", ["latest"]) +def test_datamodels_version_contains_core_models(version): + """Core CIM models must be present in the given version entry.""" + from splunk_cim_models import datamodels + + if version not in datamodels: + pytest.skip(f"Version {version!r} not present in this package release.") + + core = {"Authentication", "Endpoint", "Network_Traffic", "Malware", "Web"} + present = set(datamodels[version].keys()) + missing = core - present + assert not missing, f"datamodels[{version!r}] is missing core models: {missing}" + + +# --------------------------------------------------------------------------- +# PSA import sites – verify they resolve against the installed package +# --------------------------------------------------------------------------- + + +def test_psa_app_test_generator_imports_data_models_path(): + """app_test_generator.py must import DATA_MODELS_PATH without error.""" + from pytest_splunk_addon.app_test_generator import AppTestGenerator # noqa: F401 + from splunk_cim_models import DATA_MODELS_PATH + + assert DATA_MODELS_PATH # truthy path string + + +def test_psa_test_generator_imports_common_fields_path(): + """cim_tests/test_generator.py must import COMMON_FIELDS_PATH without error.""" + from pytest_splunk_addon.cim_tests.test_generator import ( # noqa: F401 + CIMTestGenerator, + ) + from splunk_cim_models import COMMON_FIELDS_PATH + + assert COMMON_FIELDS_PATH + + +def test_psa_json_schema_imports_datamodel_schema_path(): + """cim_tests/json_schema.py must import DATAMODEL_SCHEMA_PATH without error.""" + from pytest_splunk_addon.cim_tests.json_schema import JSONSchema # noqa: F401 + from splunk_cim_models import DATAMODEL_SCHEMA_PATH + + assert DATAMODEL_SCHEMA_PATH + + +def test_psa_splunk_imports_datamodels(): + """splunk.py must be able to import the datamodels dict without error.""" + from splunk_cim_models import datamodels + + assert isinstance(datamodels, dict) diff --git a/tests/unit/tests_standard_lib/test_cim_tests/test_test_generator.py b/tests/unit/tests_standard_lib/test_cim_tests/test_test_generator.py index 2f5758d64..0be80a5e6 100644 --- a/tests/unit/tests_standard_lib/test_cim_tests/test_test_generator.py +++ b/tests/unit/tests_standard_lib/test_cim_tests/test_test_generator.py @@ -2,6 +2,7 @@ from unittest.mock import patch, MagicMock from collections import namedtuple from pytest_splunk_addon.cim_tests.test_generator import CIMTestGenerator +from splunk_cim_models import COMMON_FIELDS_PATH field = namedtuple("Field", ["type", "name"], defaults=["", ""]) data_set = namedtuple("DataSet", ["fields", "fields_cluster"]) @@ -99,10 +100,7 @@ def test_cim_test_generator_instantiation(args): ap_mock.assert_called_once_with("addon_path") if len(args) == 3: assert cim.test_field_type == ["required", "conditional"] - assert ( - "pytest_splunk_addon/cim_tests/CommonFields.json" - in cim.common_fields_path - ) + assert cim.common_fields_path == COMMON_FIELDS_PATH else: assert cim.test_field_type == args[3] assert cim.common_fields_path == args[4]