6875033: regression: test of 6867665 fail

Reviewed-by: xuelei
This commit is contained in:
Weijun Wang 2009-08-24 18:37:48 +08:00
parent 491fdce2fd
commit e936496a7b

View File

@ -23,6 +23,7 @@
/*
* @test
* @bug 6867665
* @bug 6875033
* @summary Problem with keytabs with multiple kvno's (key versions)
*/
@ -223,9 +224,6 @@ public class HighestKvno {
KeyTab ktab = KeyTab.getInstance("kt");
PrincipalName pn = new PrincipalName("me@MAD.LOCAL");
EncryptionKey[] keys = ktab.readServiceKeys(pn);
if (keys.length != 9) {
throw new Exception("Count error");
}
if (keys[0].getKeyVersionNumber() != 5) {
throw new Exception("Highest not first");
}