Skip to content
Permalink
Browse files

JENKINS-7828 Added ability to use authentication information in ~/.sa…

…uce-ondemand file
  • Loading branch information
rossrowe committed Jan 26, 2012
1 parent 313e715 commit 7216b8ffcbfc2348b60533d268b47db10d3e7641
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/test/java/hudson/plugins/sauce_ondemand/PluginImplTest.java
@@ -26,8 +26,8 @@
import com.saucelabs.rest.Credential;
import hudson.plugins.sauce_ondemand.PluginImpl.DescriptorImpl;
import hudson.util.FormValidation.Kind;
import hudson.util.Secret;
import org.jvnet.hudson.test.HudsonTestCase;

import java.io.File;

/**
@@ -62,10 +62,10 @@ public void testValidation() throws Exception {
DescriptorImpl d = PluginImpl.get().getDescriptor();

// this should fail
assertEquals(Kind.ERROR, d.doValidate("bogus","bogus").kind);
assertEquals(Kind.ERROR, d.doValidate("bogus","bogus", false).kind);

// this should work
Credential c = new Credential();
assertEquals(Kind.OK, d.doValidate(c.getUsername(),c.getKey()).kind);
assertEquals(Kind.OK, d.doValidate(c.getUsername(),c.getKey(), false).kind);
}
}

0 comments on commit 7216b8f

Please sign in to comment.
You can’t perform that action at this time.