Prismacloud_aws_detection_enhancement - #847
Conversation
|
Hmm. it occurred to me that the yaml format you are using might cause some issues. There seem to be 2 tests that are failing in Py3.9 and Py3.11 pipelines. In tests/common/test_pkg_config.py, something like adding an exception for prismacloud in the for loop: if "prismacloud" in str(query_file):
continuelike this def test_load_default():
"""Test load default settings."""
settings = pkg_config._settings
check.is_in("QueryDefinitions", settings)
check.is_in("Default", settings["QueryDefinitions"])
check.equal(1, len(settings["QueryDefinitions"]["Default"]))
for path in settings["QueryDefinitions"]["Default"]:
check.is_true(type(path), str)
path = (
Path(pkg_config.__file__).resolve().parent.parent.joinpath(f"data/{path}")
)
check.is_true(path.is_dir())
for query_file in path.rglob("*.yaml"):
if "prismacloud" in str(query_file):
continue
validate_queries_file_structure(query_file) |
apologies for the long silence Ian, I finally had a block of time to address this. What I’ve done
Let me know if you’d like any additional tweaks. thank you |
426a7ab to
e134f75
Compare
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
e134f75 to
fd533ac
Compare
The initial mypy failures occurred because this branch was not up to date with main, so it still reflected pre-existing type errors in unrelated modules (auth/keyvault_client.py and context/azure/azure_data.py). These were not introduced by the Prisma Cloud changes in this PR. The branch has now been rebuilt on the latest main to ensure the diff only contains the intended changes. can we rerun the pipeline |
Uh oh!
There was an error while loading. Please reload this page.