Skip to content

Commit

Permalink
[JS] [KeyVault] Copyright headers (#3911)
Browse files Browse the repository at this point in the history
* [JS] [KeyVault] Copyright headers

Fixes #3783
Related to #3837
  • Loading branch information
sadasant authored Jun 20, 2019
1 parent 96b0847 commit 6dc526c
Show file tree
Hide file tree
Showing 15 changed files with 47 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-keys/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import {
ServiceClientCredentials,
Expand Down
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.
// 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.
// 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.
// 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.
// 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.
// 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.
// 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.
// Licensed under the MIT License.

import { env } from "./recorder";

// Async iterator's polyfill for Node 8
Expand Down
4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-secrets/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import {
ServiceClientCredentials,
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.
// 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.
// 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.
// 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.
// 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.
// 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.
// Licensed under the MIT License.

import { env } from "./recorder";

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

0 comments on commit 6dc526c

Please sign in to comment.