@Test public void getSshKeyMetadata () { GcpSSHKeyMetadata actual = gcpRuntimeSSHKey.getSshKeyMetadata(); assertTrue(gcpRuntimeSSHKey.getSSHKeys() .keySet() .stream() .map(pub -> new Buffer.PlainBuffer().putPublicKey(pub).getCompactData()) .map(bytes -> Base64.getEncoder().encodeToString(bytes)) .anyMatch(s -> actual.getPublicKey().equals(s))); assertEquals("chaosengine", actual.getUsername()); }
public GcpSSHKeyMetadata getSshKeyMetadata () { return sshKeyMetadata; }
GcpRuntimeSSHKey extends ChaosSSHCredentials { public GcpSSHKeyMetadata getSshKeyMetadata () { return sshKeyMetadata; } }
GcpRuntimeSSHKey extends ChaosSSHCredentials { public GcpSSHKeyMetadata getSshKeyMetadata () { return sshKeyMetadata; } GcpRuntimeSSHKey(); }
GcpRuntimeSSHKey extends ChaosSSHCredentials { public GcpSSHKeyMetadata getSshKeyMetadata () { return sshKeyMetadata; } GcpRuntimeSSHKey(); GcpSSHKeyMetadata getSshKeyMetadata(); }
GcpRuntimeSSHKey extends ChaosSSHCredentials { public GcpSSHKeyMetadata getSshKeyMetadata () { return sshKeyMetadata; } GcpRuntimeSSHKey(); GcpSSHKeyMetadata getSshKeyMetadata(); static final String CHAOS_USERNAME; }