public class CLICommandInvoker extends Object
CLICommand and check the response.| Modifier and Type | Class and Description |
|---|---|
static class |
CLICommandInvoker.Matcher |
static class |
CLICommandInvoker.Result |
| Constructor and Description |
|---|
CLICommandInvoker(JenkinsRule rule,
hudson.cli.CLICommand command) |
CLICommandInvoker(JenkinsRule rule,
String command) |
| Modifier and Type | Method and Description |
|---|---|
CLICommandInvoker |
asUser(String user)
Run the command as a given username.
|
CLICommandInvoker |
authorizedTo(hudson.security.Permission... permissions)
Deprecated.
Rather use
asUser(java.lang.String). |
CLICommandInvoker.Result |
invoke() |
CLICommandInvoker.Result |
invokeWithArgs(String... args) |
hudson.model.User |
user()
Deprecated.
only used with
authorizedTo(hudson.security.Permission...) |
CLICommandInvoker |
withArgs(String... args) |
CLICommandInvoker |
withStdin(InputStream stdin) |
public CLICommandInvoker(JenkinsRule rule, hudson.cli.CLICommand command)
public CLICommandInvoker(JenkinsRule rule, String command)
@Deprecated public CLICommandInvoker authorizedTo(hudson.security.Permission... permissions)
asUser(java.lang.String).public CLICommandInvoker asUser(String user)
Jenkins.setSecurityRealm(hudson.security.SecurityRealm),
JenkinsRule.createDummySecurityRealm(),
Jenkins.setAuthorizationStrategy(hudson.security.AuthorizationStrategy),
MockAuthorizationStrategypublic CLICommandInvoker withStdin(InputStream stdin)
public CLICommandInvoker withArgs(String... args)
public CLICommandInvoker.Result invokeWithArgs(String... args)
public CLICommandInvoker.Result invoke()
@Deprecated public hudson.model.User user()
authorizedTo(hudson.security.Permission...)Copyright © 2004–2019. All rights reserved.