mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
Remove Data Services folder (#7147)
* Remove Data Services folder * Remove copy path from HDFS node * Add comment
This commit is contained in:
@@ -41,7 +41,7 @@ class ObjectExplorerTester {
|
||||
|
||||
@stressify({ dop: ObjectExplorerTester.ParallelCount })
|
||||
async bdcNodeLabelTest(): Promise<void> {
|
||||
const expectedNodeLabel = ['Databases', 'Security', 'Server Objects', 'Data Services'];
|
||||
const expectedNodeLabel = ['Databases', 'Security', 'Server Objects'];
|
||||
const server = await getBdcServer();
|
||||
await this.verifyOeNode(server, DefaultConnectTimeoutInMs, expectedNodeLabel);
|
||||
}
|
||||
@@ -120,12 +120,13 @@ class ObjectExplorerTester {
|
||||
|
||||
const index = nodes.findIndex(node => node.nodePath.includes(server.serverName));
|
||||
assert(index !== -1, `Failed to find server: "${server.serverName}" in OE tree`);
|
||||
const actualNodeLabel = [];
|
||||
const children = await nodes[index].getChildren();
|
||||
assert(children.length === expectedNodeLabel.length, `Expecting node count: ${expectedNodeLabel.length}, Actual: ${children.length}`);
|
||||
// TODO: #7146 HDFS isn't always filled in by the call to getChildren since it's loaded asynchronously. To avoid this test being flaky just removing
|
||||
// the node for now if it exists until a proper fix can be made.
|
||||
const children = (await nodes[index].getChildren()).filter(c => c.label !== 'HDFS');
|
||||
const actualLabelsString = children.map(c => c.label).join(',');
|
||||
const expectedLabelString = expectedNodeLabel.join(',');
|
||||
assert(expectedNodeLabel.length === children.length && expectedLabelString === actualLabelsString, `Expected node label: "${expectedLabelString}", Actual: "${actualLabelsString}"`);
|
||||
|
||||
children.forEach(c => actualNodeLabel.push(c.label));
|
||||
assert(expectedNodeLabel.toLocaleString() === actualNodeLabel.toLocaleString(), `Expected node label: "${expectedNodeLabel}", Actual: "${actualNodeLabel}"`);
|
||||
}
|
||||
|
||||
async verifyDBContextMenu(server: TestServerProfile, timeoutinMS: number, expectedActions: string[]): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user