From 6dc526cda5392af31e02293d6bb6fd076616c955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Rodr=C3=ADguez?= Date: Thu, 20 Jun 2019 19:07:31 -0400 Subject: [PATCH] [JS] [KeyVault] Copyright headers (#3911) * [JS] [KeyVault] Copyright headers Fixes #3783 Related to #3837 --- sdk/keyvault/keyvault-keys/src/index.ts | 4 ++-- sdk/keyvault/keyvault-keys/src/keysModels.ts | 3 +++ sdk/keyvault/keyvault-keys/tests/CRUD.test.ts | 3 +++ sdk/keyvault/keyvault-keys/tests/list.test.ts | 3 +++ .../keyvault-keys/tests/recoverBackupRestore.test.ts | 3 +++ sdk/keyvault/keyvault-keys/tests/utils/index.browser.ts | 3 +++ sdk/keyvault/keyvault-keys/tests/utils/recorder.ts | 3 +++ sdk/keyvault/keyvault-keys/tests/utils/utils.common.ts | 3 +++ sdk/keyvault/keyvault-secrets/src/index.ts | 4 ++-- sdk/keyvault/keyvault-secrets/src/secretsModels.ts | 3 +++ sdk/keyvault/keyvault-secrets/tests/CRUD.test.ts | 3 +++ sdk/keyvault/keyvault-secrets/tests/list.test.ts | 3 +++ .../keyvault-secrets/tests/recoverBackupRestore.test.ts | 8 +++++++- sdk/keyvault/keyvault-secrets/tests/utils/recorder.ts | 3 +++ sdk/keyvault/keyvault-secrets/tests/utils/utils.common.ts | 3 +++ 15 files changed, 47 insertions(+), 5 deletions(-) diff --git a/sdk/keyvault/keyvault-keys/src/index.ts b/sdk/keyvault/keyvault-keys/src/index.ts index 5f13aeea3d9f..48c0f44de5cc 100644 --- a/sdk/keyvault/keyvault-keys/src/index.ts +++ b/sdk/keyvault/keyvault-keys/src/index.ts @@ -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, diff --git a/sdk/keyvault/keyvault-keys/src/keysModels.ts b/sdk/keyvault/keyvault-keys/src/keysModels.ts index da6eac2be97b..8b3d1bfc6d69 100644 --- a/sdk/keyvault/keyvault-keys/src/keysModels.ts +++ b/sdk/keyvault/keyvault-keys/src/keysModels.ts @@ -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"; diff --git a/sdk/keyvault/keyvault-keys/tests/CRUD.test.ts b/sdk/keyvault/keyvault-keys/tests/CRUD.test.ts index 21cecb365050..53bc30122ce5 100644 --- a/sdk/keyvault/keyvault-keys/tests/CRUD.test.ts +++ b/sdk/keyvault/keyvault-keys/tests/CRUD.test.ts @@ -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"; diff --git a/sdk/keyvault/keyvault-keys/tests/list.test.ts b/sdk/keyvault/keyvault-keys/tests/list.test.ts index 5053358bfaa8..63bc0e654587 100644 --- a/sdk/keyvault/keyvault-keys/tests/list.test.ts +++ b/sdk/keyvault/keyvault-keys/tests/list.test.ts @@ -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"; diff --git a/sdk/keyvault/keyvault-keys/tests/recoverBackupRestore.test.ts b/sdk/keyvault/keyvault-keys/tests/recoverBackupRestore.test.ts index 5a942132bf35..2d43f919ffd6 100644 --- a/sdk/keyvault/keyvault-keys/tests/recoverBackupRestore.test.ts +++ b/sdk/keyvault/keyvault-keys/tests/recoverBackupRestore.test.ts @@ -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"; diff --git a/sdk/keyvault/keyvault-keys/tests/utils/index.browser.ts b/sdk/keyvault/keyvault-keys/tests/utils/index.browser.ts index 4f9f293a8d7f..a9948afa1613 100644 --- a/sdk/keyvault/keyvault-keys/tests/utils/index.browser.ts +++ b/sdk/keyvault/keyvault-keys/tests/utils/index.browser.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + export async function blobToString(blob: Blob): Promise { const fileReader = new FileReader(); return new Promise((resolve, reject) => { diff --git a/sdk/keyvault/keyvault-keys/tests/utils/recorder.ts b/sdk/keyvault/keyvault-keys/tests/utils/recorder.ts index 6b277392b186..adc338eb2bbc 100644 --- a/sdk/keyvault/keyvault-keys/tests/utils/recorder.ts +++ b/sdk/keyvault/keyvault-keys/tests/utils/recorder.ts @@ -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"; diff --git a/sdk/keyvault/keyvault-keys/tests/utils/utils.common.ts b/sdk/keyvault/keyvault-keys/tests/utils/utils.common.ts index cfb16ae769f9..9fb15874252b 100644 --- a/sdk/keyvault/keyvault-keys/tests/utils/utils.common.ts +++ b/sdk/keyvault/keyvault-keys/tests/utils/utils.common.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import { env } from "./recorder"; // Async iterator's polyfill for Node 8 diff --git a/sdk/keyvault/keyvault-secrets/src/index.ts b/sdk/keyvault/keyvault-secrets/src/index.ts index a7dda45a64bd..cfd41163a20a 100644 --- a/sdk/keyvault/keyvault-secrets/src/index.ts +++ b/sdk/keyvault/keyvault-secrets/src/index.ts @@ -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, diff --git a/sdk/keyvault/keyvault-secrets/src/secretsModels.ts b/sdk/keyvault/keyvault-secrets/src/secretsModels.ts index 7981ce0af640..c0887435306c 100644 --- a/sdk/keyvault/keyvault-secrets/src/secretsModels.ts +++ b/sdk/keyvault/keyvault-secrets/src/secretsModels.ts @@ -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"; diff --git a/sdk/keyvault/keyvault-secrets/tests/CRUD.test.ts b/sdk/keyvault/keyvault-secrets/tests/CRUD.test.ts index 6252b264f4fe..840d4075c2a8 100644 --- a/sdk/keyvault/keyvault-secrets/tests/CRUD.test.ts +++ b/sdk/keyvault/keyvault-secrets/tests/CRUD.test.ts @@ -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"; diff --git a/sdk/keyvault/keyvault-secrets/tests/list.test.ts b/sdk/keyvault/keyvault-secrets/tests/list.test.ts index 6981b5e2be1b..1d9d7db41df1 100644 --- a/sdk/keyvault/keyvault-secrets/tests/list.test.ts +++ b/sdk/keyvault/keyvault-secrets/tests/list.test.ts @@ -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"; diff --git a/sdk/keyvault/keyvault-secrets/tests/recoverBackupRestore.test.ts b/sdk/keyvault/keyvault-secrets/tests/recoverBackupRestore.test.ts index 5a5a42763617..02d3250a51b1 100644 --- a/sdk/keyvault/keyvault-secrets/tests/recoverBackupRestore.test.ts +++ b/sdk/keyvault/keyvault-secrets/tests/recoverBackupRestore.test.ts @@ -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"; @@ -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(); }); diff --git a/sdk/keyvault/keyvault-secrets/tests/utils/recorder.ts b/sdk/keyvault/keyvault-secrets/tests/utils/recorder.ts index 6b277392b186..adc338eb2bbc 100644 --- a/sdk/keyvault/keyvault-secrets/tests/utils/recorder.ts +++ b/sdk/keyvault/keyvault-secrets/tests/utils/recorder.ts @@ -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"; diff --git a/sdk/keyvault/keyvault-secrets/tests/utils/utils.common.ts b/sdk/keyvault/keyvault-secrets/tests/utils/utils.common.ts index cfb16ae769f9..9fb15874252b 100644 --- a/sdk/keyvault/keyvault-secrets/tests/utils/utils.common.ts +++ b/sdk/keyvault/keyvault-secrets/tests/utils/utils.common.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import { env } from "./recorder"; // Async iterator's polyfill for Node 8