Skip to content

Commit 2b7f6ca

Browse files
committed
csd/res group optional
1 parent fdd7508 commit 2b7f6ca

File tree

10 files changed

+6762
-14
lines changed

10 files changed

+6762
-14
lines changed

__tests__/api/BundleDeploy/BundleDeployer.test.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ describe("BundleDeployer01", () => {
156156

157157
await runUndeployTest();
158158
});
159+
it("should generate deploy JCL with neither csdgroup nor resgroup", async () => {
160+
161+
let parms: IHandlerParameters;
162+
parms = DEFAULT_PARAMTERS;
163+
setCommonParmsForDeployTests(parms);
164+
await testDeployJCL(parms);
165+
});
159166
it("should generate deploy JCL for csdgroup", async () => {
160167

161168
let parms: IHandlerParameters;
@@ -309,6 +316,13 @@ describe("BundleDeployer01", () => {
309316
});
310317

311318
// ** UNDEPLOY TESTS **
319+
it("should generate undeploy JCL with neither csdgroup nor resgroup", async () => {
320+
321+
let parms: IHandlerParameters;
322+
parms = DEFAULT_PARAMTERS;
323+
setCommonParmsForUndeployTests(parms);
324+
await testUndeployJCL(parms);
325+
});
312326
it("should generate undeploy JCL for csdgroup", async () => {
313327

314328
let parms: IHandlerParameters;

__tests__/api/BundleDeploy/__snapshots__/BundleDeployer.test.ts.snap

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,24 @@ DEPLOY BUNDLE(12345678)
184184
"
185185
`;
186186

187+
exports[`BundleDeployer01 should generate deploy JCL with neither csdgroup nor resgroup 1`] = `
188+
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
189+
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
190+
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
191+
// DD DISP=SHR,DSN=abcde12345abcde12345abcde12345abcde.SEYUAUTH
192+
//SYSTSPRT DD SYSOUT=*
193+
//SYSIN DD *
194+
*
195+
SET CICSPLEX(12345678);
196+
*
197+
DEPLOY BUNDLE(12345678)
198+
BUNDLEDIR(1234567890)
199+
SCOPE(12345678)
200+
STATE(ENABLED)
201+
/*
202+
"
203+
`;
204+
187205
exports[`BundleDeployer01 should generate undeploy JCL for DISABLED 1`] = `
188206
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
189207
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
@@ -330,6 +348,23 @@ UNDEPLOY BUNDLE(12345678)
330348
"
331349
`;
332350

351+
exports[`BundleDeployer01 should generate undeploy JCL with neither csdgroup nor resgroup 1`] = `
352+
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
353+
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
354+
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
355+
// DD DISP=SHR,DSN=abcde12345abcde12345abcde12345abcde.SEYUAUTH
356+
//SYSTSPRT DD SYSOUT=*
357+
//SYSIN DD *
358+
*
359+
SET CICSPLEX(12345678);
360+
*
361+
UNDEPLOY BUNDLE(12345678)
362+
SCOPE(12345678)
363+
STATE(DISCARDED)
364+
/*
365+
"
366+
`;
367+
333368
exports[`BundleDeployer01 should handle failure during submitjobs processing 1`] = `"Failure occurred submitting DFHDPLOY JCL: 'Cannot read property 'hostname' of undefined'. Most recent status update: 'Submitting DFHDPLOY JCL'."`;
334369

335370
exports[`BundleDeployer01 should support long bundledir 1`] = `

__tests__/cli/deploy/bundle/DeployBundle.handler.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ describe("bundle Handler", () => {
194194
it("should complain with empty scope parameter", async () => {
195195
await testScopeError("", "--scope parameter is empty");
196196
});
197-
it("should complain with missing csdgroup/resgroup", async () => {
198-
await testCsdgroupError(undefined, "--scope parameter requires either --csdgroup or --resgroup to be set");
199-
});
200197
it("should complain with invalid type for csdgroup parameter", async () => {
201198

202199
const params = Object.assign({}, ...[DEFAULT_PARAMETERS]);

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ If you have not already done so, start by creating a zosmf profile in Zowe CLI.
115115

116116
`zowe profiles create zosmf-profile --help`
117117

118-
Now create a cics-deploy profile. This profile will identify the target CICS environment for deployment; you will need to know the CICSplex name and Scope, together with the High Level Qualifier (HLQ) for the CICS data sets. You will also have to identify either a target CSD group (typically used for single region configurations) or a BAS resource group (used for multi-region configurations) into which the Bundle will be defined. You may optionally configure a JCL jobcard if your site requires a customised JCL configuration for DFHDPLOY. For further assistance on creating a cics-deploy profile issue the following command:
118+
Now create a cics-deploy profile. This profile will identify the target CICS environment for deployment; you will need to know the CICSplex name and Scope, together with the High Level Qualifier (HLQ) for the CICS data sets. You can optionally identify either a target CSD group (typically used for single region configurations) or a BAS resource group (used for multi-region configurations) into which the Bundle will be defined. You can optionally configure a JCL jobcard if your site requires a customised JCL configuration for DFHDPLOY. For further assistance on creating a cics-deploy profile issue the following command:
119119

120120
`zowe profiles create cics-deploy-profile --help`
121121

0 commit comments

Comments
 (0)