@@ -61,15 +61,131 @@ exports[`cics-deploy generate bundle paramters should customise port in generate
61
61
`;
62
62
63
63
exports[`cics-deploy generate bundle paramters should customise port in generated profile accord to args 3`] = `
64
- " # This is a profile for a CICS NODEJSAPP resource
65
-
66
- # Import the provisioned configuration file for this NODEJSAPP,
67
- # this file must be created before this Bundle can be installed in CICS
68
- INCLUDE =&USSCONFIG;/nodejsapps/cics-nodejs-invoke.included.profile
69
-
70
- # Set the PORT envionment variable, application code should reference this
71
- # value in preference to a hard-coded port number, the value references an
72
- # environment variable that will be configured within the provisioned configuration file.
64
+ " #######################################################################
65
+ # Node.js application profile: basic_nodejsapp.profile #
66
+ # #
67
+ # The Node.js application profile is used to configure how CICS #
68
+ # controls the Node.js runtime, provide Node.js command line options, #
69
+ # and to set environment variables for use by the application. #
70
+ # #
71
+ # Lines starting with # are treated as comments and ignored. #
72
+ # Lines ending with \\\\ are continued on the next line. #
73
+ # #
74
+ # See topic \\"Node.js profile validation and properties\\" #
75
+ # in the Knowledge Center: #
76
+ # http://www.ibm.com/support/knowledgecenter/SSGMCP_5.5.0 #
77
+ # #
78
+ #######################################################################
79
+ #
80
+ # Symbol Substitution
81
+ # -------------------
82
+ #
83
+ # Symbols are replaced with their value when the profile is read by
84
+ # CICS. They are useful to avoid duplicating configuration in the
85
+ # profile. Symbols start with & and end with ; characters. Environment
86
+ # variables defined in the profile may also be used as symbols.
87
+ #
88
+ # The following symbols are provided:
89
+ # &APPLID; => Applid of the CICS region.
90
+ # &BUNDLE; => Name of the BUNDLE resource.
91
+ # &BUNDLEID; => Bundle ID.
92
+ # &CONFIGROOT; => Directory of the .nodejsapp CICS bundle part.
93
+ # &DATE; => Date when the NODEJSAPP resource is enabled
94
+ # (localtime), formatted as Dyymmdd.
95
+ # &NODEJSAPP; => Name of the NODEJSAPP resource.
96
+ # &TIME; => Time when the NODEJSAPP resource is enabled
97
+ # (localtime), formatted as Thhmmss.
98
+ # &USSCONFIG; => Value of the USSCONFIG SIT parameter.
99
+ # &USSHOME; => Value of the USSHOME SIT parameter.
100
+ #
101
+ # Examples:
102
+ # LOG_DIR =&WORK_DIR;/&APPLID;/&BUNDLEID;/&NODEJSAPP;
103
+ # LOG_SUCCESS =&LOG_DIR;/success.txt
104
+ # LOG_FAILURE =&LOG_DIR;/failure.txt
105
+ #
106
+ #**********************************************************************
107
+ #
108
+ # Required parameters
109
+ # -------------------
110
+ #
111
+ # NODE_HOME specifies the location of IBM SDK for Node.js - z/OS.
112
+ #
113
+ # NODE_HOME =/usr/lpp/IBM/cnj/IBM/node-v6.14.4-os390-s390x
114
+ #
115
+ #
116
+ # WORK_DIR specifies the root directory in which CICS will create log
117
+ # files. The default value is /tmp. A value of . means the home
118
+ # directory of the user id running the CICS job.
119
+ #
120
+ # WORK_DIR =.
121
+ #
122
+ #**********************************************************************
123
+ #
124
+ # Including files in the profile
125
+ # ------------------------------
126
+ #
127
+ # %INCLUDE specifies a file to be included in this profile. The file can
128
+ # contain common system-wide configuration that can then be maintained
129
+ # separate to the application configuration. Symbols can be used when
130
+ # specifying the file to be included.
131
+ #
132
+ # Examples:
133
+ # %INCLUDE=/etc/cicsts/prodplex/nodejs/sdk.profile
134
+ # %INCLUDE=&USSCONFIG;/nodejs/sdk.profile
135
+ # %INCLUDE=&CONFIGROOT;/debug.profile
136
+ #
137
+ %INCLUDE=&USSCONFIG;/nodejsapps/general.profile
138
+ #
139
+ #**********************************************************************
140
+ #
141
+ # Optional parameters
142
+ # -------------------
143
+ #
144
+ # NODEJSAPP_DISABLE_TIMEOUT specifies the time in milliseconds that
145
+ # CICS will wait when attempting to disable a NODEJSAPP. If the process
146
+ # has not terminated in this time then CICS will send a SIGKILL signal
147
+ # to force the process to end. The default value is 10000 (10 seconds).
148
+ #
149
+ # Example:
150
+ # NODEJSAPP_DISABLE_TIMEOUT =30000
151
+ #
152
+ #**********************************************************************
153
+ #
154
+ # Command line options
155
+ # --------------------
156
+ #
157
+ # Options beginning with a hyphen will be included on the command line
158
+ # when CICS starts the Node.js runtime. The command line options
159
+ # accepted by Node.js are documented at:
160
+ # https://nodejs.org/dist/latest-v6.x/docs/api/cli.html
161
+ #
162
+ # Example:
163
+ # --trace-sync-io
164
+ #
165
+ #**********************************************************************
166
+ #
167
+ # Unix System Services Environment Variables
168
+ # ------------------------------------------
169
+ #
170
+ # TZ specifies the local time zone in POSIX format in which the Node.js
171
+ # application will run.
172
+ #
173
+ # Example:
174
+ # TZ =CET-1CEST,M3.5.0,M10.5.0
175
+ #
176
+ #**********************************************************************
177
+ #
178
+ # Environment variables
179
+ # ---------------------
180
+ #
181
+ # Environment variables will be set before CICS starts the Node.js
182
+ # runtime. Use environment variables to pass configuration to the
183
+ # Node.js application.
184
+ #
185
+ # Example:
186
+ # PORT =9080
187
+ #
188
+ #**********************************************************************
73
189
PORT =12345
74
190
"
75
191
`;
@@ -125,16 +241,131 @@ exports[`cics-deploy generate bundle should generate a bundle using defaults fro
125
241
`;
126
242
127
243
exports[`cics-deploy generate bundle should generate a bundle using defaults from package.json 3`] = `
128
- " # This is a profile for a CICS NODEJSAPP resource
129
-
130
- # Import the provisioned configuration file for this NODEJSAPP,
131
- # this file must be created before this Bundle can be installed in CICS
132
- INCLUDE =&USSCONFIG;/nodejsapps/cics-nodejs-invoke.included.profile
133
-
134
- # Set the PORT envionment variable, application code should reference this
135
- # value in preference to a hard-coded port number, the value references an
136
- # environment variable that will be configured within the provisioned configuration file.
137
- PORT =&HTTP_PORT;
244
+ " #######################################################################
245
+ # Node.js application profile: basic_nodejsapp.profile #
246
+ # #
247
+ # The Node.js application profile is used to configure how CICS #
248
+ # controls the Node.js runtime, provide Node.js command line options, #
249
+ # and to set environment variables for use by the application. #
250
+ # #
251
+ # Lines starting with # are treated as comments and ignored. #
252
+ # Lines ending with \\\\ are continued on the next line. #
253
+ # #
254
+ # See topic \\"Node.js profile validation and properties\\" #
255
+ # in the Knowledge Center: #
256
+ # http://www.ibm.com/support/knowledgecenter/SSGMCP_5.5.0 #
257
+ # #
258
+ #######################################################################
259
+ #
260
+ # Symbol Substitution
261
+ # -------------------
262
+ #
263
+ # Symbols are replaced with their value when the profile is read by
264
+ # CICS. They are useful to avoid duplicating configuration in the
265
+ # profile. Symbols start with & and end with ; characters. Environment
266
+ # variables defined in the profile may also be used as symbols.
267
+ #
268
+ # The following symbols are provided:
269
+ # &APPLID; => Applid of the CICS region.
270
+ # &BUNDLE; => Name of the BUNDLE resource.
271
+ # &BUNDLEID; => Bundle ID.
272
+ # &CONFIGROOT; => Directory of the .nodejsapp CICS bundle part.
273
+ # &DATE; => Date when the NODEJSAPP resource is enabled
274
+ # (localtime), formatted as Dyymmdd.
275
+ # &NODEJSAPP; => Name of the NODEJSAPP resource.
276
+ # &TIME; => Time when the NODEJSAPP resource is enabled
277
+ # (localtime), formatted as Thhmmss.
278
+ # &USSCONFIG; => Value of the USSCONFIG SIT parameter.
279
+ # &USSHOME; => Value of the USSHOME SIT parameter.
280
+ #
281
+ # Examples:
282
+ # LOG_DIR =&WORK_DIR;/&APPLID;/&BUNDLEID;/&NODEJSAPP;
283
+ # LOG_SUCCESS =&LOG_DIR;/success.txt
284
+ # LOG_FAILURE =&LOG_DIR;/failure.txt
285
+ #
286
+ #**********************************************************************
287
+ #
288
+ # Required parameters
289
+ # -------------------
290
+ #
291
+ # NODE_HOME specifies the location of IBM SDK for Node.js - z/OS.
292
+ #
293
+ # NODE_HOME =/usr/lpp/IBM/cnj/IBM/node-v6.14.4-os390-s390x
294
+ #
295
+ #
296
+ # WORK_DIR specifies the root directory in which CICS will create log
297
+ # files. The default value is /tmp. A value of . means the home
298
+ # directory of the user id running the CICS job.
299
+ #
300
+ # WORK_DIR =.
301
+ #
302
+ #**********************************************************************
303
+ #
304
+ # Including files in the profile
305
+ # ------------------------------
306
+ #
307
+ # %INCLUDE specifies a file to be included in this profile. The file can
308
+ # contain common system-wide configuration that can then be maintained
309
+ # separate to the application configuration. Symbols can be used when
310
+ # specifying the file to be included.
311
+ #
312
+ # Examples:
313
+ # %INCLUDE=/etc/cicsts/prodplex/nodejs/sdk.profile
314
+ # %INCLUDE=&USSCONFIG;/nodejs/sdk.profile
315
+ # %INCLUDE=&CONFIGROOT;/debug.profile
316
+ #
317
+ %INCLUDE=&USSCONFIG;/nodejsapps/general.profile
318
+ #
319
+ #**********************************************************************
320
+ #
321
+ # Optional parameters
322
+ # -------------------
323
+ #
324
+ # NODEJSAPP_DISABLE_TIMEOUT specifies the time in milliseconds that
325
+ # CICS will wait when attempting to disable a NODEJSAPP. If the process
326
+ # has not terminated in this time then CICS will send a SIGKILL signal
327
+ # to force the process to end. The default value is 10000 (10 seconds).
328
+ #
329
+ # Example:
330
+ # NODEJSAPP_DISABLE_TIMEOUT =30000
331
+ #
332
+ #**********************************************************************
333
+ #
334
+ # Command line options
335
+ # --------------------
336
+ #
337
+ # Options beginning with a hyphen will be included on the command line
338
+ # when CICS starts the Node.js runtime. The command line options
339
+ # accepted by Node.js are documented at:
340
+ # https://nodejs.org/dist/latest-v6.x/docs/api/cli.html
341
+ #
342
+ # Example:
343
+ # --trace-sync-io
344
+ #
345
+ #**********************************************************************
346
+ #
347
+ # Unix System Services Environment Variables
348
+ # ------------------------------------------
349
+ #
350
+ # TZ specifies the local time zone in POSIX format in which the Node.js
351
+ # application will run.
352
+ #
353
+ # Example:
354
+ # TZ =CET-1CEST,M3.5.0,M10.5.0
355
+ #
356
+ #**********************************************************************
357
+ #
358
+ # Environment variables
359
+ # ---------------------
360
+ #
361
+ # Environment variables will be set before CICS starts the Node.js
362
+ # runtime. Use environment variables to pass configuration to the
363
+ # Node.js application.
364
+ #
365
+ # Example:
366
+ # PORT =9080
367
+ #
368
+ #**********************************************************************
138
369
"
139
370
`;
140
371
0 commit comments