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());
}
Aggregations