Comments

aohrvetpv’s picture

aohrvetpv’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
StatusFileSize
new8.6 KB

Initial attempt at tests for expiration e-mails. Starting with 7.x-1.x because I would like to have these tests to ensure no regressions when working on some expiration-related 7.x-1.x bugs.

This patch requires first applying the patch in #2467941: Mock time retrievals for testing.

Code will need some refinement.

aohrvetpv’s picture

Status: Active » Needs review

Status: Needs review » Needs work

Status: Needs work » Needs review

Status: Needs review » Needs work
aohrvetpv’s picture

Status: Needs work » Needs review
StatusFileSize
new8.6 KB

Remove extra blank line in patch context.

Status: Needs review » Needs work
aohrvetpv’s picture

Status: Needs work » Needs review
StatusFileSize
new8.57 KB

Tests pass on my local system. This patch adds an effective debug print to hopefully identify why the tests are failing on Testbot.

Status: Needs review » Needs work

The last submitted patch, 9: password_policy-7.x-1.x-debug_patch-2461665-9.patch, failed testing.

aohrvetpv’s picture

Status: Needs work » Needs review
StatusFileSize
new9.16 KB

Suspect timing issue where Testbot executes so fast that the time does not advance one second as is assumed by the test. This patch attempts to test that hypothesis.

aohrvetpv’s picture

- Add one second to times tested to avoid Testbot failure. This is more correct anyway, because the warning e-mail says the user's password will expire "in less than X days", not "in X days or less".
- Update comments to be more precise about times.

  • AohRveTPV committed 182d5eb on 7.x-1.x
    Issue #2461665 by AohRveTPV: Add tests for expiration e-mails
    
aohrvetpv’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Needs review » Patch (to be ported)

Committed since this is needed as a basis for adding tests for #2464779: 7.x-1.x using D6-style tokens.

aohrvetpv’s picture

Status: Patch (to be ported) » Closed (outdated)

6.x-1.x is no longer supported.