Search in sources :

Example 1 with GetSecretRequest

use of com.google.cloud.secretmanager.v1beta1.GetSecretRequest in project java-secretmanager by googleapis.

the class ITSystemTest method getSecretTest.

@Test
public void getSecretTest() {
    GetSecretRequest request = GetSecretRequest.newBuilder().setName(formattedSecretName).build();
    Secret actualSecret = client.getSecret(request);
    assertEquals(secret.getName(), actualSecret.getName());
    assertEquals(secret.getReplication(), actualSecret.getReplication());
    assertEquals(secret.getCreateTime(), actualSecret.getCreateTime());
}
Also used : Secret(com.google.cloud.secretmanager.v1beta1.Secret) GetSecretRequest(com.google.cloud.secretmanager.v1beta1.GetSecretRequest) Test(org.junit.Test)

Aggregations

GetSecretRequest (com.google.cloud.secretmanager.v1beta1.GetSecretRequest)1 Secret (com.google.cloud.secretmanager.v1beta1.Secret)1 Test (org.junit.Test)1