Skip to content

Commit

Permalink
[JS] [KeyVault] Copyright headers
Browse files Browse the repository at this point in the history
Fixes #3783
  • Loading branch information
sadasant committed Jun 20, 2019
1 parent b0c5ac8 commit e29a961
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 1 deletion.
3 changes: 3 additions & 0 deletions sdk/keyvault/keyvault-keys/src/keysModels.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import * as msRest from "@azure/core-http";
import { ParsedKeyVaultEntityIdentifier } from "./core/keyVaultBase";
import { JsonWebKey, JsonWebKeyOperation, JsonWebKeyCurveName } from "./core/models";
Expand Down
3 changes: 3 additions & 0 deletions sdk/keyvault/keyvault-keys/tests/CRUD.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import * as assert from "assert";
import { getKeyvaultName } from "./utils/utils.common";
import { KeysClient, CreateEcKeyOptions, UpdateKeyOptions, GetKeyOptions } from "../src";
Expand Down
3 changes: 3 additions & 0 deletions sdk/keyvault/keyvault-keys/tests/list.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import * as assert from "assert";
import { getKeyvaultName } from "./utils/utils.common";
import { KeysClient, CreateEcKeyOptions, UpdateKeyOptions, GetKeyOptions } from "../src";
Expand Down
3 changes: 3 additions & 0 deletions sdk/keyvault/keyvault-keys/tests/recoverBackupRestore.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import * as assert from "assert";
import { getKeyvaultName } from "./utils/utils.common";
import { KeysClient, CreateEcKeyOptions, UpdateKeyOptions, GetKeyOptions } from "../src";
Expand Down
3 changes: 3 additions & 0 deletions sdk/keyvault/keyvault-keys/tests/utils/index.browser.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

export async function blobToString(blob: Blob): Promise<string> {
const fileReader = new FileReader();
return new Promise<string>((resolve, reject) => {
Expand Down
3 changes: 3 additions & 0 deletions sdk/keyvault/keyvault-keys/tests/utils/recorder.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import fs from "fs-extra";
import queryString from "query-string";
import { blobToString } from "./index.browser";
Expand Down
3 changes: 3 additions & 0 deletions sdk/keyvault/keyvault-keys/tests/utils/utils.common.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import { env } from "./recorder";

// Async iterator's polyfill for Node 8
Expand Down
3 changes: 3 additions & 0 deletions sdk/keyvault/keyvault-secrets/src/secretsModels.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import * as msRest from "@azure/core-http";
import { DeletionRecoveryLevel } from "./core/models";
import { ParsedKeyVaultEntityIdentifier } from "./core/keyVaultBase";
Expand Down
3 changes: 3 additions & 0 deletions sdk/keyvault/keyvault-secrets/tests/CRUD.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import * as assert from "assert";
import { SecretsClient } from "../src";
import { record, setReplaceableVariables, delay, setReplacements, env } from "./utils/recorder";
Expand Down
3 changes: 3 additions & 0 deletions sdk/keyvault/keyvault-secrets/tests/list.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import * as assert from "assert";
import { expect } from "chai";
import { SecretsClient } from "../src";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import * as assert from "assert";
import { SecretsClient } from "../src";
import { record, setReplaceableVariables, delay, setReplacements, env } from "./utils/recorder";
Expand Down Expand Up @@ -104,7 +107,10 @@ describe("Secret client - restore secrets and recover backups", () => {
await client.setSecret(secretName, "RSA");
const result = await client.backupSecret(secretName);
assert.equal(Buffer.isBuffer(result), true, "Unexpected return value from backupSecret()");
assert.ok(result.length > 4500, `Unexpected length (${result.length}) of buffer from backupSecret()`);
assert.ok(
result.length > 4500,
`Unexpected length (${result.length}) of buffer from backupSecret()`
);
await flushSecret();
});

Expand Down
3 changes: 3 additions & 0 deletions sdk/keyvault/keyvault-secrets/tests/utils/recorder.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import fs from "fs-extra";
import queryString from "query-string";
import { blobToString } from "./index.browser";
Expand Down
3 changes: 3 additions & 0 deletions sdk/keyvault/keyvault-secrets/tests/utils/utils.common.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import { env } from "./recorder";

// Async iterator's polyfill for Node 8
Expand Down

0 comments on commit e29a961

Please sign in to comment.