mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 01:25:38 -05:00
* automate the setup and use akv to store values * update readme.md * get rid of the save to file part * update readme * add more messages * fix the error * fix some errors * fix the readme
34 lines
2.2 KiB
TypeScript
34 lines
2.2 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
'use strict';
|
|
|
|
import 'mocha';
|
|
import * as vscode from 'vscode';
|
|
import { context } from './testContext';
|
|
import assert = require('assert');
|
|
import { getConfigValue, EnvironmentVariable_BDC_SERVER, EnvironmentVariable_BDC_USERNAME, EnvironmentVariable_BDC_PASSWORD, EnvironmentVariable_AZURE_PASSWORD, EnvironmentVariable_AZURE_SERVER, EnvironmentVariable_AZURE_USERNAME, EnvironmentVariable_STANDALONE_PASSWORD, EnvironmentVariable_STANDALONE_SERVER, EnvironmentVariable_STANDALONE_USERNAME, EnvironmentVariable_PYTHON_PATH } from './utils';
|
|
|
|
assert(getConfigValue(EnvironmentVariable_BDC_SERVER) !== undefined &&
|
|
getConfigValue(EnvironmentVariable_BDC_USERNAME) !== undefined &&
|
|
getConfigValue(EnvironmentVariable_BDC_PASSWORD) !== undefined &&
|
|
getConfigValue(EnvironmentVariable_AZURE_PASSWORD) !== undefined &&
|
|
getConfigValue(EnvironmentVariable_AZURE_SERVER) !== undefined &&
|
|
getConfigValue(EnvironmentVariable_AZURE_USERNAME) !== undefined &&
|
|
getConfigValue(EnvironmentVariable_STANDALONE_PASSWORD) !== undefined &&
|
|
getConfigValue(EnvironmentVariable_STANDALONE_SERVER) !== undefined &&
|
|
getConfigValue(EnvironmentVariable_STANDALONE_USERNAME) !== undefined &&
|
|
getConfigValue(EnvironmentVariable_PYTHON_PATH) !== undefined, 'Required environment variables are not set, if you see this error in the build pipeline, make sure the environment variables are set properly in the build definition, otherwise for local dev environment make sure you follow the instructions in the readme file.');
|
|
|
|
if (!context.RunTest) {
|
|
suite('integration test setup', () => {
|
|
test('test setup', async function () {
|
|
//Prepare the environment and make it ready for testing
|
|
await vscode.commands.executeCommand('test.setupIntegrationTest');
|
|
//Reload the window, this is required for some changes made by the 'test.setupIntegrationTest' to work
|
|
await vscode.commands.executeCommand('workbench.action.reloadWindow');
|
|
});
|
|
});
|
|
} |