Remove invalid test
1. Remove the invalid test Per ag/23288037, the feature is now always available 2. Rename processAndValidatePasswordRequirements_autoPinEnabled_defaultPinMinimumLength Bug: 291146670 Test: atest ChooseLockPasswordTest Change-Id: If96ac99aa1a98636a14017c880892436767c4a41
This commit is contained in:
@@ -65,7 +65,6 @@ import com.google.android.setupdesign.GlifLayout;
|
|||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.robolectric.Robolectric;
|
import org.robolectric.Robolectric;
|
||||||
@@ -395,26 +394,8 @@ public class ChooseLockPasswordTest {
|
|||||||
"Must be at least 6 characters");
|
"Must be at least 6 characters");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore
|
|
||||||
@Test
|
@Test
|
||||||
public void processAndValidatePasswordRequirements_autoPinDisabled_defaultPinMinimumLength() {
|
public void processAndValidatePasswordRequirements_defaultPinMinimumLength() {
|
||||||
DeviceConfig.setProperty(NAMESPACE_AUTO_PIN_CONFIRMATION, FLAG_ENABLE_AUTO_PIN_CONFIRMATION,
|
|
||||||
/* value= */ "false", /* makeDefault= */ false);
|
|
||||||
PasswordPolicy policy = new PasswordPolicy();
|
|
||||||
policy.quality = PASSWORD_QUALITY_UNSPECIFIED;
|
|
||||||
|
|
||||||
assertPasswordValidationResult(
|
|
||||||
/* minMetrics */ policy.getMinMetrics(),
|
|
||||||
/* minComplexity= */ PASSWORD_COMPLEXITY_NONE,
|
|
||||||
/* passwordType= */ PASSWORD_QUALITY_NUMERIC,
|
|
||||||
/* userEnteredPassword= */ LockscreenCredential.createPassword("11"),
|
|
||||||
"PIN must be at least 4 digits");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void processAndValidatePasswordRequirements_autoPinEnabled_defaultPinMinimumLength() {
|
|
||||||
DeviceConfig.setProperty(NAMESPACE_AUTO_PIN_CONFIRMATION, FLAG_ENABLE_AUTO_PIN_CONFIRMATION,
|
|
||||||
/* value= */ "true", /* makeDefault= */ false);
|
|
||||||
PasswordPolicy policy = new PasswordPolicy();
|
PasswordPolicy policy = new PasswordPolicy();
|
||||||
policy.quality = PASSWORD_QUALITY_UNSPECIFIED;
|
policy.quality = PASSWORD_QUALITY_UNSPECIFIED;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user