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

[TFM-231] Terrafrom : Adding Snapshot Retention Param #26

Merged
merged 9 commits into from
Jan 9, 2023

Conversation

Krishnan-Priyanshu
Copy link
Collaborator

@Krishnan-Priyanshu Krishnan-Priyanshu commented Jan 4, 2023

Description

Adding RetentionLimit to snapshot
Adding functionality to set snapshot security which takes retention perion in min as value

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration
Also created a unit test to test this functionality

Ran Integration test
priyanshu SS

@Krishnan-Priyanshu Krishnan-Priyanshu changed the title Tfm 231 oe [TFM-231] Terrafrom : Adding Snapshot Retention Param Jan 4, 2023
Copy link
Contributor

@VamsiSiddu-7 VamsiSiddu-7 left a comment

Choose a reason for hiding this comment

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

Update the Description with the tests performed and attach the Test Results in the pr.

}

// SetSnapshotSecurity set retention period in min on snapshot
func (v *Volume) SetSnapshotSecurity(retentionPeriodInMin string) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

are the unit tests covered for this new function?

Copy link
Collaborator

Choose a reason for hiding this comment

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

added the unit test

@Krishnan-Priyanshu Krishnan-Priyanshu merged commit f2e8ce6 into main Jan 9, 2023
@Krishnan-Priyanshu Krishnan-Priyanshu deleted the TFM-231-oe branch January 9, 2023 09:41
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.

4 participants