mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
adding cpu count and ram to server info (#16109)
This commit is contained in:
@@ -128,6 +128,8 @@ export class ConnectionProvider {
|
|||||||
isCloud: false,
|
isCloud: false,
|
||||||
azureVersion: 1,
|
azureVersion: 1,
|
||||||
osVersion: '1',
|
osVersion: '1',
|
||||||
|
cpuCount: 1,
|
||||||
|
physicalMemoryInMb: 1,
|
||||||
options: connInfo.options
|
options: connInfo.options
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"downloadUrl": "https://github.com/Microsoft/sqltoolsservice/releases/download/v{#version#}/microsoft.sqltools.servicelayer-{#fileName#}",
|
"downloadUrl": "https://github.com/Microsoft/sqltoolsservice/releases/download/v{#version#}/microsoft.sqltools.servicelayer-{#fileName#}",
|
||||||
"version": "3.0.0-release.110",
|
"version": "3.0.0-release.111",
|
||||||
"downloadFileNames": {
|
"downloadFileNames": {
|
||||||
"Windows_86": "win-x86-net5.0.zip",
|
"Windows_86": "win-x86-net5.0.zip",
|
||||||
"Windows_64": "win-x64-net5.0.zip",
|
"Windows_64": "win-x64-net5.0.zip",
|
||||||
|
|||||||
@@ -317,7 +317,9 @@ describe('Utils Tests', function () {
|
|||||||
isCloud: false,
|
isCloud: false,
|
||||||
azureVersion: -1,
|
azureVersion: -1,
|
||||||
osVersion: '',
|
osVersion: '',
|
||||||
options: {}
|
options: {},
|
||||||
|
cpuCount: -1,
|
||||||
|
physicalMemoryInMb: -1
|
||||||
};
|
};
|
||||||
it('empty endpoints does not error', () => {
|
it('empty endpoints does not error', () => {
|
||||||
const serverInfo = Object.assign({}, baseServerInfo);
|
const serverInfo = Object.assign({}, baseServerInfo);
|
||||||
|
|||||||
@@ -289,6 +289,8 @@ describe('Jupyter Session', function (): void {
|
|||||||
isCloud: false,
|
isCloud: false,
|
||||||
azureVersion: 0,
|
azureVersion: 0,
|
||||||
osVersion: '',
|
osVersion: '',
|
||||||
|
cpuCount: 0,
|
||||||
|
physicalMemoryInMb: -1,
|
||||||
options: {
|
options: {
|
||||||
isBigDataCluster: true
|
isBigDataCluster: true
|
||||||
}
|
}
|
||||||
|
|||||||
8
src/sql/azdata.d.ts
vendored
8
src/sql/azdata.d.ts
vendored
@@ -503,6 +503,14 @@ declare module 'azdata' {
|
|||||||
* The Operating System version string of the machine running the instance.
|
* The Operating System version string of the machine running the instance.
|
||||||
*/
|
*/
|
||||||
osVersion: string;
|
osVersion: string;
|
||||||
|
/**
|
||||||
|
* The CPU count of the host running the server.
|
||||||
|
*/
|
||||||
|
cpuCount: number;
|
||||||
|
/**
|
||||||
|
* The physical memory of the host running the server.
|
||||||
|
*/
|
||||||
|
physicalMemoryInMb: number;
|
||||||
/**
|
/**
|
||||||
* options for all new server properties.
|
* options for all new server properties.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -60,6 +60,8 @@ suite('Dashboard Properties Widget Tests', () => {
|
|||||||
serverEdition: undefined,
|
serverEdition: undefined,
|
||||||
azureVersion: undefined,
|
azureVersion: undefined,
|
||||||
osVersion: undefined,
|
osVersion: undefined,
|
||||||
|
cpuCount: undefined,
|
||||||
|
physicalMemoryInMb: undefined,
|
||||||
options: {},
|
options: {},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1332,7 +1332,9 @@ suite('SQL ConnectionManagementService tests', () => {
|
|||||||
azureVersion: 0,
|
azureVersion: 0,
|
||||||
osVersion: 'test_version',
|
osVersion: 'test_version',
|
||||||
options: { isBigDataCluster: 'test' },
|
options: { isBigDataCluster: 'test' },
|
||||||
isCloud: true
|
isCloud: true,
|
||||||
|
cpuCount: 0,
|
||||||
|
physicalMemoryInMb: 0
|
||||||
};
|
};
|
||||||
let uri: string = 'Editor Uri';
|
let uri: string = 'Editor Uri';
|
||||||
let options: IConnectionCompletionOptions = {
|
let options: IConnectionCompletionOptions = {
|
||||||
|
|||||||
Reference in New Issue
Block a user