Skip to content

Fix expired not_on_or_after dates in keyctrl tests (MTK-1774)#72

Closed
seanjin99 wants to merge 1 commit intordkcentral:mainfrom
seanjin99:fix/MTK-1774-expired-test-dates
Closed

Fix expired not_on_or_after dates in keyctrl tests (MTK-1774)#72
seanjin99 wants to merge 1 commit intordkcentral:mainfrom
seanjin99:fix/MTK-1774-expired-test-dates

Conversation

@seanjin99
Copy link

The hardcoded not_on_or_after date '2025-12-09' in keyctrl.cpp test cases has expired, causing testKeyCtrlUnwrapWithKeyUsage and related tests to fail with 'Current time is outside of key validity window' from the TA's rights_allowed_time check.

Updated all 7 occurrences from 2025-12-09 to 2035-12-09 to extend validity for another 10 years.

Replace hardcoded not_on_or_after dates with a runtime-computed date
(now + 10 years) so tests never expire. The previous hardcoded date
of 2025-12-09 had already expired, causing testKeyCtrlUnwrapWithKeyUsage
and related tests to fail with 'rights_allowed_time' errors.
@seanjin99 seanjin99 force-pushed the fix/MTK-1774-expired-test-dates branch from d56442b to 0d172e7 Compare March 6, 2026 17:55
@seanjin99 seanjin99 closed this Mar 6, 2026
@seanjin99 seanjin99 deleted the fix/MTK-1774-expired-test-dates branch March 6, 2026 19:38
@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant