prancer-io / cloud-validation-framework

prancer platform is an IaC Security engine + Continuous Compliance for your cloud (Azure, AWS, GCP) and Kubernetes environment
https://www.prancer.io
Mozilla Public License 2.0
122 stars 29 forks source link

Feature Request: Individual snapshot file name should consist of {snapshotId}_{masterTestId} #292

Open rezoan opened 3 years ago

rezoan commented 3 years ago

I was just trying to check the compliance of available snapshots from generated master snapshot (master-snapshot_gen.json) for terraform azure and did ran prancer compliance scenario-terraform-azure from prancer-hello-world app.

in the snapshots folder i saw lots of snapshot file for individual test case with some confusing name (snapshotId from master-snapshot_gen.json) and its hard to determine for which test case this snapshot file is generated.

For example after running the compliance test for scenario-terraform-azure you will see a snapshot file scenario-terraform-azure/snapshots/TRF_TEMPLATE_SNAPSHOT33. its basically terraform resource snapshot of test id TEST_NETWORK_SECURITY_GROUP_1according to terraform /master-compliance-test

It would be nice if we can set some meaningful name to the sanpshot file. e.g. {snapshotId}_{masterTestId}. more simply if we can rename the snapshot file name fromTRF_TEMPLATE_SNAPSHOT33 to TRF_TEMPLATE_SNAPSHOT33_TEST_NETWORK_SECURITY_GROUP_1 it would make life so easier.

jaiminswan commented 1 year ago

Needs discussion