Skip to content

Commit

Permalink
class name fix, matrix update
Browse files Browse the repository at this point in the history
Signed-off-by: MarkAckert <[email protected]>
  • Loading branch information
MarkAckert committed May 31, 2024
1 parent e2d242f commit 55c9f1e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
8 changes: 6 additions & 2 deletions .github/scripts/cicd_test/make_matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@

case $install_test_choice in

"ZWE CI Build") ;;
"ZWE Full Tests") ;;
"ZWE CI Build")
test_file="dummy_not_used"
;;
"ZWE Full Tests")
test_file="dummy_not_used"
;;
"Convenience Pax")
test_file="$CONVENIENCE_PAX_TESTFILE"
;;
Expand Down
4 changes: 2 additions & 2 deletions tests/zwe-remote-integration/src/globalSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ import {
ZOWE_YAML_OVERRIDES,
} from './config/TestConfig';
import * as fs from 'fs-extra';
import { getZosmfSession } from './zos/zowe';
import { getSession } from './zos/ZosmfSession';
import * as yaml from 'yaml';
import ZoweYamlType from './config/ZoweYamlType';
import { JfrogClient } from 'jfrog-client-js';
import { processManifestVersion } from './utils';
import { execSync } from 'child_process';

const zosmfSession = getZosmfSession();
const zosmfSession = getSession();

function setupBaseYaml() {
console.log(`Using example-zowe.yaml as base for future zowe.yaml modifications...`);
Expand Down
4 changes: 2 additions & 2 deletions tests/zwe-remote-integration/src/globalTeardown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import { REMOTE_TEARDOWN, LINGERING_REMOTE_FILES_FILE, TEST_JOBS_RUN_FILE } from './config/TestConfig';
import * as fs from 'fs-extra';
import * as jobs from '@zowe/zos-jobs-for-zowe-sdk';
import { getZosmfSession } from './zos/zowe';
import { getSession } from './zos/ZosmfSession';
import { TestFileActions, TestFile } from './zos/TestFileActions';
module.exports = async () => {
if (!REMOTE_TEARDOWN) {
Expand Down Expand Up @@ -48,7 +48,7 @@ module.exports = async () => {
const jobName = jobPieces[0];
const jobId = jobPieces[1];
console.log('Purging ' + job);
await jobs.DeleteJobs.deleteJob(getZosmfSession(), jobName, jobId);
await jobs.DeleteJobs.deleteJob(getSession(), jobName, jobId);
}
}

Expand Down
6 changes: 3 additions & 3 deletions tests/zwe-remote-integration/src/zos/RemoteTestRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

import { Session } from '@zowe/imperative';
import { getZosmfSession } from './zowe';
import { getSession } from './ZosmfSession';
import * as uss from './Uss';
import ZoweYamlType from '../config/ZoweYamlType';
import { REMOTE_SYSTEM_INFO, TEST_JOBS_RUN_FILE, TEST_OUTPUT_DIR } from '../config/TestConfig';
Expand All @@ -25,7 +25,7 @@ export class RemoteTestRunner {
private cleanFns: ((stdout: string) => string)[] = [];

constructor(testGroup: string) {
this.session = getZosmfSession();
this.session = getSession();
this.yamlOutputTemplate = `${TEST_OUTPUT_DIR}/${testGroup}/{{ testInstance }}/yaml`;
this.spoolOutputTemplate = `${TEST_OUTPUT_DIR}/${testGroup}//{{ testInstance }}/spool`;
}
Expand All @@ -46,7 +46,7 @@ export class RemoteTestRunner {
const spoolOutputDir = this.spoolOutputTemplate.replace('{{ testInstance }}', testName);
fs.mkdirpSync(spoolOutputDir);
for (const job of this.trackedJobs) {
await jobs.DownloadJobs.downloadAllSpoolContentCommon(getZosmfSession(), {
await jobs.DownloadJobs.downloadAllSpoolContentCommon(getSession(), {
...job,
outDir: spoolOutputDir,
extension: '.txt', // arbitrarily chosen to keep things readable...
Expand Down
4 changes: 2 additions & 2 deletions tests/zwe-remote-integration/src/zos/TestFileActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
*/

import * as fs from 'fs-extra';
import { getZosmfSession } from './zowe';
import { getSession } from './ZosmfSession';
import * as files from '@zowe/zos-files-for-zowe-sdk';
import { LINGERING_REMOTE_FILES_FILE } from '../config/TestConfig';
export class TestFileActions {
private static readonly session = getZosmfSession();
private static readonly session = getSession();

constructor() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import { ConnectionPropsForSessCfg, Session } from '@zowe/imperative';
import { REMOTE_CONNECTION_CFG } from '../config/TestConfig';

export function getZosmfSession(): Session {
export function getSession(): Session {
const sessCfg: unknown = {
hostname: REMOTE_CONNECTION_CFG.host,
port: REMOTE_CONNECTION_CFG.zosmf_port,
Expand Down

0 comments on commit 55c9f1e

Please sign in to comment.