mirror of
https://github.com/nicolabs/script-realm-plugin.git
synced 2026-04-12 17:21:38 +02:00
moved to github
This commit is contained in:
parent
6b489ff264
commit
47e2e1a2e5
|
|
@ -1,22 +0,0 @@
|
|||
package hudson.plugins.script_realm;
|
||||
|
||||
import org.acegisecurity.AuthenticationException;
|
||||
import org.jvnet.hudson.test.HudsonTestCase;
|
||||
|
||||
/**
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public class ScriptSecurityRealmTest extends HudsonTestCase {
|
||||
public void test1() {
|
||||
new ScriptSecurityRealm("/bin/true", null, null).authenticate("test","test");
|
||||
}
|
||||
|
||||
public void test2() {
|
||||
try {
|
||||
new ScriptSecurityRealm("/bin/false", null, null).authenticate("test","test");
|
||||
fail();
|
||||
} catch (AuthenticationException e) {
|
||||
// as expected
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue