[MGNLTEST-97] By default clean-up the resources bootstrapped by the @Fixture util Created: 22/Sep/20  Updated: 09/Nov/23

Status: Selected
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: 1.0.1
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Aleksandr Pchelintcev Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: core-TF-features-bugs-improvements
Team: Foundation
Work Started:

 Description   

Proposal

  • add a behaviour property to @Fixture annotation instructing to clean-up the fixture resources after test execution.
  • If property is true, apply @Cleanup logic to the bootstrapped resource
  • Do nothing otherwise

Corner cases

  • Fixture data gets modified during test execution. Proposal: to reduce the scope and keep things simple - do nothing, let the explicit @Cleanup annotation handle the case.

Generated at Mon Feb 12 07:45:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.