Skip to content

Commit

Permalink
Merge branch 'v2.x/staging' into user/muzikovam/workflowsCheck-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkAckert authored Nov 27, 2024
2 parents 3d578c5 + 311756f commit cee2ee0
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 32 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ All notable changes to the Zowe Installer will be documented in this file.
<!--Add the PR or issue number to the entry if available.-->

## `2.18.1`
- Bugfix: When `--log-dir` parameter for `zwe` command is a file, there might be an error "InternalError: stack overflow". [#40nn](https://github.com/zowe/zowe-install-packaging/pull/40nn)
- Bugfix: When logging `zwe` command, sometimes the log has wrong file tag and the log is unreadable. [#4068](https://github.com/zowe/zowe-install-packaging/pull/4068)
- Bugfix: When `--log-dir` parameter for `zwe` command is a file, there might be an error "InternalError: stack overflow". [#4063](https://github.com/zowe/zowe-install-packaging/pull/4063)
- Bugfix: Error message `ZWEL0141E` did not print user ID. [#3971](https://github.com/zowe/zowe-install-packaging/pull/3971)

## `2.17.0`
Expand Down
33 changes: 9 additions & 24 deletions bin/libs/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,36 +128,21 @@ export function date(...args: string[]): string|undefined {


let logExists = false;
let logFile:std.File|null = null;

function writeLog(message: string): boolean {
const filename = std.getenv('ZWE_PRIVATE_LOG_FILE');
if (!filename) {
return false;
}
logExists = fs.fileExists(filename);
if (!logExists) {
const filename = std.getenv('ZWE_PRIVATE_LOG_FILE');
if (filename) {
fs.createFile(filename, 0o640, message);
logExists = fs.fileExists(filename);
if (!logExists) {
fs.createFile(filename, 0o640, message);
logExists = fs.fileExists(filename);
}
if (logExists) {
let errObj = {errno:undefined};
logFile = std.open(filename, 'w', errObj);
if (errObj.errno) {
printError(`Error opening file ${filename}, errno=${errObj.errno}`);
logFile=null;
logExists=false;
return false;
}
}
}
}
if (logFile===undefined || logFile===null) {
return false;
} else {
//TODO this does utf8. should we flip it to 1047 on zos?
logFile.puts(message);
return true;
xplatform.appendFileUTF8(filename, xplatform.AUTO_DETECT, message);
return true;
}
return logExists;
}


Expand Down
1 change: 1 addition & 0 deletions build/zwe/types/@qjstypes/xplatform.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function stringFromBytes(data:ArrayBuffer, offset:number, length:number,
*/
export function loadFileUTF8(path:string, sourceCCSID:number):string;
export function storeFileUTF8(path:string, targetCCSID:number, content:string):number;
export function appendFileUTF8(path: string, targetCCSID:number, content:string):number;

export var AUTO_DETECT:number;
export var NO_CONVERT:number;
2 changes: 1 addition & 1 deletion tests/sanity/test/e2e/test-07-iframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe.skip(`test ${APP_TO_TEST}`, function() {
// load MVD login page
await loginMVD(
driver,
`https://${process.env.ZOWE_EXTERNAL_HOST}:${process.env.ZOWE_ZLUX_HTTPS_PORT}/`,
`https://${process.env.ZOWE_EXTERNAL_HOST}:${process.env.ZOWE_API_MEDIATION_GATEWAY_HTTP_PORT}/zlux/ui/v1/ZLUX/plugins/org.zowe.zlux.bootstrap/web/`,
process.env.SSH_USER,
process.env.SSH_PASSWD
);
Expand Down
2 changes: 1 addition & 1 deletion tests/sanity/test/e2e/test-08-subsys.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe.skip(`test ${APP_TO_TEST}`, function() {
// load MVD login page
await loginMVD(
driver,
`https://${process.env.ZOWE_EXTERNAL_HOST}:${process.env.ZOWE_ZLUX_HTTPS_PORT}/`,
`https://${process.env.ZOWE_EXTERNAL_HOST}:${process.env.ZOWE_API_MEDIATION_GATEWAY_HTTP_PORT}/zlux/ui/v1/ZLUX/plugins/org.zowe.zlux.bootstrap/web/`,
process.env.SSH_USER,
process.env.SSH_PASSWD
);
Expand Down
4 changes: 3 additions & 1 deletion tests/sanity/test/e2e/test-10-api-catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe(`test ${APP_TO_TEST}`, function() {
// load MVD login page
await loginMVD(
driver,
`https://${process.env.ZOWE_EXTERNAL_HOST}:${process.env.ZOWE_ZLUX_HTTPS_PORT}/`,
`https://${process.env.ZOWE_EXTERNAL_HOST}:${process.env.ZOWE_API_MEDIATION_GATEWAY_HTTP_PORT}/zlux/ui/v1/ZLUX/plugins/org.zowe.zlux.bootstrap/web/`,
process.env.SSH_USER,
process.env.SSH_PASSWD
);
Expand Down Expand Up @@ -79,6 +79,8 @@ describe(`test ${APP_TO_TEST}`, function() {
try {
const searchBox = await waitUntilElement(driver, '.search-bar');
expect(searchBox).to.be.an('object');
await saveScreenshotWithIframeAppContext(this, driver, testName, 'login-pre-success', APP_TO_TEST, MVD_IFRAME_APP_CONTENT);

} catch (e) {
// try to save screenshot for debug purpose
await saveScreenshotWithIframeAppContext(this, driver, testName, 'login-failed', APP_TO_TEST, MVD_IFRAME_APP_CONTENT);
Expand Down
2 changes: 1 addition & 1 deletion tests/sanity/test/e2e/test-11-workflows.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe.skip(`test ${APP_TO_TEST}`, function() {
// load MVD login page
await loginMVD(
driver,
`https://${process.env.ZOWE_EXTERNAL_HOST}:${process.env.ZOWE_ZLUX_HTTPS_PORT}/`,
`https://${process.env.ZOWE_EXTERNAL_HOST}:${process.env.ZOWE_API_MEDIATION_GATEWAY_HTTP_PORT}/zlux/ui/v1/ZLUX/plugins/org.zowe.zlux.bootstrap/web/`,
process.env.SSH_USER,
process.env.SSH_PASSWD
);
Expand Down
2 changes: 1 addition & 1 deletion tests/sanity/test/e2e/test-12-angular-sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe.skip(`test ${APP_TO_TEST}`, function() {
// load MVD login page
await loginMVD(
driver,
`https://${process.env.ZOWE_EXTERNAL_HOST}:${process.env.ZOWE_ZLUX_HTTPS_PORT}/`,
`https://${process.env.ZOWE_EXTERNAL_HOST}:${process.env.ZOWE_API_MEDIATION_GATEWAY_HTTP_PORT}/zlux/ui/v1/ZLUX/plugins/org.zowe.zlux.bootstrap/web/`,
process.env.SSH_USER,
process.env.SSH_PASSWD
);
Expand Down
2 changes: 1 addition & 1 deletion tests/sanity/test/e2e/test-13-react-sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe.skip(`test ${APP_TO_TEST}`, function() {
// load MVD login page
await loginMVD(
driver,
`https://${process.env.ZOWE_EXTERNAL_HOST}:${process.env.ZOWE_ZLUX_HTTPS_PORT}/`,
`https://${process.env.ZOWE_EXTERNAL_HOST}:${process.env.ZOWE_API_MEDIATION_GATEWAY_HTTP_PORT}/zlux/ui/v1/ZLUX/plugins/org.zowe.zlux.bootstrap/web/`,
process.env.SSH_USER,
process.env.SSH_PASSWD
);
Expand Down
2 changes: 1 addition & 1 deletion tests/sanity/test/e2e/test-14-ip-explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe(`test ${APP_TO_TEST}`, function() {
// load MVD login page
await loginMVD(
driver,
`https://${process.env.ZOWE_EXTERNAL_HOST}:${process.env.ZOWE_ZLUX_HTTPS_PORT}/`,
`https://${process.env.ZOWE_EXTERNAL_HOST}:${process.env.ZOWE_API_MEDIATION_GATEWAY_HTTP_PORT}/zlux/ui/v1/ZLUX/plugins/org.zowe.zlux.bootstrap/web/`,
process.env.SSH_USER,
process.env.SSH_PASSWD
);
Expand Down

0 comments on commit cee2ee0

Please sign in to comment.