Skip to content

Commit

Permalink
JENKINS-7828 Added ability to use authentication information in ~/.sa…
Browse files Browse the repository at this point in the history
…uce-ondemand file
  • Loading branch information
rossrowe committed Jan 26, 2012
1 parent 313e715 commit 7216b8f
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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.