Add check OE node tests (#4273)

* Added verify OE child nodes tests for sandalone and BDC instance

* msg changes

* Added standalone OE node test

* Resolved PR comments

* Change env name

* Added scripts to set env for integration test
This commit is contained in:
Yurong He
2019-03-05 14:42:05 -08:00
committed by GitHub
parent 5248c8f78d
commit 7eaf8cfd2f
7 changed files with 70 additions and 10 deletions

View File

@@ -8,7 +8,7 @@ import * as azdata from 'azdata';
import * as vscode from 'vscode';
import { TestServerProfile } from './testConfig';
export async function connectToServer(server: TestServerProfile) {
export async function connectToServer(server: TestServerProfile, timeout: number = 3000) {
let connectionProfile: azdata.IConnectionProfile = {
serverName: server.serverName,
databaseName: server.database,
@@ -30,9 +30,9 @@ export async function connectToServer(server: TestServerProfile) {
//workaround
//wait for OE to load
await new Promise(c => setTimeout(c, 3000));
await new Promise(c => setTimeout(c, timeout));
}
export async function ensureConnectionViewOpened() {
await vscode.commands.executeCommand('workbench.view.dataExplorer');
await vscode.commands.executeCommand('dataExplorer.servers.focus');
}