Skip to content

Commit fdd7b76

Browse files
committed
add init trusts for airgap cluster
1 parent f940950 commit fdd7b76

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/e2e/specs/api/NodeJsExpressDevFileAPI.spec.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,9 @@ suite('NodeJS Express devfile API test', function (): void {
6464
const containerName: string = YAML.parse(devfileContent).commands[0].exec.component;
6565

6666
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);
7170
expect(output.code).eqls(0);
7271
}
7372

@@ -85,7 +84,7 @@ suite('NodeJS Express devfile API test', function (): void {
8584
expect(output.code).eqls(0);
8685

8786
const outputText: string = output.stdout.trim();
88-
expect(outputText).contains('Run `npm audit` for details.');
87+
expect(outputText).contains('packages in');
8988
});
9089

9190
test('Check "run the web app" command', function (): void {
@@ -114,7 +113,7 @@ suite('NodeJS Express devfile API test', function (): void {
114113
Logger.info(`workdir from exec section of DevWorkspace file: ${workdir}`);
115114
Logger.info(`commandLine from exec section of DevWorkspace file: ${commandLine}`);
116115

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.
118117
// prettier-ignore
119118
let runCommandInBash: string = commandLine.replaceAll('\'', '\'\"\'\"\'');
120119

0 commit comments

Comments
 (0)