Test Rollback Expiration lifetime
Add a test that checks whether the rollback data is expired after the lifetime duration expires. Since the default expiration time is 48 hours, the test first changes the expiration time to a more reasonable (and testable) amount. Flow: * Change rollback lifetime duration to 30s * Install v1 of an app * Install v2 of an app (with rollback enabled) * Check that package rollback is available * Wait for the lifetime duration * Check that package is not available for rollback Test: atest RollbackTest Test: atest RollbackTest#testRollbackExpiresAfterLifetime Bug: 124096729 Change-Id: I4c6b3df14ed7b98b72d3c8a49a0dd5b2e864e2b2
Loading
Please register or sign in to comment