From e29a961c3a478f1344e680146293d84f0e212d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Rodr=C3=ADguez?= Date: Tue, 18 Jun 2019 16:27:27 -0400 Subject: [PATCH] [JS] [KeyVault] Copyright headers Fixes #3783 --- 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/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 +++ 13 files changed, 43 insertions(+), 1 deletion(-) diff --git a/sdk/keyvault/keyvault-keys/src/keysModels.ts b/sdk/keyvault/keyvault-keys/src/keysModels.ts index da6eac2be97b..af587f09dd38 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. 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"; diff --git a/sdk/keyvault/keyvault-keys/tests/CRUD.test.ts b/sdk/keyvault/keyvault-keys/tests/CRUD.test.ts index 21cecb365050..02eebc0e8ee9 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. 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"; diff --git a/sdk/keyvault/keyvault-keys/tests/list.test.ts b/sdk/keyvault/keyvault-keys/tests/list.test.ts index 5053358bfaa8..4430d1bd8b7f 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. 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"; diff --git a/sdk/keyvault/keyvault-keys/tests/recoverBackupRestore.test.ts b/sdk/keyvault/keyvault-keys/tests/recoverBackupRestore.test.ts index 5a942132bf35..0d722031be82 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. 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"; diff --git a/sdk/keyvault/keyvault-keys/tests/utils/index.browser.ts b/sdk/keyvault/keyvault-keys/tests/utils/index.browser.ts index 4f9f293a8d7f..2fcf580aef09 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. All rights reserved. +// 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..3a03515a522e 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. All rights reserved. +// 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..b415e29d553a 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. All rights reserved. +// Licensed under the MIT License. + import { env } from "./recorder"; // Async iterator's polyfill for Node 8 diff --git a/sdk/keyvault/keyvault-secrets/src/secretsModels.ts b/sdk/keyvault/keyvault-secrets/src/secretsModels.ts index 7981ce0af640..4ccb83ef0557 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. 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"; diff --git a/sdk/keyvault/keyvault-secrets/tests/CRUD.test.ts b/sdk/keyvault/keyvault-secrets/tests/CRUD.test.ts index 6252b264f4fe..5aed978b8df6 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. 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"; diff --git a/sdk/keyvault/keyvault-secrets/tests/list.test.ts b/sdk/keyvault/keyvault-secrets/tests/list.test.ts index 6981b5e2be1b..4890ac82b445 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. All rights reserved. +// 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..ba7767d20d1b 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. 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"; @@ -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..3a03515a522e 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. All rights reserved. +// 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..b415e29d553a 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. All rights reserved. +// Licensed under the MIT License. + import { env } from "./recorder"; // Async iterator's polyfill for Node 8