longhorn-tests
longhorn-tests copied to clipboard
test: add tests for orphaned resource handling
Which issue(s) this PR fixes:
Issue longhorn/longhorn#6764
What this PR does / why we need it:
Test cases for orphaned runtime instance cleanup. LEP: https://github.com/longhorn/longhorn/pull/10675
Special notes for your reviewer:
Additional documentation or context
We've added some instance protection in recent changes. Will update this PR.
The test cases are updated to reflect the latest change.
- The
orphan-resource-auto-deletionsettings now allows onlyreplica-dataand/orinstance. ThereplicaInstanceandengineInstanceoptions are now invalid. - Add UUID check to the test cases.
- The instance relocation case is now invalid.