Skip to content

Commit

Permalink
add new properties to deletedKey test
Browse files Browse the repository at this point in the history
  • Loading branch information
maorleger committed Jul 2, 2021
1 parent 6c51ff8 commit c2c0ad8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions sdk/keyvault/keyvault-keys/test/internal/transformations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import {
import { stringToUint8Array } from "../utils/crypto";

describe("Transformations", () => {
const releasePolicy = {
contentType: "content type",
data: stringToUint8Array("release policy")
};
it("KeyBundle to KeyVaultKey", () => {
const date = new Date();
const releasePolicy = {
contentType: "content type",
data: stringToUint8Array("release policy")
};
const bundle: KeyBundle = {
key: {
kid:
Expand Down Expand Up @@ -96,13 +96,15 @@ describe("Transformations", () => {
notBefore: date,
expires: date,
created: date,
updated: date
updated: date,
exportable: false
},
tags: {
tag_name: "tag_value"
},
managed: false,
recoveryId: "recovery-id",
releasePolicy,
scheduledPurgeDate: date,
deletedDate: date
};
Expand Down Expand Up @@ -131,6 +133,8 @@ describe("Transformations", () => {
tags: {
tag_name: "tag_value"
},
releasePolicy,
exportable: false,
createdOn: date,
updatedOn: date,
recoveryLevel: "Recoverable",
Expand Down

0 comments on commit c2c0ad8

Please sign in to comment.