Skip to content

Commit 1deeac9

Browse files
committed
chore: attempt to fix e2e tests
Signed-off-by: Ivo Yankov <[email protected]>
1 parent b2e9a34 commit 1deeac9

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Diff for: resources/extract-platform.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ls -al | tee -a ${LOG_FILE}
4545
#jar xvf "${BUILD_ZIP_FILE}" | tee -a ${LOG_FILE}
4646

4747
# Fix for M4 chips being unable to execute the jar command
48-
dnf install zip unzip -y | tee -a ${LOG_FILE}
48+
dnf install unzip -y | tee -a ${LOG_FILE}
4949
unzip -o "${BUILD_ZIP_FILE}" -d "${HAPI_DIR}" | tee -a ${LOG_FILE}
5050
[[ $? -ne 0 ]] && echo "Failure occurred during decompress" && exit 1
5151
echo "................................end: extract-platform.sh" | tee -a ${LOG_FILE}

Diff for: resources/support-zip.sh

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ AddToFileList ${KEYS_DIR}
5050
AddToFileList ${UPGRADE_DIR}
5151
echo "creating zip file" | tee -a ${LOG_FILE}
5252
#jar cvfM "${ZIP_FULLPATH}" "@${FILE_LIST}"
53+
dnf install zip -y | tee -a ${LOG_FILE}
5354
zip "${ZIP_FULLPATH}" -@ < "${FILE_LIST}" | tee -a ${LOG_FILE}
5455
echo "...end support-zip.sh" | tee -a ${LOG_FILE}
5556
#jar -u -v --file=${ZIP_FULLPATH} ${OUTPUT_DIR}/support-zip.log

Diff for: test/e2e/commands/cluster.test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import * as fs from 'node:fs';
1616
import * as yaml from 'yaml';
1717
import {PathEx} from '../../../src/business/utils/path-ex.js';
1818
import {SoloWinstonLogger} from '../../../src/core/logging/solo-winston-logger.js';
19+
import {resetForTest} from '../../test-container.js';
1920

2021
describe('ClusterCommand', () => {
2122
// mock showUser and showJSON to silent logging during tests
@@ -66,6 +67,7 @@ describe('ClusterCommand', () => {
6667
});
6768

6869
beforeEach(() => {
70+
resetForTest(namespace.name);
6971
configManager.reset();
7072
});
7173

0 commit comments

Comments
 (0)