@@ -64,10 +64,9 @@ suite('NodeJS Express devfile API test', function (): void {
64
64
const containerName : string = YAML . parse ( devfileContent ) . commands [ 0 ] . exec . component ;
65
65
66
66
if ( BASE_TEST_CONSTANTS . IS_CLUSTER_DISCONNECTED ( ) ) {
67
- Logger . info ( 'Test cluster is disconnected. Init Java Truststore...' ) ;
68
- const initJavaTruststoreCommand : string =
69
- 'cp /home/user/init-java-truststore.sh /tmp && chmod +x /tmp/init-java-truststore.sh && /tmp/init-java-truststore.sh' ;
70
- const output : ShellString = containerTerminal . execInContainerCommand ( initJavaTruststoreCommand , containerName ) ;
67
+ Logger . info ( 'Test cluster is disconnected. Init NodeJS Truststore...' ) ;
68
+ const initNodeTruststoreCommand : string = 'npm config set strict-ssl false' ;
69
+ const output : ShellString = containerTerminal . execInContainerCommand ( initNodeTruststoreCommand , containerName ) ;
71
70
expect ( output . code ) . eqls ( 0 ) ;
72
71
}
73
72
@@ -85,7 +84,7 @@ suite('NodeJS Express devfile API test', function (): void {
85
84
expect ( output . code ) . eqls ( 0 ) ;
86
85
87
86
const outputText : string = output . stdout . trim ( ) ;
88
- expect ( outputText ) . contains ( 'Run `npm audit` for details. ' ) ;
87
+ expect ( outputText ) . contains ( 'packages in ' ) ;
89
88
} ) ;
90
89
91
90
test ( 'Check "run the web app" command' , function ( ) : void {
@@ -114,7 +113,7 @@ suite('NodeJS Express devfile API test', function (): void {
114
113
Logger . info ( `workdir from exec section of DevWorkspace file: ${ workdir } ` ) ;
115
114
Logger . info ( `commandLine from exec section of DevWorkspace file: ${ commandLine } ` ) ;
116
115
117
- // Prettier changes next line to `replaceAll("'", "'\"'\"'")` that throws an error from eslint.
116
+ // prettier changes next line to `replaceAll("'", "'\"'\"'")` that throws an error from eslint.
118
117
// prettier-ignore
119
118
let runCommandInBash : string = commandLine . replaceAll ( '\'' , '\'\"\'\"\'' ) ;
120
119
0 commit comments