Annotation Interface WithCredentials


Indicates that a test requires credentials. Adds required credentials in the credential plugin

Supports:

-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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
     
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional ID to specify.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
  • Field Details

  • Element Details

    • credentialType

      int credentialType
    • values

      String[] values
    • id

      String id
      Optional ID to specify.
      Default:
      ""