8006690: sun/security/krb5/auto/BadKdc* tests fails intermittently

Some of test for bad KDC failed intermittently

Reviewed-by: weijun
This commit is contained in:
Sibabrata Sahoo 2016-08-26 01:20:30 -07:00
parent ab6aaea20a
commit 6ab4f9a732
3 changed files with 14 additions and 14 deletions

View File

@ -44,16 +44,16 @@ public class BadKdc1 {
}
BadKdc.go(
"121212222222(32){1,2}1222(32){1,2}", // 1 2
"121212222222(32){1,3}1222(32){1,3}", // 1 2
// The above line means try kdc1 for 2 seconds then kdc1
// for 2 seconds... finally kdc3 for 2 seconds.
"1222(32){1,2}1222(32){1,2}", // 1 2
"1222(32){1,3}1222(32){1,3}", // 1 2
// refresh
"121212222222(32){1,2}1222(32){1,2}", // 1 2
"121212222222(32){1,3}1222(32){1,3}", // 1 2
// k3 off k2 on
"(122212(22){1,2}|1222323232-)", // 1
"(122212(22){1,3}|1222323232-)", // 1
// k1 on
"(12(12){1,2}|122212|122232-)" // empty
"(12(12){1,3}|122212|122232-)" // empty
);
}
}

View File

@ -42,14 +42,14 @@ public class BadKdc2 {
Security.setProperty(
"krb5.kdc.bad.policy", "tryLess:2," + BadKdc.toReal(1000));
BadKdc.go(
"121212222222(32){1,2}11112121(32){1,2}", // 1 2
"11112121(32){1,2}11112121(32){1,2}", // 1 2
"121212222222(32){1,3}11112121(32){1,3}", // 1 2
"11112121(32){1,3}11112121(32){1,3}", // 1 2
// refresh
"121212222222(32){1,2}11112121(32){1,2}", // 1 2
"121212222222(32){1,3}11112121(32){1,3}", // 1 2
// k3 off k2 on
"1111(21){1,2}1111(22){1,2}", // 1
"1111(21){1,3}1111(22){1,3}", // 1
// k1 on
"(11){1,2}(12){1,2}" // empty
"(11){1,3}(12){1,3}" // empty
);
}
}

View File

@ -37,12 +37,12 @@ public class BadKdc4 {
throws Exception {
Security.setProperty("krb5.kdc.bad.policy", "");
BadKdc.go(
"121212222222(32){1,2}121212222222(32){1,2}",
"121212222222(32){1,2}121212222222(32){1,2}",
"121212222222(32){1,3}121212222222(32){1,3}",
"121212222222(32){1,3}121212222222(32){1,3}",
// refresh
"121212222222(32){1,2}121212222222(32){1,2}",
"121212222222(32){1,3}121212222222(32){1,3}",
// k3 off k2 on
"121212(22){1,2}121212(22){1,2}",
"121212(22){1,3}121212(22){1,3}",
// k1 on
"(12){2,4}"
);