Skip to content

Commit

Permalink
Merge branch 'main' into substrate-test-ledger-draft
Browse files Browse the repository at this point in the history
  • Loading branch information
petermetz authored Oct 2, 2021
2 parents 0bc7ff8 + 2e793b9 commit a96055b
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,6 @@ export class PluginKeychainAwsSm
return `@hyperledger/cactus-plugin-keychain-aws-sm`;
}

async rotateEncryptionKeys(): Promise<void> {
throw new Error("Method not implemented.");
}

public getEncryptionAlgorithm(): string {
return (null as unknown) as string;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,6 @@ export class PluginKeychainAzureKv
return `@hyperledger/cactus-plugin-keychain-vault`;
}

async rotateEncryptionKeys(): Promise<void> {
throw new Error("Method not implemented.");
}

public getEncryptionAlgorithm(): string {
return (null as unknown) as string;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ export class PluginKeychainGoogleSm
return `@hyperledger/cactus-plugin-keychain-vault`;
}

async rotateEncryptionKeys(): Promise<void> {
throw new Error("Method not implemented.");
}

public getEncryptionAlgorithm(): string {
return "AES-256";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ export class PluginKeychainVaultRemoteAdapter
return;
}

public rotateEncryptionKeys(): Promise<void> {
throw new Error("Method not implemented.");
}

public getEncryptionAlgorithm(): string {
throw new Error("Method not implemented.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,6 @@ export class PluginKeychainVault implements IPluginWebService, IPluginKeychain {
return;
}

async rotateEncryptionKeys(): Promise<void> {
throw new Error("Method not implemented.");
}

public getEncryptionAlgorithm(): string {
return "AES256";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,22 +320,6 @@ test("API client get,set,has,delete alters state", async (t: Test) => {
t.end();
});

test("rotateEncryptionKeys() fails fast", async (t: Test) => {
const options: IPluginKeychainVaultOptions = {
instanceId: uuidv4(),
keychainId: uuidv4(),
endpoint: "http://127.0.0.1:9200",
token: "root",
};
const plugin = new PluginKeychainVault(options);

const promise = plugin.rotateEncryptionKeys();
const expected = /not implemented/;
await t.rejects(promise, expected, "rotateEncryptionKeys() rejects OK");

t.end();
});

test("getEncryptionAlgorithm() returns null", (t: Test) => {
const options: IPluginKeychainVaultOptions = {
instanceId: uuidv4(),
Expand Down

0 comments on commit a96055b

Please sign in to comment.