Dont validate key presents after unmarshal as this is suppressed unless
a key encryptor is present.
@@ -2,7 +2,6 @@ package com.quorum.tessera.test.vault.hashicorp;
import com.quorum.tessera.config.Config;
import com.quorum.tessera.config.HashicorpKeyVaultConfig;
-import com.quorum.tessera.config.keypairs.HashicorpVaultKeyPair;
import com.quorum.tessera.config.util.JaxbUtil;
import com.quorum.tessera.test.util.ElUtil;
import cucumber.api.java8.En;
@@ -411,12 +410,8 @@ public class HashicorpStepDefs implements En {
createTempTesseraConfig();
final Config config = JaxbUtil.unmarshal(Files.newInputStream(tempTesseraConfig), Config.class);
-
- final HashicorpVaultKeyPair expectedKeyData =
- new HashicorpVaultKeyPair("publicKey", "privateKey", secretEngineName, "tessera", null);
-
- assertThat(config.getKeys().getKeyData().size()).isEqualTo(1);
- assertThat(config.getKeys().getKeyData().get(0)).isEqualToComparingFieldByField(expectedKeyData);
+ JaxbUtil.marshalWithNoValidation(config, System.out);
+ assertThat(config).isNotNull();
});
When(
