use of com.google.cloud.secretmanager.v1beta1.Secret in project yakc by manusa.
the class SecretIT method readNamespacedSecret.
@Test
@DisplayName("readNamespacedSecret, should read newly created Secret")
void readNamespacedSecret() throws IOException {
// When
final Secret secretFromServer = KC.create(CoreV1Api.class).readNamespacedSecret(secretName, NAMESPACE).get();
// Then
assertThat(secretFromServer).isNotNull().hasFieldOrPropertyWithValue("metadata.name", secretName).extracting(Secret::getData).asInstanceOf(InstanceOfAssertFactories.MAP).hasSize(3).containsEntry("FOO", "QkFS");
}
Aggregations