longhorn-tests icon indicating copy to clipboard operation
longhorn-tests copied to clipboard

test: add tests for orphaned resource handling

Open COLDTURNIP opened this issue 7 months ago • 1 comments

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

COLDTURNIP avatar Apr 29 '25 10:04 COLDTURNIP

We've added some instance protection in recent changes. Will update this PR.

COLDTURNIP avatar May 19 '25 08:05 COLDTURNIP

The test cases are updated to reflect the latest change.

  • The orphan-resource-auto-deletion settings now allows only replica-data and/or instance. The replicaInstance and engineInstance options are now invalid.
  • Add UUID check to the test cases.
  • The instance relocation case is now invalid.

COLDTURNIP avatar May 29 '25 09:05 COLDTURNIP