Fix ResetPasswordWithTokenTest test

When password quality is set to complex, the framework sets defaults
on various character requirements (at least one letter + numeric +
symbol). These need to be cleared manually to avoid test failures.

The current failure only manifests when the tests exercising the
complex quality is run in isolation; if another test ran before
it in the same session, that test's clean-up code would have cleared
those defaults, hence masking the bug.

Bug: 201028958
Test: atest ResetPasswordWithTokenTest#resetPasswordWithToken_passwordDoesNotSatisfyRestriction_failure
  atest ResetPasswordWithTokenTest#resetPasswordWithToken_passwordSatisfiesRestriction_success
  atest ResetPasswordWithTokenTest#isActivePasswordSufficient_passwordDoesNotSatisfyRestriction_false
  atest ResetPasswordWithTokenTest#isActivePasswordSufficient_passwordSatisfiesRestriction_true
  atest ResetPasswordWithTokenTest#isActivePasswordSufficient_passwordNoLongerSatisfiesRestriction_false
  atest ResetPasswordWithTokenTest#setPasswordQuality_complex_passwordWithAMinLengthOfFourRequired
  atest ResetPasswordWithTokenTest#setPasswordMinimumLength_six_passwordWithAMinLengthOfSixRequired
  atest ResetPasswordWithTokenTest#setPasswordMinimumUpperCase_one_passwordWithAtLeastOneUpperCaseLetterRequired
  atest ResetPasswordWithTokenTest#setPasswordMinimumLowerCase_one_passwordWithAtLeaseOneLowerCaseLetterRequired
  atest ResetPasswordWithTokenTest#setPasswordMinimumLetters_one_passwordWithAtLeastOneLetterRequired
  atest ResetPasswordWithTokenTest#setPasswordMinimumNumeric_one_passwordWithAtLeastOneNumberRequired
  atest ResetPasswordWithTokenTest#setPasswordMinimumSymbols_one_passwordWithAtLeastOneSymbolRequired
  atest ResetPasswordWithTokenTest#setPasswordMinimumNonLetter_one_passwordWithAtLeastOneNonLetterRequired
Change-Id: I1c831e4485c9b984120e3c92fb96bbd325a2d49b
Merged-In: I1c831e4485c9b984120e3c92fb96bbd325a2d49b
1 file changed