Annotation Type WithCredentials
-
@Retention(RUNTIME) @Target({METHOD,TYPE}) @Inherited @Documented @RuleAnnotation(value=RuleImpl.class, priority=11) public @interface WithCredentials
Indicates that a test requires credentials. Adds required credentials in the credential pluginSupports:
-Username/password:
Example: @WithCredentials(credentialType = WithCredentials.USERNAME_PASSWORD, values = {"username", "password"})
-Username/sshKey:
Example: @WithCredentials(credentialType = WithCredentials.SSH_USERNAME_PRIVATE_KEY, values = {"username", "/ssh_keys/unsafe"})
- Author:
- Karl Matthias
-
-
Field Summary
Fields Modifier and Type Fields Description static int
SSH_USERNAME_PRIVATE_KEY
static int
USERNAME_PASSWORD
-
Required Element Summary
Required Elements Modifier and Type Required Element Description int
credentialType
String[]
values
-