SQL Proj - Added an option to deploy to docker to select the base image (#17067)

* Added an option to deploy to docker to select the base image
This commit is contained in:
Leila Lali
2021-09-14 13:49:57 -07:00
committed by GitHub
parent 95e82d53e6
commit 423cf8d3d5
5 changed files with 42 additions and 11 deletions

View File

@@ -71,7 +71,9 @@ describe('deploy service', function (): void {
password: 'PLACEHOLDER',
port: 1433,
serverName: 'localhost',
userName: 'sa'
userName: 'sa',
dockerBaseImage: 'image',
connectionRetryTimeout: 1
}
};
const projFilePath = await testUtils.createTestSqlProjFile(baselines.newProjectFileBaseline);
@@ -93,7 +95,9 @@ describe('deploy service', function (): void {
password: 'PLACEHOLDER',
port: 1433,
serverName: 'localhost',
userName: 'sa'
userName: 'sa',
dockerBaseImage: 'image',
connectionRetryTimeout: 1
};
const deployService = new DeployService(testContext.outputChannel);
@@ -103,7 +107,7 @@ describe('deploy service', function (): void {
sandbox.stub(azdata.connection, 'getUriForConnection').returns(Promise.resolve('connection'));
sandbox.stub(azdata.tasks, 'startBackgroundOperation').callThrough();
sandbox.stub(childProcess, 'exec').yields(undefined, 'id');
let connection = await deployService.getConnection(localDbSettings, false, 'master', 2);
let connection = await deployService.getConnection(localDbSettings, false, 'master');
should(connection).equals('connection');
});
@@ -138,7 +142,8 @@ describe('deploy service', function (): void {
password: 'PLACEHOLDER',
port: 1433,
serverName: 'localhost',
userName: 'sa'
userName: 'sa',
dockerBaseImage: 'image'
}
};