-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v1.9.0] Collaboration 1246 to add typrun support for zos_job_submit #1283
[v1.9.0] Collaboration 1246 to add typrun support for zos_job_submit #1283
Conversation
Signed-off-by: ddimatos <dimatos@gmail.com>
Signed-off-by: ddimatos <dimatos@gmail.com>
Signed-off-by: ddimatos <dimatos@gmail.com>
Signed-off-by: ddimatos <dimatos@gmail.com>
Signed-off-by: ddimatos <dimatos@gmail.com>
Signed-off-by: ddimatos <dimatos@gmail.com>
This issue addresses #1246 in that a job with TYPRUN=SCAN will no longer be considered a failure by the module, this is done inspecting the DD JESJCL among other things. This response now succeeds where in the past TYRUN=SCAN was considered a job failure and error on completion. This now looks like (note there is no msg as there is no failure):
This issue partially addresses issues
The responses and ret_code were cleaned up such that they are now:
Things to note:
The reason is , to support single JCL with multiple job statements it would need pre-processing from Ansible and at that time the HOLD, JCLHOLD and COPY could be addressed, this is a large change to the modules architecture , for multiple job statements see issue: |
Signed-off-by: ddimatos <dimatos@gmail.com>
Signed-off-by: ddimatos <dimatos@gmail.com>
Signed-off-by: ddimatos <dimatos@gmail.com>
… time Signed-off-by: ddimatos <dimatos@gmail.com>
Signed-off-by: ddimatos <dimatos@gmail.com>
Signed-off-by: ddimatos <dimatos@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for adding comments, for v1.10.0 I would suggest removing the code instead of commenting, we can always review previous versions in SCM
…1283) * Fixes typo in property Signed-off-by: ddimatos <dimatos@gmail.com> * Initial commit for supporting typrun=scan Signed-off-by: ddimatos <dimatos@gmail.com> * Update jobs and zos_job_submit to better support jobs in the input queue Signed-off-by: ddimatos <dimatos@gmail.com> * Update zos_job_submit to remove other typrun scans from regex Signed-off-by: ddimatos <dimatos@gmail.com> * The ret_code msg field should have only had the status in it, not the RC Signed-off-by: ddimatos <dimatos@gmail.com> * Update msg_txt for jobs JCLHOlD, HOLD Signed-off-by: ddimatos <dimatos@gmail.com> * Update test cases with typrun Signed-off-by: ddimatos <dimatos@gmail.com> * Lint updates Signed-off-by: ddimatos <dimatos@gmail.com> * Updates to controll the messages to the ret_code property Signed-off-by: ddimatos <dimatos@gmail.com> * Update wait times as result of the timer fix forced tests to add more time Signed-off-by: ddimatos <dimatos@gmail.com> * Changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> * Changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: ddimatos <dimatos@gmail.com> Conflicts: plugins/module_utils/job.py plugins/modules/zos_job_submit.py tests/functional/modules/test_zos_job_submit_func.py Changes to be committed: new file: changelogs/fragments/1246-bugfix-zos_job_submit-typrun.yml modified: plugins/module_utils/job.py modified: plugins/modules/zos_job_submit.py modified: tests/functional/modules/test_zos_job_submit_func.py
* [v1.9.0] Collaboration 1246 to add typrun support for zos_job_submit (#1283) * Fixes typo in property Signed-off-by: ddimatos <dimatos@gmail.com> * Initial commit for supporting typrun=scan Signed-off-by: ddimatos <dimatos@gmail.com> * Update jobs and zos_job_submit to better support jobs in the input queue Signed-off-by: ddimatos <dimatos@gmail.com> * Update zos_job_submit to remove other typrun scans from regex Signed-off-by: ddimatos <dimatos@gmail.com> * The ret_code msg field should have only had the status in it, not the RC Signed-off-by: ddimatos <dimatos@gmail.com> * Update msg_txt for jobs JCLHOlD, HOLD Signed-off-by: ddimatos <dimatos@gmail.com> * Update test cases with typrun Signed-off-by: ddimatos <dimatos@gmail.com> * Lint updates Signed-off-by: ddimatos <dimatos@gmail.com> * Updates to controll the messages to the ret_code property Signed-off-by: ddimatos <dimatos@gmail.com> * Update wait times as result of the timer fix forced tests to add more time Signed-off-by: ddimatos <dimatos@gmail.com> * Changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> * Changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: ddimatos <dimatos@gmail.com> Conflicts: plugins/module_utils/job.py plugins/modules/zos_job_submit.py tests/functional/modules/test_zos_job_submit_func.py Changes to be committed: new file: changelogs/fragments/1246-bugfix-zos_job_submit-typrun.yml modified: plugins/module_utils/job.py modified: plugins/modules/zos_job_submit.py modified: tests/functional/modules/test_zos_job_submit_func.py * [v1.9.0] Document the collections SFTP requirement and file tagging. (#1296) * Fixes typo in property Signed-off-by: ddimatos <dimatos@gmail.com> * Initial commit for supporting typrun=scan Signed-off-by: ddimatos <dimatos@gmail.com> * Update jobs and zos_job_submit to better support jobs in the input queue Signed-off-by: ddimatos <dimatos@gmail.com> * Update zos_job_submit to remove other typrun scans from regex Signed-off-by: ddimatos <dimatos@gmail.com> * The ret_code msg field should have only had the status in it, not the RC Signed-off-by: ddimatos <dimatos@gmail.com> * Update msg_txt for jobs JCLHOlD, HOLD Signed-off-by: ddimatos <dimatos@gmail.com> * Update test cases with typrun Signed-off-by: ddimatos <dimatos@gmail.com> * Lint updates Signed-off-by: ddimatos <dimatos@gmail.com> * Updates to controll the messages to the ret_code property Signed-off-by: ddimatos <dimatos@gmail.com> * Update wait times as result of the timer fix forced tests to add more time Signed-off-by: ddimatos <dimatos@gmail.com> * Changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> * Changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> * Update doc for zos_archive to reference src over path Signed-off-by: ddimatos <dimatos@gmail.com> * Update docs to reference the SFTP requirement Signed-off-by: ddimatos <dimatos@gmail.com> * Update plugin doc Signed-off-by: ddimatos <dimatos@gmail.com> * Add changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> * Update zos_copy to explain that file tagging (chtag) is performed on updated USS files Signed-off-by: ddimatos <dimatos@gmail.com> * Corrected typo Signed-off-by: ddimatos <dimatos@gmail.com> * Corrected typo Signed-off-by: ddimatos <dimatos@gmail.com> * Corrected typo Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: ddimatos <dimatos@gmail.com> Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * update galaxy.yml Signed-off-by: ddimatos <dimatos@gmail.com> * Updte meta/runtime.yml with the version 2.15 Signed-off-by: ddimatos <dimatos@gmail.com> * Update meta collection with lastest versions Signed-off-by: ddimatos <dimatos@gmail.com> * Update README Signed-off-by: ddimatos <dimatos@gmail.com> * Update lint and galaxy to reflect 2.14 Signed-off-by: ddimatos <dimatos@gmail.com> * Add changelog summary Signed-off-by: ddimatos <dimatos@gmail.com> * update versions for zoau version checker Signed-off-by: ddimatos <dimatos@gmail.com> * Fix array syntax Signed-off-by: ddimatos <dimatos@gmail.com> * Documentation required for wtor filter Signed-off-by: ddimatos <dimatos@gmail.com> * Update changelog Signed-off-by: ddimatos <dimatos@gmail.com> * Update changelog meta Signed-off-by: ddimatos <dimatos@gmail.com> * update filters general doc Signed-off-by: ddimatos <dimatos@gmail.com> * Update submit modules doc Signed-off-by: ddimatos <dimatos@gmail.com> Conflicts: plugins/modules/zos_job_submit.py Changes to be committed: modified: plugins/modules/zos_job_submit.py * Update the rst for submit module Signed-off-by: ddimatos <dimatos@gmail.com> * Update release notes rst Signed-off-by: ddimatos <dimatos@gmail.com> * Correct lint warning Signed-off-by: ddimatos <dimatos@gmail.com> * Update zos_copy module doc Signed-off-by: ddimatos <dimatos@gmail.com> * Update RST for zos_copy Signed-off-by: ddimatos <dimatos@gmail.com> * Update copyright year Signed-off-by: ddimatos <dimatos@gmail.com> Conflicts: plugins/modules/zos_apf.py Changes to be committed: modified: docs/source/release_notes.rst modified: tests/functional/modules/test_zos_job_query_func.py * Delete changelog fragments after generating CHANGELOG Signed-off-by: ddimatos <dimatos@gmail.com> Conflicts: changelogs/fragments/1220-bugfix-zos_job_submit-default_value.yml changelogs/fragments/1261-job-submit-non-utf8-chars.yml changelogs/fragments/1292-doc-zos_tso_command-example.yml changelogs/fragments/1295-doc-zos_ping-scp.yml Changes to be committed: deleted: changelogs/fragments/1246-bugfix-zos_job_submit-typrun.yml deleted: changelogs/fragments/1296-doc-sftp-collection-requirements.yml deleted: changelogs/fragments/v1.9.0_summary.yml * Update source comment to align to code change Signed-off-by: ddimatos <dimatos@gmail.com> * Update source documentation after pull request review Signed-off-by: ddimatos <dimatos@gmail.com> Conflicts: plugins/modules/zos_job_submit.py Changes to be committed: modified: docs/source/release_notes.rst modified: plugins/filter/wtor.py modified: plugins/module_utils/job.py modified: plugins/modules/zos_copy.py modified: plugins/modules/zos_job_submit.py modified: plugins/modules/zos_ping.py modified: plugins/modules/zos_tso_command.py modified: tests/functional/modules/test_zos_job_query_func.py modified: tests/functional/modules/test_zos_job_submit_func.py * Typo correction Signed-off-by: ddimatos <dimatos@gmail.com> * Update Galaxy Signed-off-by: ddimatos <dimatos@gmail.com> * Update RST Signed-off-by: ddimatos <dimatos@gmail.com> * Changes to submit module after forward porting typrun support Signed-off-by: ddimatos <dimatos@gmail.com> * Lint corrections Signed-off-by: ddimatos <dimatos@gmail.com> * Update test cases to use upper case data set types due to choice requirments Signed-off-by: ddimatos <dimatos@gmail.com> * Updated test expected text Signed-off-by: ddimatos <dimatos@gmail.com> * Corrected typo and added test cleanup --------- Signed-off-by: ddimatos <dimatos@gmail.com> Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com>
* [v1.10.0] [zos_job_submit] Migrate zos_job_submit to ZOAU v1.3.0 (#1209) * Change jobs calls * Update exception handling * Remove deprecated wait option * Remove unneeded TODO * Update fetch calls to include the program name * Remove compatibility with previous versions of ZOAU * Disable tests that depend on zos_copy * Remove `wait` option from tests * Add note to test * Fix sanity issues * Add changelog fragment * [v1.10.0][zos_job_query] Removed wait argument from test cases (#1217) * Removed wait arg from test cases * Added changelog * [v1.10.0] [ zos_job_submit] Bugfix issue for zos_job_submit when location is not set (#1220) * Pulled v1.9.0 changes * Removed changelog * Updated changelog * Removed summary * Removed wait option * [v1.10.0][zos_encode] Migrate zos_encode to use ZOAU 1.3 (#1218) * Modified zos_encode and remvoved wwait option for zos_job_submit * Updated parameter * fixed dsorg * Fixed copyright years * Added changelog * Enabler updates the AC tool with operator support for python and changes python search order. (#1224) * Update requirement files to use new operator for python versions Signed-off-by: ddimatos <dimatos@gmail.com> * Update ac to correct typo Signed-off-by: ddimatos <dimatos@gmail.com> * Update script to support requirements operator for python and change python search order Signed-off-by: ddimatos <dimatos@gmail.com> * Update copyright year Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: ddimatos <dimatos@gmail.com> * [v1.10.0][zos_apf] Migrate zos_apf to ZOAU 1.3 (#1204) * Modified test case and apf code * Updated exceptions * Updated changelog * Changed zos_apf exit call * Uncommented test case * Added try - finally statements to make sure we clean up the environment upon failure * Removed validation & fixed test case * Removed zos_data_set dependency * updated test cacse * Fixed typo * Added validation for volume * Updated changelog * Modified tests to only fetch volumes with VVDS once per session * Updated zos_apf tests --------- Co-authored-by: André Marcel Gutiérrez Benítez <68956970+AndreMarcel99@users.noreply.github.com> * [v1.10.0] [zos_copy] zos_copy migration to ZOAU v1.3.0 (#1222) * Update calls to datasets API * Update tests * Update zos_job_submit tests that depend on zos_copy * Add changelog fragment * Enable tests that depend on zos_encode * Remove calls to datasets._copy * Fixed pep8 issue * Fixed bug when copying from MVS to USS * [v1.10.0][zos_archive] Migrate zos_archive to use ZOAU 1.3 (#1227) * Removed helpers * Updated code to use 1.3 * Removed to_dict * Added changelog * Added changlog * Update zos_unarchive.py * Removed command calls * [v1.10.0][zos_find] Removed lineinfile dependency and test with ZOAU 1.3 (#1228) * Removed lineinfile dependency * Added changelog * Updated copyright years * Updated copyright years * [v1.10.0][zos_fetch] Migrate zos_fetch to ZOAU 1.3 (#1229) * Modified code to use ZOAU 1.3 * Updated job_submit call * Add fragment * Added copyright year * [v1.10.0][Zos Operator Action Query]Migrate zos operator action query (#1215) * Add timeout x100 * Add error messages for false positives and migrate module * Fix ansible-lint * Fix test case new iteration * Return previous behaviour * Return behaviour * Fix ansible lint * Fix ansible lint * Fix ansible lint * Add fragment * Revert "Add fragment" This reverts commit a434c410cb8746ed65c69eba905137bcc7307708. * Add fragment * Fix commends on variable names and coments * Change to timeout_S * [v1.10.0][zos_unarchive] Migrate zos_unarchive to use ZOAU 1.3 (#1238) * Update calls to datasets API * Update tests * Update zos_job_submit tests that depend on zos_copy * Add changelog fragment * Enable tests that depend on zos_encode * Remove calls to datasets._copy * Fixed pep8 issue * Fixed bug when copying from MVS to USS * Removed helpers * Updated code to use 1.3 * Removed to_dict * Added changelog * Added changlog * Update zos_unarchive.py * Initial changes for zos_unarchive * Removed command calls * Commented test cases * Added changelog * Uncommented test cases * Update zos_unarchive.py * Update test_zos_unarchive_func.py --------- Co-authored-by: Ivan Moreno <iamorenosoto@gmail.com> * [v1.10.0] [zos_mount] zos_mount ZOAU v1.3.0 migration (#1237) * Update tests * Add changelog fragment * Re-enabled zos_copy-dependent tests * Update copyright * Update release notes for V3R1 (#1226) * Update release notes for V3R1 Signed-off-by: ddimatos <dimatos@gmail.com> * Update bug issue template Signed-off-by: ddimatos <dimatos@gmail.com> * Update collaboration issue template Signed-off-by: ddimatos <dimatos@gmail.com> * Update doc issue template Signed-off-by: ddimatos <dimatos@gmail.com> * Update enabler template Signed-off-by: ddimatos <dimatos@gmail.com> * Update feature template Signed-off-by: ddimatos <dimatos@gmail.com> * Update module template Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: ddimatos <dimatos@gmail.com> * [Enabler][1137]Validate_module_zos_job_output_migration_1.3.0 (#1216) * Add manage exception for ZOAU 1.3 * Comment test on dependencies of zos job submit * Adapt test cases to new expections * Adapt test cases to new expections * Adapt test cases to new expections * Adapt test cases to new expections * Adapt test cases to new expections * Add fragment * Validate test_zos_job_output_with_job_submit * Add alias to exception * Add zos job submit work fine * Add zos job submit work fine * Add zos job submit work fine * Add zos job submit work fine * Add zos job submit work fine * Add zos job submit work fine * Add zos job submit work fine * Add zos job submit work fine * Add zos job submit work fine * Add zos job submit work fine * Add zos job submit work fine * Add zos job submit work fine * Add validation * Add validation * Add time and validation * Add time and validation * Add time and validation * Add print * Add print * Add job * Add job * Fix job utils for output * Remove print * Add mesage to fail * Return test cases * Fix Typo * Add job output * Remove print * Move exeptions * [v1.10.0] [zos_data_set] ZOAU 1.3 migration - zos_data_set (#1242) * remove deprecated 'wait=True' from call to zos_job_submit Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * add temporary fixes to module_util/data_set.py to catch DatasetVerificationError and strip '-' from parsed volser Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * refactor volser extraction for better readability Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * add work-around for potentially errouneous DatasetVerificationError when a data set spanning multiple volumes is created Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * resolve pep8 issue - remove blank line Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * add changelog fragment Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * remove error catch introduced during debugging Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * update error message when DatasetVerificationError is raised Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * update DatasetCreateError definition to account for instance where no RC exists Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * add indent to address pep8 issue Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> --------- Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * Removed trailing char from changelog (#1266) * [Enabler][Migration]Migrate_zos_blockinfile_and_lineinfile (#1256) * Add change of blockinfile * Check output * Add dataset option * Fix blockinfile * Remove test case with bug * Migrate lineinfile * Comment fail cases * Fix space * Fix documentation * Add fragment * Add correct dataset import * Add gh issue to lineinfile * Add gh issue to test * Remove force * Updated copyright years * Add explanation --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [zos_apf] Standardize ZOAU Imports (#1257) * Stadarized ZOAU Imports * Added missing import * Restored backup * Updated changelog * Update zos_apf.py * [Enhancement] [Doc scripts] Modifed doc scripts to ensure compatibility between MacOS and GNU sed commands (#1202) * Modifed doc scripts to ensure compatibility between MacOs and GNU sed commands * Added changelog * [Enabler][1104]migrate_zos_backup_restore (#1265) * Migrated zos_backup_restore to 1.3 * Fixed sanity * Added hlq * Updated backup * Migrate blockinfile * Fix trouble * Fix trash left and new way to test module * Fix variable name * Ensure Diferent HLQ * Add fragment * Change copyright notation * Fix documentation * Get better code and documentation --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [1.10.0] [zos_data_set] Bugfix/1268/quick fix len of volumes work around (#1270) * add None check for volumes in create function Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * add changelog fragment Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * update changelog fragment name Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> --------- Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * [v1.10.0] [zos_job_submit] Handling of non-UTF8 chars in job output (#1261) * Added test to validate handling of non-UTF8 chars * Add changelog fragment * Clean up new test * Add try-except block when reading a job's output * Remove commented code * Update changelog fragment * Change job queried in test * [v1.10.0] [Documentation] Replaced path to src in zos_archive and zos_unarchive documentation (#1286) * Replaced path to src in zos_archive and zos_unarchive documentation * Added changelog * [v1.10.0-beta.1][port forward] Documentation to update zos_ping about the deprecated scp in OpenSSH 9 or later. (#1295) * Update zos_ping to note OpenSSH deprecation of SCP Signed-off-by: ddimatos <dimatos@gmail.com> * Add changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> * Update changelog fragement after cherry-pick Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: ddimatos <dimatos@gmail.com> * [v1.10.0-beta.1][port forward] Add chained command example to zos_tso_command (#1293) * Add chained command example with folding scalar and chomp Signed-off-by: ddimatos <dimatos@gmail.com> * Update copyright year Signed-off-by: ddimatos <dimatos@gmail.com> * Add changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> * Updated zos_tso_command doc Signed-off-by: ddimatos <dimatos@gmail.com> * Updted changelog fragment PR Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: ddimatos <dimatos@gmail.com> * [Enabler][995 996]Remove_local_charset_from_zos_fetch (#1298) * First iteration * Remove latest sanity cases * Fix sanity * Remove to last local_charset left * Add fragment * Add comment of explanation * Change changelog * [v1.10.0] [Enabler] [zos_data_set] Enabler/992/fixsanityfourin110 (#1285) * catch up changes for core 1.10 changelog addition zos_data set to correct the choices value in type, space_type test module changed to request only UPPER types * record_format values, plus aliases (data_class, format, size) also capitalized examples and changed case-insensitive to sensitive in docs * added result output to test to see what failed in creation data_set: missed a comma in a choices entry * indentation error in documentation * arg name had a choice parameter (paste-o) submit call in a test had a 'wait' parameter * confusion with sms_storage_class aliase data_class versus sms_data_class with no alias * commented out catalog before delete actions in testing that pair (catalog, then absent) seems to consistently fail * pulled old print_results, moved to present when cataloged final test * changing exception handling in data_set which was accessing non-existing members * re-enabled pre-catalog, moved print_resp to line 326 * re-printing @166 on creation * change 'space_type' to default=M, so code matches docs * added default record_format to 'FB' * forcing record_format to FB if none * adding printresult do create when absent for details * needed to eliminate length check on 'volumes' which can legit be a nonetype * corrected output header in test, added secondary default to zos_data_set/record_type * expanded results @ 416 to show both creation run results. * testing changing vsam (esds) record to F record format * cleaned inline comment, removed esds from data set creation list * re-elaborating output on cat/uncat/recat testing * removed rrds as well as esds types * updated test for 413, and old_aliases to use 2 vars removed default=F for vsam type * re-enabled complext ds types, and added logging enabler to test system * expanded exception on dataset creation to show calling params * printing ensure present 253 * dumping formatted params in exception handler * changing record format enforcement * forcing the blank record_type for vsam dataset types * expanded settings replacement to after arg parser removed vvv printouts and logging import * added redundant value check, so mutually exclusive values are checked before and after arg parsing. * allow record size in batch, because it will get cleared out before use * changing 'size' from an alias to an optional parameter, because the type changed * corrected missing commas * added print to create/delete in batch * removed 'size' parameter, and removed 'old args' test and repair routines. * added print back into 184 to make sure we tripped on a junk file * correcting double-creation of data set final tests * correction of result->results for a test loop. * removed extra output from test * corrected sanity fragment to include PR# removed extra/debug output from data_set * changed exception handler in data_set to match new exception class. * [v1.10.0] [Bugfix] [zos_job_submit] Fix non-printable chars handling and testing in jobs (#1300) * Update non-printable chars test * Add support for handling JSON decode errors Add support for when ZOAU v1.3.0 and later can't read and create JSON output from a job's output. * un-commented the blind catalog action to test if other fixes corrected the catalog issue (#1303) * Enabler/692/add changelog lint (#1304) * Create bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Added changelog action * Update changelog.yml * Create close-stale-issues * Update close-stale-issues Quite el workflow dispatch * Create bandit2.yml * Update bandit2.yml * Update zos_copy.py * Update zos_copy.py Me equivoque * Create ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Added ac changelog * added lint as an option * Added documentation to ac_changelog * Changed 'lint' to 'command' on ac_changelog * Create * Create first version of the changelog action * Update changelog.yml * Fix changelog.yml * Change name of action Antsibull 'Changelog lint' to AC Changelog lint * Rename 'changelog.yml' to 'ac_changelog.yml * Create ac_changelog.yml * Update ac_changelog.yml * Update ac_changelog.yml * Update ac_changelog.yml * Change path in 'venv setup' on ac * Change ac_changelog.yml * Change ac_changelog.yml * Change ac_changelog.yml * Change ac_changelog.yml * Removed not required github actions * Update zos_copy.py * Update ac_changelog.yml * Update ac_changelog.yml * Indented steps section * Modified changed line * Added changelog --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * Changed case sensitive options * Revert "Changed case sensitive options" This reverts commit 9c5bab3c39214ff2e4c0ab07f28a1624a0d336ae. * Added Needs Triage on bug template (#1314) * Add galaxy importer into ac as a command and create a GitHub action (#1305) * Create bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Added changelog action * Update changelog.yml * Create close-stale-issues * Update close-stale-issues Quite el workflow dispatch * Create bandit2.yml * Update bandit2.yml * Update zos_copy.py * Update zos_copy.py Me equivoque * Create ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Create ac_changelog.yml * Delete .github/workflows/ac_changelog.yml * Create ac_changelog.yml * Update ac_changelog.yml * Add galaxy importer to ac and create workflow with the ac command for it * Delete a jump of line * Create ac-galaxy-importer.yml * Rename action * Rename job * Update ac-galaxy-importer.yml * Fix * Fix * Rename ac-galaxy-importer to ac-galaxy-importer.yml * Acomodate function documentation in ac * Delete invasive files * Added line * Update ac * Update ac * Update ac --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * Create bandit github action using the ac command (#1310) * [Enabler] [zos_copy] Fix sanity issues and remove ignore files (#1307) * Removed localchartset * Fixed sanity * Updated to encoding * Updated encoding parser * Fixed encoding to null when remote_src=true * Updated condition to set encoding to none * removed size parameter * Changed src * Added full local src * Corrected base name for temp_path * Fixed pep8 issue * Changed temp_path to src logic * Added src to temp_path * Added module fail * Replaced temp name generation * Placed temporary file into tmp folder * Removing temp_path * Added latest temp path changes * Fixed lock check issue * Removed temp_path * Removed temp path * Removed is_something vasrs * Fixed comment * Added latest zos_copy_changes * Removed print statements * Removed ingore entry * removed entries * Corrected case sensitivity in tests * Fixed lowercase * Modified docs * Added changelog * Cherry picking 1.9 into dev (#1346) * [v1.9.0] Collaboration 1246 to add typrun support for zos_job_submit (#1283) * Fixes typo in property Signed-off-by: ddimatos <dimatos@gmail.com> * Initial commit for supporting typrun=scan Signed-off-by: ddimatos <dimatos@gmail.com> * Update jobs and zos_job_submit to better support jobs in the input queue Signed-off-by: ddimatos <dimatos@gmail.com> * Update zos_job_submit to remove other typrun scans from regex Signed-off-by: ddimatos <dimatos@gmail.com> * The ret_code msg field should have only had the status in it, not the RC Signed-off-by: ddimatos <dimatos@gmail.com> * Update msg_txt for jobs JCLHOlD, HOLD Signed-off-by: ddimatos <dimatos@gmail.com> * Update test cases with typrun Signed-off-by: ddimatos <dimatos@gmail.com> * Lint updates Signed-off-by: ddimatos <dimatos@gmail.com> * Updates to controll the messages to the ret_code property Signed-off-by: ddimatos <dimatos@gmail.com> * Update wait times as result of the timer fix forced tests to add more time Signed-off-by: ddimatos <dimatos@gmail.com> * Changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> * Changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: ddimatos <dimatos@gmail.com> Conflicts: plugins/module_utils/job.py plugins/modules/zos_job_submit.py tests/functional/modules/test_zos_job_submit_func.py Changes to be committed: new file: changelogs/fragments/1246-bugfix-zos_job_submit-typrun.yml modified: plugins/module_utils/job.py modified: plugins/modules/zos_job_submit.py modified: tests/functional/modules/test_zos_job_submit_func.py * [v1.9.0] Document the collections SFTP requirement and file tagging. (#1296) * Fixes typo in property Signed-off-by: ddimatos <dimatos@gmail.com> * Initial commit for supporting typrun=scan Signed-off-by: ddimatos <dimatos@gmail.com> * Update jobs and zos_job_submit to better support jobs in the input queue Signed-off-by: ddimatos <dimatos@gmail.com> * Update zos_job_submit to remove other typrun scans from regex Signed-off-by: ddimatos <dimatos@gmail.com> * The ret_code msg field should have only had the status in it, not the RC Signed-off-by: ddimatos <dimatos@gmail.com> * Update msg_txt for jobs JCLHOlD, HOLD Signed-off-by: ddimatos <dimatos@gmail.com> * Update test cases with typrun Signed-off-by: ddimatos <dimatos@gmail.com> * Lint updates Signed-off-by: ddimatos <dimatos@gmail.com> * Updates to controll the messages to the ret_code property Signed-off-by: ddimatos <dimatos@gmail.com> * Update wait times as result of the timer fix forced tests to add more time Signed-off-by: ddimatos <dimatos@gmail.com> * Changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> * Changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> * Update doc for zos_archive to reference src over path Signed-off-by: ddimatos <dimatos@gmail.com> * Update docs to reference the SFTP requirement Signed-off-by: ddimatos <dimatos@gmail.com> * Update plugin doc Signed-off-by: ddimatos <dimatos@gmail.com> * Add changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> * Update zos_copy to explain that file tagging (chtag) is performed on updated USS files Signed-off-by: ddimatos <dimatos@gmail.com> * Corrected typo Signed-off-by: ddimatos <dimatos@gmail.com> * Corrected typo Signed-off-by: ddimatos <dimatos@gmail.com> * Corrected typo Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: ddimatos <dimatos@gmail.com> Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * update galaxy.yml Signed-off-by: ddimatos <dimatos@gmail.com> * Updte meta/runtime.yml with the version 2.15 Signed-off-by: ddimatos <dimatos@gmail.com> * Update meta collection with lastest versions Signed-off-by: ddimatos <dimatos@gmail.com> * Update README Signed-off-by: ddimatos <dimatos@gmail.com> * Update lint and galaxy to reflect 2.14 Signed-off-by: ddimatos <dimatos@gmail.com> * Add changelog summary Signed-off-by: ddimatos <dimatos@gmail.com> * update versions for zoau version checker Signed-off-by: ddimatos <dimatos@gmail.com> * Fix array syntax Signed-off-by: ddimatos <dimatos@gmail.com> * Documentation required for wtor filter Signed-off-by: ddimatos <dimatos@gmail.com> * Update changelog Signed-off-by: ddimatos <dimatos@gmail.com> * Update changelog meta Signed-off-by: ddimatos <dimatos@gmail.com> * update filters general doc Signed-off-by: ddimatos <dimatos@gmail.com> * Update submit modules doc Signed-off-by: ddimatos <dimatos@gmail.com> Conflicts: plugins/modules/zos_job_submit.py Changes to be committed: modified: plugins/modules/zos_job_submit.py * Update the rst for submit module Signed-off-by: ddimatos <dimatos@gmail.com> * Update release notes rst Signed-off-by: ddimatos <dimatos@gmail.com> * Correct lint warning Signed-off-by: ddimatos <dimatos@gmail.com> * Update zos_copy module doc Signed-off-by: ddimatos <dimatos@gmail.com> * Update RST for zos_copy Signed-off-by: ddimatos <dimatos@gmail.com> * Update copyright year Signed-off-by: ddimatos <dimatos@gmail.com> Conflicts: plugins/modules/zos_apf.py Changes to be committed: modified: docs/source/release_notes.rst modified: tests/functional/modules/test_zos_job_query_func.py * Delete changelog fragments after generating CHANGELOG Signed-off-by: ddimatos <dimatos@gmail.com> Conflicts: changelogs/fragments/1220-bugfix-zos_job_submit-default_value.yml changelogs/fragments/1261-job-submit-non-utf8-chars.yml changelogs/fragments/1292-doc-zos_tso_command-example.yml changelogs/fragments/1295-doc-zos_ping-scp.yml Changes to be committed: deleted: changelogs/fragments/1246-bugfix-zos_job_submit-typrun.yml deleted: changelogs/fragments/1296-doc-sftp-collection-requirements.yml deleted: changelogs/fragments/v1.9.0_summary.yml * Update source comment to align to code change Signed-off-by: ddimatos <dimatos@gmail.com> * Update source documentation after pull request review Signed-off-by: ddimatos <dimatos@gmail.com> Conflicts: plugins/modules/zos_job_submit.py Changes to be committed: modified: docs/source/release_notes.rst modified: plugins/filter/wtor.py modified: plugins/module_utils/job.py modified: plugins/modules/zos_copy.py modified: plugins/modules/zos_job_submit.py modified: plugins/modules/zos_ping.py modified: plugins/modules/zos_tso_command.py modified: tests/functional/modules/test_zos_job_query_func.py modified: tests/functional/modules/test_zos_job_submit_func.py * Typo correction Signed-off-by: ddimatos <dimatos@gmail.com> * Update Galaxy Signed-off-by: ddimatos <dimatos@gmail.com> * Update RST Signed-off-by: ddimatos <dimatos@gmail.com> * Changes to submit module after forward porting typrun support Signed-off-by: ddimatos <dimatos@gmail.com> * Lint corrections Signed-off-by: ddimatos <dimatos@gmail.com> * Update test cases to use upper case data set types due to choice requirments Signed-off-by: ddimatos <dimatos@gmail.com> * Updated test expected text Signed-off-by: ddimatos <dimatos@gmail.com> * Corrected typo and added test cleanup --------- Signed-off-by: ddimatos <dimatos@gmail.com> Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * Enabler/add ansible sanity action (#1313) * Create bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Added changelog action * Update changelog.yml * Create close-stale-issues * Update close-stale-issues Quite el workflow dispatch * Create bandit2.yml * Update bandit2.yml * Update zos_copy.py * Update zos_copy.py Me equivoque * Create ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Added ac changelog * added lint as an option * Added documentation to ac_changelog * Changed 'lint' to 'command' on ac_changelog * Create * Create first version of the changelog action * Update changelog.yml * Fix changelog.yml * Change name of action Antsibull 'Changelog lint' to AC Changelog lint * Rename 'changelog.yml' to 'ac_changelog.yml * Create ac_changelog.yml * Update ac_changelog.yml * Update ac_changelog.yml * Update ac_changelog.yml * Change path in 'venv setup' on ac * Change ac_changelog.yml * Change ac_changelog.yml * Change ac_changelog.yml * Change ac_changelog.yml * Removed not required github actions * Update zos_copy.py * Update ac_changelog.yml * Create 'ac-ansible-test.yml' * Test * Delete test changelog * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix paths * Delete commented lines * Delete weird changes * Delete weird changes * Update ac-ansible-test-sanity.yml --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> Co-authored-by: André Marcel Gutiérrez Benítez <68956970+AndreMarcel99@users.noreply.github.com> * [Bugfix][1201]Zos_mvs_raw_ignores_tmp_hlq (#1320) * Add first iteration * Fix mvs_raw * Add another format * Add define * Add parms to avoid fails * Quick fix to not avoid tmphlq * Fix sanity issues * Fix white spaces * Return call of hlq * Add fragment * Fix capital letters * Change fragment * Fix case sensitive data set * Fix not exist dataset * Return dataset * Fix upper case for latest dataset and change of datasize from dtouch * Fix upper case and lower case * Change typo * Fix documentation * Fix not match * Unit testing to uppercase * Fis uppercases in mvs raw * Add uppercase * New problem ID * Remove unnecesary function and add KSDS solution * Removed a test condition that obscured duration (#1364) * removed a function in a test that would obscure if null durations are coming back it appears this issue is resolved. * added changelog --------- Co-authored-by: Demetri <dimatos@gmail.com> * Updated actions to only run when PR is not draft (#1412) * Updated actions to only run when PR is not draft * Add test * Modified draft condition * Update zos_apf.py * Modified workflows * test * test * [Documentation][encode] Add and standarize docstring to encode.py (#1322) * Add and estandarize docstring to encode.py * Create changelog fragment * Modified the google style to numpy * Update changelog fragment * Standarize numpy style * Update encode.py added newline to address pep8 error * Fixed some dcostrings * Modified docstrings --------- Co-authored-by: Rich Parker <richp405@gmail.com> Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [v1.10.0] [Enabler] Standardization of choices in modules (#1388) * Update zos_archive choices * Update zos_backup_restore choices * Update zos_copy choices * Update zos_data_set choices * Update module docs * Update zos_job_submit choices * Update zos_mount choices * Update zos_unarchive choices * Fix zos_archive and update its tests This also includes major work on zos_data_set since half of the test suite for zos_archive depends on creating data sets. * Update zos_backup_restore tests * Update zos_blockinfile tests * Update more modules * Updated more tests * Update zos_unarchive and zos_mount * Update zos_backup_restore unit tests * Update zos_mvs_raw * Update zos_copy tests * Fix some sanity issues * Fix zos_copy KSDS test * Update zos_copy some more * Fix ZFS call * Update zos_unarchive tests * Add massive changelog fragment * Fix call to zos_data_set * Fix more test issues in zos_fetch * Fix zos_find tests * Generate updated docs * [Documentation][zos_data_set] Add and standarize docstrings on modules/zos_data_set.py (#1347) * First advance to docstrings on modules/zos_data_set.py * Add and standarize docstrings on modules/zos_data_set.py * Create changelog fragment * Modify google style to numpy * Standarize numpy style * Modified docstrings --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][zos_encode] Add and standarize docstrings on modules/zos_encode.py (#1348) * Add and standarize docstrings on modules/zos_encode.py * Create changelog fragment * Modify google style to numpy * Standarize numpy style * Updated docstrings --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][zos_fetch] Add and standarize docstrings on modules/zos_fetch.py (#1349) * Add and standarize docstrings on modules/zos_fetch.py * Create changelog fragment * Modify google style to numpy * Standarize numpy style * Updated docstrings --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][zos_job_query] Add docstrings to modules/zos_job_query.py (#1353) * Add docstrings to modules/zos_job_query.py * Create changelog fragment * Modify google style to numpy * Standarize numpy style * [Documentation][zos_lineinfile] Add and standarize docstrings on modules/zos_lineinfile.py (#1355) * Add and standarize docstrings on modules/zos_lineinfile.py * Create changelog fragment * Modify google style to numpy * [Documentation][zos_script] Add and standarize docstrings on modules/zos_script.py (#1390) * Add and standarize docstrings on module-utils/zos_script.py * Add changelog fragment * [Documentation][zos_tso_command] Add and standarize docstrings on modules/zos_tso_command.py (#1391) * Add and standarize docstrings on module-utils/zos_tso_command.py * Add changelog fragment * Modified docstrings --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> Co-authored-by: Rich Parker <richp405@gmail.com> * [Documentation][zos_volume_init] Add and standarize docstrings on modules/zos_volume_init.py (#1392) * Add and standarize docstrings on module-utils/zos_tso_command.py * Add changelog fragment * [Documentation][zos_apf] Add and standarize docstrings on modules/zos_apf.py (#1393) * Add and standarize docstrings on modules/zos_apf.py * Add changelog fragment * Modified docstring --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][zos_operator_action_query] Add and standarize docstrings on modules/zos_operator_action_query.py (#1394) * Add and standarize docstrings on modules/zos_operator_action_query.py * Add changelog fragment * Modified docstrings --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Bugfix][1239][zos job submit]max_rc_more_than_0_doesn_not_put_change_as_true (#1345) * First iteration of solution * Change dataset * Ensure all cases for false * Remove print * Change behavior for bugfix * Add fragment * Fix latest lower case * Fix uppercase * Remove typo * Remove typo * Fix redundance * Fix test and upper cases * Fix test case * Fix fragment * Return to lower case * Return to lower case --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Bug][zos_find] Filter allocated space when using size filter (#1443) * Update zos_archive choices * Update zos_backup_restore choices * Update zos_copy choices * Update zos_data_set choices * Update module docs * Update zos_job_submit choices * Update zos_mount choices * Update zos_unarchive choices * Fix zos_archive and update its tests This also includes major work on zos_data_set since half of the test suite for zos_archive depends on creating data sets. * Update zos_backup_restore tests * Update zos_blockinfile tests * Update more modules * Updated more tests * Update zos_unarchive and zos_mount * Update zos_backup_restore unit tests * Corrected size value to use allocated size instead of utilized size * Added size fix * Updated test * Corrected test * Updated docs * Updated changelog * Added test --------- Co-authored-by: Ivan Moreno <iamorenosoto@gmail.com> * [Documentation][zos_find] Add and standarize docstrings on modules/zos_find.py (#1350) * Add and standarize docstrings on modules/zos_find.py * Create changelog fragment * Modify google style to numpy * Updated docstrings --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][zos_gather_facts] Add and standarize docstrings on modules/zos_gather_facts.py (#1351) * Add and standarize docstrings on modules/zos_gather_facts.py * Create changelog fragment * Modify google style to numpy * Standarize numpy style --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][zos_job_output] Add and standarize docstrings on modules/zos_job_output.py (#1352) * Add and standarize docstrings on modules/zos_job_output.py * Create changelog fragment * Modify google style to numpy * [Documentation][zos_mount] Add and standarize docstrings on modules/zos_mount.py (#1356) * Add and standarize docstrings on modules/zos_mount.py * Create changelog fragment * Modify google style to numpy * Updated docstring --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][zos_job_submit] Add and standarize docstrings on modules/zos_job_submit.py (#1354) * Add and standarize docstrings on modules/zos_job_submit.py * Create changelog fragment * Modify google style to numpy * Corrected functino --------- Co-authored-by: Rich Parker <richp405@gmail.com> Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][validation] Add docstrings to module_utils/validation.py (#1336) * Add docstrings to module_utils/validation.py * Create changelog fragment * Modify google style to numpy * Standarize numpy style * [Documentation][job] Add docstrings to module_utils/job.py (#1333) * Add docstrings to module_utils/job.py * Create changelog fragment * Modified the google style to numpy * Update changelog fragment * Standarize numpy style * [Documentation][ickdsf] Add docstrings to module_utils/ickdsf.py (#1331) * Add docstrings to module_utils/ickdsf.py * Create changelog fragment * Modified the google style to numpy * Update changelog fragment * Standarize numpy style * [Documentation][import handler] Add docstrings to module_utils/import_handler.py (#1332) * Add docstrings to module_utils/ickdsf.py * Add docstrings to module_utils/import_handler.py * Delete modifications to ickdsf.py * Create changelog fragment * Revert changes in ickdsf.py * Modified the google style to numpy * Update changelog fragment * Standarize numpy style * Update import_handler.py --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Bugfix][1301]Work_around_fix_false_positive (#1340) * First iteration work around * Get the fix stable and return test case * Add clean response * Fix sanity * Add stderr * Fix case sensitive * Comment fail test case * Fix upper case * Add fragment * Retur test case * Change fragment * Add coment and all cases * Add absent double quotes and special cases * Fix ansible sanity --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * Remove stack fault on longer running jobs (#1383) * commit with partial changelog. fix in job.py and correction to test module. * updated pr link in changelog fragment * Update job.py --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * Enhancement/1170/make pipeline 217 compatible (#1452) * add ignore 2.17 to remove git license warnings * added changelog fragment * corrected 2 issues in ignore involving ping.rexx * changing pipe import to use shlex * changed header string from : to - to pass frag lint * updated changelog to include PR number * removed old pipe import line * [Enabler][module_utils/data_set] Add GDG and GDS name resolve functions. (#1467) * modified DatasetCreatedError message * Added gdg functions * Created unit test for validating gds relative name * Updated to fail when future gen * Update arg parser * Add escaping function for data set names * Add unit tests for name escaping * Remove calls to escape_data_set_name * renamed tests * Added MVSDataset class * Updated escaped symbols * Updated tests * Added utils * Add changelog * Uncommented test * Updated exception * Updated mvsdataset class * Updated class * Updated copyright year and uncommented test case --------- Co-authored-by: Ivan Moreno <iamorenosoto@gmail.com> * Update ac tool to support ansible-lint 6.22 and expanded beyond RSA support. (#1484) * Update ac tool to support ansible-lint 6.22 and added more than rsa support Signed-off-by: ddimatos <dimatos@gmail.com> * update mount table Signed-off-by: ddimatos <dimatos@gmail.com> * Update ac to support selecting which managed venv to start or stop Signed-off-by: ddimatos <dimatos@gmail.com> * update ac tool Signed-off-by: ddimatos <dimatos@gmail.com> * Added support to create a managed venv from the latst ansible devel soure Signed-off-by: ddimatos <dimatos@gmail.com> * Update ac with spelling corrections Signed-off-by: ddimatos <dimatos@gmail.com> * Update mount table with correct mount point Signed-off-by: ddimatos <dimatos@gmail.com> * scripts/mounts.sh Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: ddimatos <dimatos@gmail.com> * [Enabler] [module_utils/data_set.py] Add default values to MVSDataSet class (#1495) * Add default values to MVSDataSet class * Add changelog fragment * [Enabler] Fix resolve GDS function to return a string with the gds name instead of zoau dataset object (#1496) * fixed gds function * Updated changelogs * Enabler/1319/redesign mvs raw (#1470) * First iteration to clean up * Add classes aside * Fix output * Add changes * Final design * Fix ansible-lint * Fix mvs_raw * Remove dataset_exist and put utility * Add documentation on numpy * Add description * [Enabler][ac] Add command for 'make module-doc' to ac and as a github action (#1439) * Add command for 'make module-doc' to ac and first try for github action * Second try for github action * Test for github action * Third try for github action * Fourth try for github action * Fifth try for github action * Sixth try for github action * Seventh try for github action * Eighth try for github action * Test for github action * Remove commented lines for tests --------- Co-authored-by: Rich Parker <richp405@gmail.com> * [Enabler] [zos_copy] Use ZOAU's force option during copies (#1488) * Use force option during copies * Add change log fragment * Move change log fragment * [Documentation] Inform users the need to escape commands with special characters (#1507) * Added zos operator docs * Added notes * Added changelog * [documentation][zos_archive] Add and standarize docstrings on modules/zos_archive.py (#1415) * Advance on docstrings on modules/zos_archive.py * Advance on docstrings on modules/zos_archive.py * Advance on docstrings on modules/zos_archive.py * Advance on docstrings on modules/zos_archive.py * Add and standarize docstrings on modules/zos_archive.py * Add changelog fragment --------- Co-authored-by: Rich Parker <richp405@gmail.com> Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][zos_copy] Add and standarize docstrings on modules/zos_copy.py (#1344) * Standarize doc-strings on modules/zos_copy.py * Half add docstrings on modules/zos_blockinline.py exceptions * Add docstrings to modules/zos_copy.py exceptions * Create changelog fragment * Modify google style to numpy * Standarize numpy style * Update zos_copy.py Added blank link at 2895 to fix pep8 --------- Co-authored-by: Rich Parker <richp405@gmail.com> Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][dd_statement] Add and estandarize docstring to dd_statement.py (#1323) * Add and estandarize docstring to dd_statement.py * Add docstrings to module_utils/ickdsf.py * Create changelog fragment * Remove changes in ickdsf.py * Modified the google style to numpy * Modify the changelog fragment * Modify docstrings * Standarize numpy style * Add and standarize docstrings on modules/zos_apf.py * Delete mistake * fixed docstrings --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][mvs_cmd] Add docstrings to module_utils/mvs_cmd.py (#1334) * Add docstrings to module_utils/mvs_cmd.py * Create changelog fragment * Modify the google style to numpy * Standarize numpy style --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][template] Standarize docstrings in module_utils/template.py (#1335) * Standarize docstrings in module_utils/template.py * Create changelog fragment * Modify google style to numpy * Standarize numpy style * fixed docs --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][vtoc] Add docstrings to module_utils/vtoc.py (#1337) * Add docstrings to module_utils/vtoc.py * Create changelog fragment * Modify google style to numpy * Standarize numpy style * [Documentation][zoau_version_checker] Standarize docstrings on module_utils/zoau_version_checker.py (#1338) * Standarize docstrings on module_utils/zoau_version_checker.py * Create changelog fragment * Modify google style to numpy * Standarize numpy style * [Documentation][zos_backup_restore] Standarize doc-strings on modules/zos_backup_restore.py (#1342) * Standarize doc-strings on modules/zos_backup_restore.py * Create changelog fragment * Modify google style to numpy * Standarize numpy style * [Documentation][file] Standarize docstrings on module-utils/file.py (#1362) * Standarize docstrings on modules/file.py to numpy style * Add changelog fragment * Standarize numpy style * Fixed year --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][backup] Add and standarize docstrings on module-utils/backup.py (#1384) * Modify google style docstrings to numpy * Add changelog fragment * Update backup.py Added ending linefeed to address pep8 issue * Update backup.py fix pep8 (extra whitespace at end of file) * modified docstring --------- Co-authored-by: Rich Parker <richp405@gmail.com> Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Enabler][zos_data_set] Add support to GDG and special characters. (#1504) * modified DatasetCreatedError message * Added gdg functions * Created unit test for validating gds relative name * Updated to fail when future gen * Update arg parser * Adding gdg support for zos_data_set * Add escaping function for data set names * Add unit tests for name escaping * Remove calls to escape_data_set_name * renamed tests * Added MVSDataset class * Updated escaped symbols * Updated tests * Added utils * Add changelog * Uncommented test * Updated exception * Updated mvsdataset class * Updated class * Added type * Added gds tests * Testing for special symbols * Added support for MVSDataset class * Added attributes to docs * Updated batch options * Added data set creation to create temp * Added methods to mvsdataset class * Fixed lint issues * fixed temp * fixed raw_name * Added record format to none for vsam * Added fixes * Added repr to module * Added member class * Added latest changes to zos_data_set * Updated with latest errors * Fixing documentation. * Added fragment * Modified docstrings * Added test for data set member * Updated archive * Updated doc * Updated doc * removed print * Set is_gds_active * Updated test * Fixed review comments * Fixed review comments --------- Co-authored-by: Ivan Moreno <iamorenosoto@gmail.com> Co-authored-by: André Marcel Gutiérrez Benítez <68956970+AndreMarcel99@users.noreply.github.com> * [Documentation][better_arg_parser] Add and standarize docstrings on module-utils/better_arg_parser.py (#1385) * Add and standarize docstrings on module-utils/better_arg_parser.py * Add changelog fragment --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][system] Standarize docstrings in module_utils/system.py (#1363) * Modify google style to numpy * Add changelog fragment * Standarize numpy style * Standarize numpy style * Added year * Update 1363-update-docstring-system.yml --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][zos_operator] Add and standarize docstrings on modules/zos_operator.py (#1361) * Add and standarize docstrings on modules/zos_operator.py * Create changelog fragment * Correct changelog fragment * Modified the google style to numpy * Modify google style to numpy --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][copy] Add and standarize docstrings on modules/copy.py (#1387) * Add and standarize docstrings on modules/copy.py * Add changelog fragment * Fixed docstrings --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Documentation][zos_blockinline] Standarize and add docstrings on modules/zos_blockinline.py (#1343) * Standarize doc-strings on modules/zos_blockinline.py * Add a docstring on modules/zos_blockinline.quotedString() * Create changelog fragment * Modify google style to numpy * Standarize numpy style * Update zos_blockinfile.py added blank line at 457 to address pep8 error --------- Co-authored-by: Rich Parker <richp405@gmail.com> Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * [Enabler] [zos_job_submit] Add support for GDG/GDS (#1497) * modified DatasetCreatedError message * Added gdg functions * Created unit test for validating gds relative name * Updated to fail when future gen * Update arg parser * Adding gdg support for zos_data_set * Add escaping function for data set names * Add unit tests for name escaping * Remove calls to escape_data_set_name * renamed tests * Added MVSDataset class * Updated escaped symbols * Updated tests * Added utils * Add changelog * Uncommented test * Updated exception * Updated mvsdataset class * Updated class * Added type * Added gds tests * Testing for special symbols * Made data set name escaping optional * Use new class for GDS handling * Update special chars data set name * Escape dollar sign in test * Add positive test for GDG/GDS * Add negative GDG tests * Update docs * Fix data set existence check * Update docs again * Add changelog fragment * Fix merge with dev * Fix source validation * Fix validate-modules issue --------- Co-authored-by: Fernando Flores <fernandofloresdev@gmail.com> * Merge main 1.10.0 beta.1 into dev (#1510) * Staging v1.7.0 beta.1 (#915) * Added tagging of converted files * Updated tests for zos_encode * Added restoration of PDS/PDSE members when module fails zos_copy can now track which members got overwritten or newly added to a partitioned data set, and restore them accordingly. This commit includes a refactorization of the copy_to_pdse method to simplify the restoration work. * Fixed cleanup of dest when module fails * Removed exception used for debugging * Added pytest markers * solved pep8 issue * Added more information to error when restoration fails * Update make file with new features to manage the nodes (#563) * Update make file with new features to manage the nodes Signed-off-by: ddimatos <dimatos@gmail.com> * Correct typo Signed-off-by: ddimatos <dimatos@gmail.com> * updated makefile to allow for no password in the clear and added a new host Signed-off-by: ddimatos <dimatos@gmail.com> Signed-off-by: ddimatos <dimatos@gmail.com> * Fix a bug that failed to copy the cert to the managed node (#577) Signed-off-by: ddimatos <dimatos@gmail.com> Signed-off-by: ddimatos <dimatos@gmail.com> * Added apropiate error message in zos_lineinfile when src is not found * Better error message * Added fragment for changelog * Update git issue slection field (#593) * Update git issue slection field * Added some additional future versions * Added rule to ignore python 2.7 compile not supporting f strings * Corrected rule in ignore file * Update 584-zos_lineinfile-error-message.yml * Added missing fragments for issues 309 and 408 * update make file and related artifacts with recent zVM changes (#598) Signed-off-by: ddimatos <dimatos@gmail.com> Signed-off-by: ddimatos <dimatos@gmail.com> * Expand what is ingored for venv to all venv's (#613) Signed-off-by: ddimatos <dimatos@gmail.com> Signed-off-by: ddimatos <dimatos@gmail.com> * Ansible-core versions with updated ignore file pass (#615) * Validated that ansible-core versions with updated ignore file pass locally Signed-off-by: ddimatos <dimatos@gmail.com> * remove redundant entry on last line Signed-off-by: ddimatos <dimatos@gmail.com> * remove redundant entry on last line Signed-off-by: ddimatos <dimatos@gmail.com> Signed-off-by: ddimatos <dimatos@gmail.com> * Update make file to read exported var VENV else default to 'venv' (#614) * Update make file to read exported var VENV else default to 'venv' Signed-off-by: ddimatos <dimatos@gmail.com> * Correct the default from defaultValue to 'venv' Signed-off-by: ddimatos <dimatos@gmail.com> * Bugfix/558/zos copy backup dev (#609) * Create emergency backup only if force is set to False and dest exists * Added Changelog fragment * Updated imports ansible.module_utils._text to ansible.module_utils.common.text.converters (#602) * Updated import in zos_fetch * Updated import in zos_job_submit * Updated import in module_utils/data_set * Updated import in module_utils/System * Updated import in zos_copy * Updated import in zos_fetch * Added changelog fragment * Update enhancement-518-text-converter-import.yml * Updates the makefile and related scripts for the latest mounts (#628) * Update makefile coments and use --ignore for pytest Signed-off-by: ddimatos <dimatos@gmail.com> * lexicographical order targets Signed-off-by: ddimatos <dimatos@gmail.com> * Update makefile and artifacts to support new mounts Signed-off-by: ddimatos <dimatos@gmail.com> * Removing encrypted versions of the scripts, no longer senstive content Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: ddimatos <dimatos@gmail.com> * update profile created for mount points Signed-off-by: ddimatos <dimatos@gmail.com> * Correct f-string usage to remain 2.7 compatible (#659) * Correct f-string usage to remain 2.7 compatible Signed-off-by: ddimatos <dimatos@gmail.com> * Update changelog fragments Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: ddimatos <dimatos@gmail.com> * Updated shell scripts for development tooling Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Add issue template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Update collab template Signed-off-by: ddimatos <dimatos@gmail.com> * Update collab template Signed-off-by: ddimatos <dimatos@gmail.com> * Update collab template Signed-off-by: ddimatos <dimatos@gmail.com> * Template updates Signed-off-by: ddimatos <dimatos@gmail.com> * Template updates Signed-off-by: ddimatos <dimatos@gmail.com> * add udpated checkbox to collab template Signed-off-by: ddimatos <dimatos@gmail.com> * add udpated checkbox to collab template Signed-off-by: ddimatos <dimatos@gmail.com> * add udpated checkbox to collab template Signed-off-by: ddimatos <dimatos@gmail.com> * add udpated checkbox to collab template Signed-off-by: ddimatos <dimatos@gmail.com> * add udpated checkbox to collab template Signed-off-by: ddimatos <dimatos@gmail.com> * add udpated checkbox to collab template Signed-off-by: ddimatos <dimatos@gmail.com> * changed zos_job_query to allow multi/embedded wildcard job_values. job.py/_get_job_status now uses fnmatch to test for wildcarded job_names. added test looking for a wildcard job name. added basic changelog text as 'enhancement'. * expanded wildcard support to job_id as well as job_name corrected error-handling issue in query routine playbook tests complete * cleaned up pep8 issues * Bug fix to correct job log returining and other edge cases (#683) * Update zos_job_submit to handle some edge cases and return the job log nearly always Signed-off-by: ddimatos <dimatos@gmail.com> * Linting correction Signed-off-by: ddimatos <dimatos@gmail.com> * Add changelog fragement for pr 683 Signed-off-by: ddimatos <dimatos@gmail.com> * Clean up comments in code Signed-off-by: ddimatos <dimatos@gmail.com> * Update restructured text for modules and changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> * Add support to check for security exception to job submit module Signed-off-by: ddimatos <dimatos@gmail.com> * Add additonal logic for jobs that use typerun=scan Signed-off-by: ddimatos <dimatos@gmail.com> * Update chnagelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> * Update zos_job_submit.py Grammar change and correction. --------- Signed-off-by: ddimatos <dimatos@gmail.com> * Added uss_tag_encoding function * Fixing linter issues * removed extraneous comment on query, eliminated unused variable * responding to reviewer comments * Expanded query tests to run a hello jcl file to make sure we are searching for a job id that exists. * Expanded documentation in code to highlight asterisk availability. Added examples showing multi-asterisk search. * Corrected 2 documentation errors * Change to documentation text (indent on multi line string?) * Still trying to get documentation to pass * Looks like '---' was killing documentation block. * Update zos_blockinfile with complex examples (#727) * Update zos_blockinfile with complex examples Signed-off-by: ddimatos <dimatos@gmail.com> * Add changelog fragement Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: ddimatos <dimatos@gmail.com> * Added additional D SYMBOLS example to zos_operator documentation (#730) * Update zos_operator with an additional example Signed-off-by: ddimatos <dimatos@gmail.com> * Added changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: ddimatos <dimatos@gmail.com> * zos_gather_facts - add sample output to RETURN docstring (#722) * zos_gather_facts - add sample output to RETURN docstring Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * add changelog fragment Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * zos_gather_facts RETURN docstring - add sample sysplex_name and lpar_name values Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * Update generated module doc Signed-off-by: ddimatos <dimatos@gmail.com> --------- Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> Signed-off-by: ddimatos <dimatos@gmail.com> Co-authored-by: ddimatos <dimatos@gmail.com> * 574find (#668) * change to allow find loop to continue when one particular data set element is not found This has been validated with a zos-check-find.yaml playbook * added functional test that includes non-existant pds entry, which should be skipped over * added changelog fragment. * zos_blockinfile , can quotes in content can be supported (#680) * Verify coomand of ZOAU support the doble quotes and get better output of message * Verify coomand of ZOAU support the doble quotes and get better output of message * Restore to the one tyme function solving TypeError * Test about cases with quotes supported * Solve comments * Comments in the changelog * Adjust test for working accord the text * A needed space * All in structured * Comments solved * Better order --------- Co-authored-by: Andre Marcel Gutierrez Benitez <andre@MacBook-Pro-de-Andre-2.local> Co-authored-by: Demetri <dimatos@gmail.com> * zos_copy mode is applied to the destination directory, a deviation from the communtiy module behavior. (#723) * Verify coomand of ZOAU support the doble quotes and get better output of message * Verify coomand of ZOAU support the doble quotes and get better output of message * Restore to the one tyme function solving TypeError * Test about cases with quotes supported * Solve comments * Comments in the changelog * Adjust test for working accord the text * Solve the dest functional mode set for the applied to destination directory * Identation and spaces * To work well * To work well * To work well * To work well * Changelogs added * Solved the fragment test and separte the cases --------- Co-authored-by: Andre Marcel Gutierrez Benitez <andre@MacBook-Pro-de-Andre-2.local> * corrected job test case that wanted to extract job id. * changed call to zos_job_query in the functional test. * zos_data_set - add force parameter to enable member delete via disp shr (#718) * add force parameter to enable member delete via disp shr Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * update link to PR instead of issue Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * fix minor mistake in func test Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * update DOCstring for missed items highlighted in PR review Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * update copyright years in data set module util Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> --------- Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com> * Update changelog fragment Signed-off-by: ddimatos <dimatos@gmail.com> * Update to doc and examples Signed-off-by: ddimatos <dimatos@gmail.com> * Update to doc and examples Signed-off-by: ddimatos <dimatos@gmail.com> * Update to doc and examples Signed-off-by: ddimatos <dimatos@gmail.com> * update doc, rst Signed-off-by: ddimatos <dimatos@gmail.com> * Update doc and examples Signed-off-by: ddimatos <dimatos@gmail.com> * Added handler for job not found edge cases (None not iterable errors) * corrected pep8 issue (bad indent) * removed tracking text from error/not found messages. * Update zos_job_query.py * Add and automate a load lib test case for module zos_copy (#640) * Modified if statement * Added changelog fragment * Corrected statements Corrected PR in changelog fix lint issue * Adding test case on the work * Added assertion to loadlib test Changed cobol src Added newlines * Correcting cobol src * Removed unnecessary comments * Removed deprint statements for debug * Update 601-copy-loadlib-member.yml * Reduce space primary * Make sure cobol is executable * corrected name * Corrected names * Adding debug statements * modified name in link step * Changing copy name * Removed print statements for debug * Removed previous changelog * Removed unused fragment * Removed test case * Add max_rc support for module zos_tso_command (#666) * rebuilding 565 * fixing pe…
SUMMARY
Address issues:
When JCL is submitted with a job card indicating the job should only be validated with TYPRUN=SCAN the message that is returned is in this format:
This PR adds support to such that typrun=scan does not trigger a job submission failure with updated
ret_code
values:ISSUE TYPE
Collaboration
COMPONENT NAME
IBM z/OS core zos_job_submit
ADDITIONAL INFORMATION
See git issue for more details