mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 17:22:55 -05:00
Populate Project in Update project from db UI (#23169)
* Populate Project in Update Project from db UI * Add tests * Fix test * Address comment
This commit is contained in:
@@ -139,3 +139,55 @@ export const mockURIList: vscode.Uri[] = [
|
||||
vscode.Uri.file('/test/folder/folder1/abc1.sqlproj'),
|
||||
vscode.Uri.file('/test/folder/folder2/abc2.sqlproj')
|
||||
];
|
||||
|
||||
export const mockConnectionInfo = {
|
||||
id: undefined,
|
||||
userName: 'My User',
|
||||
password: 'My Pwd',
|
||||
serverName: 'My Server',
|
||||
databaseName: 'My Database',
|
||||
connectionName: 'My Connection',
|
||||
providerName: undefined,
|
||||
groupId: 'My GroupId',
|
||||
groupFullName: 'My groupName',
|
||||
authenticationType: azdata.connection.AuthenticationType.SqlLogin,
|
||||
savePassword: false,
|
||||
saveProfile: true,
|
||||
options: {
|
||||
server: 'My Server',
|
||||
database: 'My Database',
|
||||
user: 'My User',
|
||||
password: 'My Pwd',
|
||||
authenticationType: 'SqlLogin',
|
||||
connectionName: 'My Connection Name'
|
||||
}
|
||||
};
|
||||
|
||||
export const mockProjectEndpointInfo: mssql.SchemaCompareEndpointInfo = {
|
||||
endpointType: mssql.SchemaCompareEndpointType.Project,
|
||||
projectFilePath: '',
|
||||
extractTarget: mssql.ExtractTarget.schemaObjectType,
|
||||
targetScripts: [],
|
||||
dataSchemaProvider: '150',
|
||||
connectionDetails: mockConnectionInfo,
|
||||
databaseName: '',
|
||||
serverDisplayName: '',
|
||||
serverName: '',
|
||||
ownerUri: '',
|
||||
packageFilePath: ''
|
||||
};
|
||||
|
||||
export const mockDatabaseEndpointInfo: mssql.SchemaCompareEndpointInfo = {
|
||||
endpointType: mssql.SchemaCompareEndpointType.Database,
|
||||
databaseName: 'My Database',
|
||||
serverDisplayName: 'My Connection Name',
|
||||
serverName: 'My Server',
|
||||
connectionDetails: mockConnectionInfo,
|
||||
ownerUri: 'MockUri',
|
||||
projectFilePath: '',
|
||||
extractTarget: mssql.ExtractTarget.schemaObjectType,
|
||||
targetScripts: [],
|
||||
dataSchemaProvider: '',
|
||||
packageFilePath: '',
|
||||
connectionName: 'My Connection Name'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user