Skip to content

Commit

Permalink
removed todos and created issue see Consensys#1432
Browse files Browse the repository at this point in the history
Signed-off-by: Sally MacFarlane <[email protected]>
  • Loading branch information
macfarla committed Apr 4, 2022
1 parent 8fa9953 commit dee1397
Showing 1 changed file with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,32 +270,6 @@ public void setValuePreservePreDefined() throws Exception {
assertThat(config.getJdbcConfig().getPassword()).isEqualTo("tiger");
}

// TODO: Need to support oerrides in config module
@Ignore
@Test
public void definePrivateAndPublicKeyWithOverridesOnly() throws Exception {

Config config = OverrideUtil.createInstance(Config.class);

OverrideUtil.setValue(config, "keys[0].keyData.publicKey", "PUBLICKEY");
OverrideUtil.setValue(config, "keys[0].keyData.privateKey", "PRIVATEKEY");
// UNmarshlling to COnfig to
try (ByteArrayOutputStream bout = new ByteArrayOutputStream()) {
JaxbUtil.marshalWithNoValidation(config, bout);
Config result =
JaxbUtil.unmarshal(new ByteArrayInputStream(bout.toByteArray()), Config.class);
assertThat(result.getKeys()).isNotNull();

KeyConfiguration keyConfig = result.getKeys();

assertThat(keyConfig.getKeyData()).hasSize(1);

assertThat(keyConfig.getKeyData().get(0).getPrivateKey()).isEqualTo("PRIVATEKEY");

assertThat(keyConfig.getKeyData().get(0).getPublicKey()).isEqualTo("PUBLICKEY");
}
}

@Test
public void defineAlwaysSendToWithOverridesOnly() throws Exception {

Expand Down

0 comments on commit dee1397

Please sign in to comment.