Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find Config retention settings #9333 #9528

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

limacarvalho
Copy link

No description provided.

Copy link

linux-foundation-easycla bot commented May 21, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@@ -200,3 +203,55 @@ def test_remediation_no_results(self):
p.expand_variables(p.get_variables())
resources = p.run()
self.assertEqual(len(resources), 0)

def test_retention_configurations(self):
session_factory = self.replay_flight_data('test_retention_configurations')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, fwiw to get the files, use record_flight_data, we anonymize aws account ids, in the recorded data, and then when files are on disk, switch to replay.

https://cloudcustodian.io/docs/developer/tests.html#recording-custodian-interactions

@@ -76,6 +76,78 @@ def process(self, resources, event=None):
return resources


@ConfigRecorder.filter_registry.register("retention-configurations")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about just retention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants