@@ -304,7 +304,7 @@ describe("BundlePusher01", () => {
304
304
expect ( sshSpy ) . toHaveBeenCalledTimes ( 1 ) ;
305
305
} ) ;
306
306
it ( "should implement --cics-* overrides" , async ( ) => {
307
- cicsProfile = { host : "wibble" , port : 443 , user : "user" , password : "thisIsntReal" ,
307
+ cicsProfile = { host : "wibble" , port : 1490 , user : "user" , password : "thisIsntReal" ,
308
308
rejectUnauthorized : true , protocol : "http" } ;
309
309
const parms = getCommonParmsForPushTests ( ) ;
310
310
parms . arguments . ch = "overrideHost" ;
@@ -336,19 +336,19 @@ describe("BundlePusher01", () => {
336
336
expect ( consoleText ) . toContain ( "PROTOCOL: https" ) ;
337
337
} ) ;
338
338
it ( "should complain if cics configured and cics-host notset" , async ( ) => {
339
- cicsProfile = { user : "user" , port : 443 , password : "thisIsntReal" } ;
339
+ cicsProfile = { user : "user" , port : 1490 , password : "thisIsntReal" } ;
340
340
341
341
await runPushTestWithError ( "__tests__/__resources__/ExampleBundle01" , false ,
342
342
"Partial cics plug-in configuration encountered, --cics-host is not set." ) ;
343
343
} ) ;
344
344
it ( "should complain if cics configured and cics-user notset" , async ( ) => {
345
- cicsProfile = { host : "wibble" , port : 443 , password : "thisIsntReal" } ;
345
+ cicsProfile = { host : "wibble" , port : 1490 , password : "thisIsntReal" } ;
346
346
347
347
await runPushTestWithError ( "__tests__/__resources__/ExampleBundle01" , false ,
348
348
"Partial cics plug-in configuration encountered, --cics-user is not set." ) ;
349
349
} ) ;
350
350
it ( "should complain if cics configured and cics-password notset" , async ( ) => {
351
- cicsProfile = { host : "wibble" , port : 443 , user : "user" } ;
351
+ cicsProfile = { host : "wibble" , port : 1490 , user : "user" } ;
352
352
353
353
await runPushTestWithError ( "__tests__/__resources__/ExampleBundle01" , false ,
354
354
"Partial cics plug-in configuration encountered, --cics-password is not set." ) ;
@@ -371,7 +371,7 @@ describe("BundlePusher01", () => {
371
371
expect ( cmciSpy ) . toHaveBeenCalledTimes ( 1 ) ;
372
372
expect ( consoleText ) . toContain ( "PROTOCOL: http\n" ) ;
373
373
expect ( consoleText ) . toContain ( "REJECT: true" ) ;
374
- expect ( consoleText ) . toContain ( "PORT: 443 " ) ;
374
+ expect ( consoleText ) . toContain ( "PORT: 1490 " ) ;
375
375
} ) ;
376
376
it ( "should complain with mismatching zOSMF and SSH profile host names" , async ( ) => {
377
377
const parms = getCommonParmsForPushTests ( ) ;
@@ -392,14 +392,14 @@ describe("BundlePusher01", () => {
392
392
expect ( consoleText ) . not . toContain ( "WARNING: --ssh-host" ) ;
393
393
} ) ;
394
394
it ( "should complain with mismatching zOSMF and CICS profile host names" , async ( ) => {
395
- cicsProfile = { host : "different" , port : 443 , user : "user" , password : "thisIsntReal" } ;
395
+ cicsProfile = { host : "different" , port : 1490 , user : "user" , password : "thisIsntReal" } ;
396
396
397
397
await runPushTest ( "__tests__/__resources__/ExampleBundle01" , true ,
398
398
"PUSH operation completed" ) ;
399
399
expect ( consoleText ) . toContain ( "WARNING: --cics-host value 'different' does not match --zosmf-host value 'wibble'." ) ;
400
400
} ) ;
401
401
it ( "should not complain with matching zOSMF and CICS profile host names" , async ( ) => {
402
- cicsProfile = { host : "wibble" , port : 443 , user : "user" , password : "thisIsntReal" } ;
402
+ cicsProfile = { host : "wibble" , port : 1490 , user : "user" , password : "thisIsntReal" } ;
403
403
404
404
await runPushTest ( "__tests__/__resources__/ExampleBundle01" , true ,
405
405
"PUSH operation completed" ) ;
@@ -433,7 +433,7 @@ describe("BundlePusher01", () => {
433
433
expect ( consoleText ) . not . toContain ( "WARNING: --ssh-user" ) ;
434
434
} ) ;
435
435
it ( "should complain with mismatching zOSMF and CICS profile user names" , async ( ) => {
436
- cicsProfile = { host : "wibble" , port : 443 , user : "joe" , password : "fakePassword" } ;
436
+ cicsProfile = { host : "wibble" , port : 1490 , user : "joe" , password : "fakePassword" } ;
437
437
438
438
await runPushTest ( "__tests__/__resources__/ExampleBundle01" , true ,
439
439
"PUSH operation completed" ) ;
@@ -460,7 +460,7 @@ describe("BundlePusher01", () => {
460
460
expect ( consoleText ) . not . toContain ( "fakeSshKey" ) ;
461
461
} ) ;
462
462
it ( "should complain with mismatching zOSMF and cics profile passwords" , async ( ) => {
463
- cicsProfile = { host : "wibble" , port : 443 , user : "user" , password : "fakePassword2" } ;
463
+ cicsProfile = { host : "wibble" , port : 1490 , user : "user" , password : "fakePassword2" } ;
464
464
465
465
await runPushTestWithError ( "__tests__/__resources__/ExampleBundle01" , false ,
466
466
"Different passwords are specified for the same user ID in the zosmf and cics configurations." ) ;
@@ -1210,7 +1210,7 @@ describe("BundlePusher01", () => {
1210
1210
expect ( cmciSpy ) . toHaveBeenCalledTimes ( 0 ) ;
1211
1211
} ) ;
1212
1212
it ( "should cope with a NODEJSAPP in the bundle with a CICS profile specified" , async ( ) => {
1213
- cicsProfile = { host : "wibble" , port : 443 , user : "user" , password : "thisIsntReal" } ;
1213
+ cicsProfile = { host : "wibble" , port : 1490 , user : "user" , password : "thisIsntReal" } ;
1214
1214
submitSpy = jest . spyOn ( SubmitJobs , "submitJclString" ) . mockImplementation ( ( ) =>
1215
1215
[ { ddName : "SYSTSPRT" , stepName : "DFHDPLOY" , data : "DFHRL2012I http://www.ibm.com/xmlns/prod/cics/bundle/NODEJSAPP" } ] ) ;
1216
1216
@@ -1229,7 +1229,7 @@ describe("BundlePusher01", () => {
1229
1229
expect ( cmciSpy ) . toHaveBeenCalledTimes ( 1 ) ;
1230
1230
} ) ;
1231
1231
it ( "should query scope even with no NODEJSAPPs" , async ( ) => {
1232
- cicsProfile = { host : "wibble" , port : 443 , user : "user" , password : "thisIsntReal" } ;
1232
+ cicsProfile = { host : "wibble" , port : 1490 , user : "user" , password : "thisIsntReal" } ;
1233
1233
readSpy = jest . spyOn ( fs , "readFileSync" ) . mockImplementation ( ( data : string ) => {
1234
1234
if ( data . indexOf ( "cics.xml" ) > - 1 ) {
1235
1235
return "<manifest xmlns=\"http://www.ibm.com/xmlns/prod/cics/bundle\">" +
@@ -1271,7 +1271,7 @@ describe("BundlePusher01", () => {
1271
1271
expect ( cmciSpy ) . toHaveBeenCalledTimes ( 1 ) ;
1272
1272
} ) ;
1273
1273
it ( "should cope with a NODEJSAPP in the bundle with a CICS profile specified and --verbose" , async ( ) => {
1274
- cicsProfile = { host : "wibble" , port : 443 , user : "user" , password : "thisIsntReal" } ;
1274
+ cicsProfile = { host : "wibble" , port : 1490 , user : "user" , password : "thisIsntReal" } ;
1275
1275
submitSpy = jest . spyOn ( SubmitJobs , "submitJclString" ) . mockImplementation ( ( ) =>
1276
1276
[ { ddName : "SYSTSPRT" , stepName : "DFHDPLOY" , data : "DFHRL2012I http://www.ibm.com/xmlns/prod/cics/bundle/NODEJSAPP" } ] ) ;
1277
1277
const parms = getCommonParmsForPushTests ( ) ;
@@ -1300,7 +1300,7 @@ describe("BundlePusher01", () => {
1300
1300
expect ( cmciSpy ) . toHaveBeenCalledTimes ( 1 ) ;
1301
1301
} ) ;
1302
1302
it ( "should generate diagnostics even if deploy fails" , async ( ) => {
1303
- cicsProfile = { host : "wibble" , port : 443 , user : "user" , password : "thisIsntReal" } ;
1303
+ cicsProfile = { host : "wibble" , port : 1490 , user : "user" , password : "thisIsntReal" } ;
1304
1304
submitSpy = jest . spyOn ( SubmitJobs , "submitJclString" ) . mockImplementation ( ( ) =>
1305
1305
[ { ddName : "SYSTSPRT" , stepName : "DFHDPLOY" , data : "DFHRL2055I DFHRL2067W" } ] ) ;
1306
1306
readSpy = jest . spyOn ( fs , "readFileSync" ) . mockImplementation ( ( data : string ) => {
@@ -1357,7 +1357,7 @@ describe("BundlePusher01", () => {
1357
1357
expect ( cmciSpy ) . toHaveBeenCalledTimes ( 2 ) ;
1358
1358
} ) ;
1359
1359
it ( "should tolerate a Node.js diagnostics generation failure - region" , async ( ) => {
1360
- cicsProfile = { host : "wibble" , port : 443 , user : "user" , password : "thisIsntReal" } ;
1360
+ cicsProfile = { host : "wibble" , port : 1490 , user : "user" , password : "thisIsntReal" } ;
1361
1361
submitSpy = jest . spyOn ( SubmitJobs , "submitJclString" ) . mockImplementation ( ( ) =>
1362
1362
[ { ddName : "SYSTSPRT" , stepName : "DFHDPLOY" , data : "DFHRL2012I http://www.ibm.com/xmlns/prod/cics/bundle/NODEJSAPP" } ] ) ;
1363
1363
cmciSpy . mockImplementationOnce ( ( ) => { throw new Error ( "Injected CMCI GET error" ) ; } ) ;
@@ -1378,7 +1378,7 @@ describe("BundlePusher01", () => {
1378
1378
expect ( cmciSpy ) . toHaveBeenCalledTimes ( 1 ) ;
1379
1379
} ) ;
1380
1380
it ( "should tolerate a Node.js diagnostics generation failure - nodejsapp" , async ( ) => {
1381
- cicsProfile = { host : "wibble" , port : 443 , user : "user" , password : "thisIsntReal" } ;
1381
+ cicsProfile = { host : "wibble" , port : 1490 , user : "user" , password : "thisIsntReal" } ;
1382
1382
submitSpy = jest . spyOn ( SubmitJobs , "submitJclString" ) . mockImplementation ( ( ) =>
1383
1383
[ { ddName : "SYSTSPRT" , stepName : "DFHDPLOY" , data : "DFHRL2012I" } ] ) ;
1384
1384
readSpy = jest . spyOn ( fs , "readFileSync" ) . mockImplementation ( ( data : string ) => {
@@ -1423,7 +1423,7 @@ describe("BundlePusher01", () => {
1423
1423
expect ( cmciSpy ) . toHaveBeenCalledTimes ( 2 ) ;
1424
1424
} ) ;
1425
1425
it ( "should tolerate a Node.js diagnostics generation failure - nodejsapp empty" , async ( ) => {
1426
- cicsProfile = { host : "wibble" , port : 443 , user : "user" , password : "thisIsntReal" } ;
1426
+ cicsProfile = { host : "wibble" , port : 1490 , user : "user" , password : "thisIsntReal" } ;
1427
1427
submitSpy = jest . spyOn ( SubmitJobs , "submitJclString" ) . mockImplementation ( ( ) =>
1428
1428
[ { ddName : "SYSTSPRT" , stepName : "DFHDPLOY" , data : "DFHRL2012I" } ] ) ;
1429
1429
readSpy = jest . spyOn ( fs , "readFileSync" ) . mockImplementation ( ( data : string ) => {
@@ -1468,7 +1468,7 @@ describe("BundlePusher01", () => {
1468
1468
expect ( cmciSpy ) . toHaveBeenCalledTimes ( 2 ) ;
1469
1469
} ) ;
1470
1470
it ( "should generate Node.js diagnostics for 1 enabled NODEJSAPP" , async ( ) => {
1471
- cicsProfile = { host : "wibble" , port : 443 , user : "user" , password : "thisIsntReal" } ;
1471
+ cicsProfile = { host : "wibble" , port : 1490 , user : "user" , password : "thisIsntReal" } ;
1472
1472
submitSpy = jest . spyOn ( SubmitJobs , "submitJclString" ) . mockImplementation ( ( ) =>
1473
1473
[ { ddName : "SYSTSPRT" , stepName : "DFHDPLOY" , data : "DFHRL2012I" } ] ) ;
1474
1474
readSpy = jest . spyOn ( fs , "readFileSync" ) . mockImplementation ( ( data : string ) => {
@@ -1525,7 +1525,7 @@ describe("BundlePusher01", () => {
1525
1525
expect ( cmciSpy ) . toHaveBeenCalledTimes ( 2 ) ;
1526
1526
} ) ;
1527
1527
it ( "should generate Node.js diagnostics for 1 disabled NODEJSAPP" , async ( ) => {
1528
- cicsProfile = { host : "wibble" , port : 443 , user : "user" , password : "thisIsntReal" } ;
1528
+ cicsProfile = { host : "wibble" , port : 1490 , user : "user" , password : "thisIsntReal" } ;
1529
1529
submitSpy = jest . spyOn ( SubmitJobs , "submitJclString" ) . mockImplementation ( ( ) =>
1530
1530
[ { ddName : "SYSTSPRT" , stepName : "DFHDPLOY" , data : "DFHRL2012I" } ] ) ;
1531
1531
readSpy = jest . spyOn ( fs , "readFileSync" ) . mockImplementation ( ( data : string ) => {
@@ -1584,7 +1584,7 @@ describe("BundlePusher01", () => {
1584
1584
it ( "should generate Node.js diagnostics for 2 NODEJSAPPs" , async ( ) => {
1585
1585
submitSpy = jest . spyOn ( SubmitJobs , "submitJclString" ) . mockImplementation ( ( ) =>
1586
1586
[ { ddName : "SYSTSPRT" , stepName : "DFHDPLOY" , data : "DFHRL2012I" } ] ) ;
1587
- cicsProfile = { host : "wibble" , port : 443 , user : "user" , password : "thisIsntReal" } ;
1587
+ cicsProfile = { host : "wibble" , port : 1490 , user : "user" , password : "thisIsntReal" } ;
1588
1588
readSpy = jest . spyOn ( fs , "readFileSync" ) . mockImplementation ( ( data : string ) => {
1589
1589
if ( data . indexOf ( "cics.xml" ) > - 1 ) {
1590
1590
return "<manifest xmlns=\"http://www.ibm.com/xmlns/prod/cics/bundle\">" +
0 commit comments