@@ -19,15 +19,15 @@ describe('AzureRmWebAppDeployment Suite', function() {
1919 tl . cp ( path . join ( __dirname , 'node_modules' ) , path . join ( __dirname , '..' , 'node_modules/azure-pipelines-tasks-azure-arm-rest/Tests' ) , '-rf' , true ) ;
2020 }
2121
22- tl . cp ( path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1XmlVarSub' , 'Web.config' ) , path . join ( __dirname , ".." , "node_modules ", "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'Web_test.config' ) , '-f' , false ) ;
23- tl . cp ( path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1XmlVarSub' , 'Web.Debug.config' ) , path . join ( __dirname , ".." , "node_modules ", "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'Web_test.Debug.config' ) , '-f' , false ) ;
24- tl . cp ( path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1XmlVarSub' , 'parameters.xml' ) , path . join ( __dirname , ".." , "node_modules ", "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'parameters_test.xml' ) , '-f' , false ) ;
25- tl . cp ( path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1XdtTransform' , 'Web.config' ) , path . join ( __dirname , ".." , "node_modules" , "webdeployment-common" , "Tests" , 'L1XdtTransform' , 'Web_test.config' ) , '-f' , false ) ;
22+ tl . cp ( path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'Web.config' ) , path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'Web_test.config' ) , '-f' , false ) ;
23+ tl . cp ( path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'Web.Debug.config' ) , path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'Web_test.Debug.config' ) , '-f' , false ) ;
24+ tl . cp ( path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'parameters.xml' ) , path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'parameters_test.xml' ) , '-f' , false ) ;
25+ tl . cp ( path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XdtTransform' , 'Web.config' ) , path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XdtTransform' , 'Web_test.config' ) , '-f' , false ) ;
2626 done ( ) ;
2727 } ) ;
2828 after ( function ( ) {
2929 try {
30- tl . rmRF ( path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1XmlVarSub' , 'parameters_test.xml' ) ) ;
30+ tl . rmRF ( path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'parameters_test.xml' ) ) ;
3131 }
3232 catch ( error ) {
3333 tl . debug ( error ) ;
@@ -42,12 +42,12 @@ describe('AzureRmWebAppDeployment Suite', function() {
4242 it ( 'Runs successfully with XML Transformation (L1)' , ( done :MochaDone ) => {
4343 this . timeout ( parseInt ( process . env . TASK_TEST_TIMEOUT ) || 20000 ) ;
4444
45- let tp = path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , "L1XdtTransform.js" ) ;
45+ let tp = path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , "L1XdtTransform.js" ) ;
4646 let tr : ttm . MockTestRunner = new ttm . MockTestRunner ( tp ) ;
4747 tr . run ( ) ;
4848
49- var resultFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1XdtTransform' , 'Web_test.config' ) ) ) ;
50- var expectFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1XdtTransform' , 'Web_Expected.config' ) ) ) ;
49+ var resultFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XdtTransform' , 'Web_test.config' ) ) ) ;
50+ var expectFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XdtTransform' , 'Web_Expected.config' ) ) ) ;
5151 assert ( ltx . equal ( resultFile , expectFile ) , 'Should Transform attributes on Web.config' ) ;
5252 done ( ) ;
5353 } ) ;
@@ -57,25 +57,25 @@ describe('AzureRmWebAppDeployment Suite', function() {
5757 }
5858
5959 it ( 'Runs successfully with XML variable substitution' , ( done :MochaDone ) => {
60- let tp = path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1XmlVarSub.js' ) ;
60+ let tp = path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XmlVarSub.js' ) ;
6161 let tr : ttm . MockTestRunner = new ttm . MockTestRunner ( tp ) ;
6262 tr . run ( ) ;
6363
64- var resultFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1XmlVarSub' , 'Web_test.config' ) ) ) ;
65- var expectFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1XmlVarSub' , 'Web_Expected.config' ) ) ) ;
64+ var resultFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'Web_test.config' ) ) ) ;
65+ var expectFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'Web_Expected.config' ) ) ) ;
6666 assert ( ltx . equal ( resultFile , expectFile ) , 'Should have substituted variables in Web.config file' ) ;
67- var resultFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1XmlVarSub' , 'Web_test.Debug.config' ) ) ) ;
68- var expectFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1XmlVarSub' , 'Web_Expected.Debug.config' ) ) ) ;
67+ var resultFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'Web_test.Debug.config' ) ) ) ;
68+ var expectFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'Web_Expected.Debug.config' ) ) ) ;
6969 assert ( ltx . equal ( resultFile , expectFile ) , 'Should have substituted variables in Web.Debug.config file' ) ;
70- var resultParamFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1XmlVarSub' , 'parameters_test.xml' ) ) ) ;
71- var expectParamFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1XmlVarSub' , 'parameters_Expected.xml' ) ) ) ;
70+ var resultParamFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'parameters_test.xml' ) ) ) ;
71+ var expectParamFile = ltx . parse ( fs . readFileSync ( path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1XmlVarSub' , 'parameters_Expected.xml' ) ) ) ;
7272 assert ( ltx . equal ( resultParamFile , expectParamFile ) , 'Should have substituted variables in parameters.xml file' ) ;
7373
7474 done ( ) ;
7575 } ) ;
7676
7777 it ( 'Runs successfully with JSON variable substitution' , ( done :MochaDone ) => {
78- let tp = path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1JsonVarSub.js' ) ;
78+ let tp = path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1JsonVarSub.js' ) ;
7979 let tr : ttm . MockTestRunner = new ttm . MockTestRunner ( tp ) ;
8080 tr . run ( ) ;
8181
@@ -92,7 +92,7 @@ describe('AzureRmWebAppDeployment Suite', function() {
9292 } ) ;
9393
9494 it ( 'Validate File Encoding' , ( done :MochaDone ) => {
95- let tp = path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L1ValidateFileEncoding.js' ) ;
95+ let tp = path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L1ValidateFileEncoding.js' ) ;
9696 let tr : ttm . MockTestRunner = new ttm . MockTestRunner ( tp ) ;
9797 tr . run ( ) ;
9898
@@ -114,7 +114,7 @@ describe('AzureRmWebAppDeployment Suite', function() {
114114 } ) ;
115115
116116 it ( 'Validate webdeployment-common.utility.copyDirectory()' , ( done :MochaDone ) => {
117- let tp = path . join ( __dirname , ".." , "node_modules" , " webdeployment-common", "Tests" , 'L0CopyDirectory.js' ) ;
117+ let tp = path . join ( __dirname , ".." , "webdeployment-common" , "Tests" , 'L0CopyDirectory.js' ) ;
118118 let tr : ttm . MockTestRunner = new ttm . MockTestRunner ( tp ) ;
119119 tr . run ( ) ;
120120
0 commit comments