Skip to content

Commit

Permalink
[Release] Staging v1.11.0-beta.1 into main (#1646)
Browse files Browse the repository at this point in the history
* Optimize the encoding

* Remove unused import

* Return encoded

* Add encoding

* Remove unused encoded

* Modified logic to remove tmp files if they exist and not only if location is local

* Added temp_file null definition

* Update 1091-Update_undocumented_argument_and_import_exception.yml

* Merge release v1.8.0 into dev branch (#1095)

* 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 <[email protected]>

* Correct typo

Signed-off-by: ddimatos <[email protected]>

* updated makefile to allow for no password in the clear and added a new host

Signed-off-by: ddimatos <[email protected]>

Signed-off-by: ddimatos <[email protected]>

* Fix a bug that failed to copy the cert to the managed node (#577)

Signed-off-by: ddimatos <[email protected]>

Signed-off-by: ddimatos <[email protected]>

* 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 <[email protected]>

Signed-off-by: ddimatos <[email protected]>

* Expand what is ingored for venv to all venv's (#613)

Signed-off-by: ddimatos <[email protected]>

Signed-off-by: ddimatos <[email protected]>

* Ansible-core versions with updated ignore file pass (#615)

* Validated that ansible-core versions with updated ignore file pass locally

Signed-off-by: ddimatos <[email protected]>

* remove redundant entry on last line

Signed-off-by: ddimatos <[email protected]>

* remove redundant entry on last line

Signed-off-by: ddimatos <[email protected]>

Signed-off-by: ddimatos <[email protected]>

* 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 <[email protected]>

* Correct the default from defaultValue to 'venv'

Signed-off-by: ddimatos <[email protected]>

* 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 <[email protected]>

* lexicographical order targets

Signed-off-by: ddimatos <[email protected]>

* Update makefile and artifacts to support new mounts

Signed-off-by: ddimatos <[email protected]>

* Removing encrypted versions of the scripts, no longer senstive content

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>

* update profile created for mount points

Signed-off-by: ddimatos <[email protected]>

* Correct f-string usage to remain 2.7 compatible (#659)

* Correct f-string usage to remain 2.7 compatible

Signed-off-by: ddimatos <[email protected]>

* Update changelog fragments

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>

* Updated shell scripts for development tooling

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Update collab template

Signed-off-by: ddimatos <[email protected]>

* Update collab template

Signed-off-by: ddimatos <[email protected]>

* Update collab template

Signed-off-by: ddimatos <[email protected]>

* Template updates

Signed-off-by: ddimatos <[email protected]>

* Template updates

Signed-off-by: ddimatos <[email protected]>

* add udpated checkbox to collab template

Signed-off-by: ddimatos <[email protected]>

* add udpated checkbox to collab template

Signed-off-by: ddimatos <[email protected]>

* add udpated checkbox to collab template

Signed-off-by: ddimatos <[email protected]>

* add udpated checkbox to collab template

Signed-off-by: ddimatos <[email protected]>

* add udpated checkbox to collab template

Signed-off-by: ddimatos <[email protected]>

* add udpated checkbox to collab template

Signed-off-by: ddimatos <[email protected]>

* 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 <[email protected]>

* Linting correction

Signed-off-by: ddimatos <[email protected]>

* Add changelog fragement for pr 683

Signed-off-by: ddimatos <[email protected]>

* Clean up comments in code

Signed-off-by: ddimatos <[email protected]>

* Update restructured text for modules and changelog fragment

Signed-off-by: ddimatos <[email protected]>

* Add support to check for security exception to job submit module

Signed-off-by: ddimatos <[email protected]>

* Add additonal logic for jobs that use typerun=scan

Signed-off-by: ddimatos <[email protected]>

* Update chnagelog fragment

Signed-off-by: ddimatos <[email protected]>

* Update zos_job_submit.py

Grammar change and correction.

---------

Signed-off-by: ddimatos <[email protected]>

* 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 <[email protected]>

* Add changelog fragement

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>

* Added additional D SYMBOLS example to zos_operator documentation (#730)

* Update zos_operator with an additional example

Signed-off-by: ddimatos <[email protected]>

* Added changelog fragment

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>

* zos_gather_facts - add sample output to RETURN docstring (#722)

* zos_gather_facts - add sample output to RETURN docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add changelog fragment

Signed-off-by: Ketan Kelkar <[email protected]>

* zos_gather_facts RETURN docstring - add sample sysplex_name and lpar_name values

Signed-off-by: Ketan Kelkar <[email protected]>

* Update generated module doc

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: Ketan Kelkar <[email protected]>
Signed-off-by: ddimatos <[email protected]>
Co-authored-by: ddimatos <[email protected]>

* 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 <[email protected]>
Co-authored-by: Demetri <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* update link to PR instead of issue

Signed-off-by: Ketan Kelkar <[email protected]>

* fix minor mistake in func test

Signed-off-by: Ketan Kelkar <[email protected]>

* update DOCstring for missed items highlighted in PR review

Signed-off-by: Ketan Kelkar <[email protected]>

* update copyright years in data set module util

Signed-off-by: Ketan Kelkar <[email protected]>

---------

Signed-off-by: Ketan Kelkar <[email protected]>

* Update changelog fragment

Signed-off-by: ddimatos <[email protected]>

* Update to doc and examples

Signed-off-by: ddimatos <[email protected]>

* Update to doc and examples

Signed-off-by: ddimatos <[email protected]>

* Update to doc and examples

Signed-off-by: ddimatos <[email protected]>

* update doc, rst

Signed-off-by: ddimatos <[email protected]>

* Update doc and examples

Signed-off-by: ddimatos <[email protected]>

* 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 pep8 issue

* corrected not in code, added functional test to use maxrc

* changing maxrc return codes as indicated

* updated copy_rexx to incorporate max_rc

* pep8 issue on an if statement

* changed test to dump intermediate values temporarily

* added max_rc to arg params to get it to pass through

* removed extra output on test

* Added changelog fragment.

* Update 565-zos_tsocommand_maxrc.yml

* PARTIAL correction based on reviewer's feedback.
Will complete later today.

* Partial push: change origrc to orig_rc and added documentation.
Added experimental loop for multiline results.
Changed error case to continue through the commands even after a failure (?!)

* Changes based on review feedback:
 - rc is actual returned value
 - origrc/orig_rc removed
 - in a list of commands, first error (considering max_rc) stops the chain
 - while processing commands, a list of success/failures are kept for error state info
 - changed listds to a longer, more complete string in example

* updated test case for max_rc to use longer, more complete listds command

* Minor pep8 and yamllint changes

* Updated string builder to use append and join, for efficiency.

* Update changelog fragment to correspond to pull request number

Signed-off-by: ddimatos <[email protected]>

* removed old fragment

Signed-off-by: ddimatos <[email protected]>

* Changed output of command-by-command to use max_rc instead of Max RC, for consistency.

* clarifying failure message when user hasn't set a max_rc.

* corrected date on copyright notice to include current year.

* corrected copyright date on test case

---------

Signed-off-by: ddimatos <[email protected]>
Co-authored-by: Demetri <[email protected]>

* added changelog fragment

Signed-off-by: ddimatos <[email protected]>

* zos_copy forward port a test case for symbols on a volume #739  (#740)

* added test case for symbols on a volume

Signed-off-by: ddimatos <[email protected]>

* Changelog fragment added

Signed-off-by: ddimatos <[email protected]>

* Update test case with added comments

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>

* Volume Initialization Module (#654)

* Adding ZOS_INIT plugins

The module and action for ZOS_Init command, under zos_ickdsf_command. Designed for version 1.3.1, and example given references removed zos_ssh.py.

* Create zos_ickdsf_command.rst

Tentative documentation. Does not quite list every return, and program may change to work with overall zos core collection.

* Update zos_ickdsf_command.py

fixed to pass pep8 sanity test.

* Update zos_ickdsf_command.py

Edited zos_ickdsf_command.py in action folder to pass pep8 style check.

* bugfix - undo hard-coded storagegroup param from command passed to mvs_raw

Signed-off-by: Ketan Kelkar <[email protected]>

* update encoding and licensing info

Signed-off-by: Ketan Kelkar <[email protected]>

* edit descriptions, leaving in old to verify messaging with dfsms team

Signed-off-by: Ketan Kelkar <[email protected]>

* remove references to buildix

Signed-off-by: Ketan Kelkar <[email protected]>

* cleanup examples docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add return docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add some unit tests

Signed-off-by: Ketan Kelkar <[email protected]>

* update dict names, some clean up

Signed-off-by: Ketan Kelkar <[email protected]>

* update interface and docs with cleaner descriptions and define default values and required true/false where applicable

Signed-off-by: Ketan Kelkar <[email protected]>

* remove init param and bring out sub-options one level

Signed-off-by: Ketan Kelkar <[email protected]>

* rename module from zos_ickdsf_command to zos_ickdsf_init

Signed-off-by: Ketan Kelkar <[email protected]>

* remove files referring to zos_ickdsf_command; i forgot to untrack these in the previous commit

Signed-off-by: Ketan Kelkar <[email protected]>

* remove params from intitial definition of results dict which are not always present, remove unused return params, rename message to msg to match ibm_zos_core and ansible style

Signed-off-by: Ketan Kelkar <[email protected]>

* add ignore missing gplv3 license warning from sanity testings to existing ignore files

Signed-off-by: Ketan Kelkar <[email protected]>

* style edits to pass sanity tests

Signed-off-by: Ketan Kelkar <[email protected]>

* add in-depth task name to first example docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add minimal params functional test

Signed-off-by: Ketan Kelkar <[email protected]>

* convert action plugin to module_util, remove IckdsfCommand and CommandInit class definitions and custom error classes, move convert method to module_util

Signed-off-by: Ketan Kelkar <[email protected]>

* rename rc param, update func test

Signed-off-by: Ketan Kelkar <[email protected]>

* add note about disabled verify_offline check

Signed-off-by: Ketan Kelkar <[email protected]>

* removed volume_address checks which can be handled by ansiblemodule parsing validation or ickdsf itself; changed function signature of convert method to include results dicts so it can pass it to fail_json method in the case of module failure

Signed-off-by: Ketan Kelkar <[email protected]>

* add invalid volume_address func tests

Signed-off-by: Ketan Kelkar <[email protected]>

* change param names, organize mvscmd return output

Signed-off-by: Ketan Kelkar <[email protected]>

* consolidate negative func tests, add negative tests for vtoc_tracks param, start list for postive tests to implement

Signed-off-by: Ketan Kelkar <[email protected]>

* add func tests for "verify_existing_volid" and "verify_no_data_sets_exist"

Signed-off-by: Ketan Kelkar <[email protected]>

* add volid positive and negative func tests

Signed-off-by: Ketan Kelkar <[email protected]>

* add mutual exclusion to no index/sms_managedw with func test, minor edits to comments

* add func tests for index param

Signed-off-by: Ketan Kelkar <[email protected]>

* add func test for vtoc_tracks param

Signed-off-by: Ketan Kelkar <[email protected]>

* remove 'addr_range', 'volid_prefix' and 'output_html' params; add example with ansible loop to init multiple serial volumes

Signed-off-by: Ketan Kelkar <[email protected]>

* convert 'content' return param to list for prettier playbook output

Signed-off-by: Ketan Kelkar <[email protected]>

* add specific examples to docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add guard rail test with volser check set to ensure target volume is as expected

Signed-off-by: Ketan Kelkar <[email protected]>

* switch target test vol to user02, remove existing data sets in initial test

Signed-off-by: Ketan Kelkar <[email protected]>

* start adding author names to docstring, edits of yaml for sanity test

Signed-off-by: Ketan Kelkar <[email protected]>

* rename module to zos_volume_init

Signed-off-by: Ketan Kelkar <[email protected]>

* remove unit test suite which was not kept up to date with code restructure

Signed-off-by: Ketan Kelkar <[email protected]>

* remove old/outdated .rst file

Signed-off-by: Ketan Kelkar <[email protected]>

* bring up to speed with v1.5.0-beta.1 which is currently more recent than dev

Signed-off-by: Ketan Kelkar <[email protected]>

* add sanity test 2.15 file

Signed-off-by: Ketan Kelkar <[email protected]>

* clean up trailing empty lines/space chars

Signed-off-by: Ketan Kelkar <[email protected]>

* more pep8 style

Signed-off-by: Ketan Kelkar <[email protected]>

* pull in more changes from latest dev branch

Signed-off-by: Ketan Kelkar <[email protected]>

* tweak tests/sanity/ignore-2.10.txt file

Signed-off-by: Ketan Kelkar <[email protected]>

* rename volume_address to address, rename verify_no_data_sets_exist to verify_volume_empty, rename verify_existing_volid to verify_volid, rename vtoc_tracks to vtoc_size, rename return param command to cmd, make suggested doc changes, switch off check_mode

Signed-off-by: Ketan Kelkar <[email protected]>

* resolve pep8 line too long issue

Signed-off-by: Ketan Kelkar <[email protected]>

* add year to copyright, add gh user name to author, restyle true/false with code rather than italics, remove backslashes in docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add changelog fragment

Signed-off-by: Ketan Kelkar <[email protected]>

* update zos_fetch test case to create data set instead of using one that gets wiped away by zos_volume_init test cases

Signed-off-by: Ketan Kelkar <[email protected]>

* address PR comments including pep8 styling, docstring changes including add seealso section, add details around authorized usage of ickdsf, some light wordsmithing, and remove cmd from return structure

Signed-off-by: Ketan Kelkar <[email protected]>

* add backticks to other special chars in docs for consistency

Signed-off-by: Ketan Kelkar <[email protected]>

* on more formatting tweak to national chars in docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add new param to support tmp_hlq

Signed-off-by: Ketan Kelkar <[email protected]>

* extend tmphlq binding to sysprint(*), disable verbose mode for mvscmd call

Signed-off-by: Ketan Kelkar <[email protected]>

* remove references to betterargparser - it cannot be used in its current state as it is too restrictive on volume serial and qualifier args

Signed-off-by: Ketan Kelkar <[email protected]>

* remove soft language ie beware, please; reduce line lengths, fix a spelling error

Signed-off-by: Ketan Kelkar <[email protected]>

* reorganize test case code for more logical grouping and un-nesting from a for loop, also update copyright year that was missed

Signed-off-by: Ketan Kelkar <[email protected]>

* update display command check to only check particular lines instead of entire output in test_volid_address_assigned_correctly which would always be positive when tested against the entire output

Signed-off-by: Ketan Kelkar <[email protected]>

---------

Signed-off-by: Ketan Kelkar <[email protected]>
Co-authored-by: trevor-glassey <[email protected]>

* Ported bugfixes for #664 and #678 from 1.5.0 (#743)

* Ported bugfixes for #664 and #678

* Updated file normalization for sequential datasets

* Fixed encoding when a remote source is used

* Added encoding normalization for record length (#664)

This is a port and tweak from the normalization found in the L2 support branch. Now the normalization applies for both local and remote source files. There is still work left to validate how this behaves when copying to partitioned datasets, and see if the normalization needs to handle directories as well.

* Refactored normalization for USS files

* Updated line endings normalization in PDSEs

* Updated create_temp_with_lf_endings

* Added tests for line endings normalization

* Added changelog fragment

* Updated changelog fragment

* Updated copyright information

* Added comments to record length tests

* Added more context to the record length normalization

* Add force (disp=shr) option to zos_lineinfile and update zos_blockinfile with the same locking test case. (#731)

* Add DISP=SHR by function force to the user

* Add helper function for force cases only for EOF inserts

* Test cases added

* Just to check in the change case

* All test cases for force in zos_lineinfile working properly

* Test cases for force blockinfile

* Fixes for style of code

* One identation error

* One identation error

* One identation error

* Documentation error

* All test cases for line infile and block infile

* Comments

* Change the stdout to assert with expected of ds

* Error of test case

* Fragment added

* Solve typo errors

* Update to remove uncessary comment

Signed-off-by: ddimatos <[email protected]>

* Update changelog fragment

Signed-off-by: ddimatos <[email protected]>

* Update module with force comments

Signed-off-by: ddimatos <[email protected]>

* Solve some test problems

* Copyright year

* Copyright year

* Add cases for other ecodes

* Add test for all encodings

* Cover all encodes test cases with force

* Blockinfile force added for other encodes and DS types

---------

Signed-off-by: ddimatos <[email protected]>
Co-authored-by: Andre Marcel Gutierrez Benitez <[email protected]>
Co-authored-by: Andre Marcel Gutierrez Benitez <[email protected]>
Co-authored-by: ddimatos <[email protected]>

* remove duplicate function (#753)

* Update branch production branch Main with release v1.5.0 content (#756) (#758)

* Bug fix to correct job log returining and other edge cases (#688)

* Update zos_job_submit to handle some edge cases and return the job log nearly always



* Linting correction



* Add changelog fragement for pr 683



* Clean up comments in code



* Update restructured text for modules and changelog fragment



* Add support to check for security exception to job submit module



* Add additonal logic for jobs that use typerun=scan



* Update chnagelog fragment



* Correct run on sentence



---------



* Added additional `D SYMBOLS` example to  zos_operator documentation (#729)

* Update zos_operator with an additional example



* Added change fragment



---------



* Ported bugfixes for #664 and #678

* Updated file normalization for sequential datasets

* Fixed encoding when a remote source is used

* Added encoding normalization for record length (#664)

This is a port and tweak from the normalization found in the L2 support branch. Now the normalization applies for both local and remote source files. There is still work left to validate how this behaves when copying to partitioned datasets, and see if the normalization needs to handle directories as well.

* Refactored normalization for USS files

* Updated line endings normalization in PDSEs

* Updated create_temp_with_lf_endings

* Added tests for line endings normalization

* Added changelog fragment

* Add copy lib member test case

* Corrected changelog fragment

* Add conflict resolution

* Update 641-copy-loadlib-member.yml

* zos_copy forward port a test case for symbols on a volume (#739)

* Add a test case for symbols using an existing volume on our test system



* Add changelog fragment



* Update 739-zos_copy-volume-symbol-test.yml

Update description to use symbols overs special chars.

* Update test case with added comments



---------



* bring in updates to zos_gather_facts RETURN docstring (#744)



* Solve problem 619 about set mode on dest file (#746)

* Solve problem 619 about set mode on dest file

* Add fragment of 746 PR

---------



* Merge release tasks for v1.5.0 into release branch (#752)

* Updated metadata

* Updated copyright information

* Updated copyright in README

* Generated changelog

* Added previous versions to changelog

* Changed a minor_change fragment to bugfix

* Updated release notes

* Update dependency finder to allow for all tests minus skip tests



* Update release notes and changelog with full date formats



---------




* remove changelog fragments no longer needed (#754)



---------

Signed-off-by: ddimatos <[email protected]>
Signed-off-by: Ketan Kelkar <[email protected]>
Co-authored-by: Ivan Moreno <[email protected]>
Co-authored-by: Fernando Flores <[email protected]>
Co-authored-by: Rich Parker <[email protected]>
Co-authored-by: ketankelkar <[email protected]>
Co-authored-by: André Marcel Gutiérrez Benítez <[email protected]>
Co-authored-by: Andre Marcel Gutierrez Benitez <[email protected]>

* Merge master to dev for 1.6.0 beta.1 (#763)

* Update branch production branch Main with release v1.5.0 content (#756)

* Bug fix to correct job log returining and other edge cases (#688)

* Update zos_job_submit to handle some edge cases and return the job log nearly always

Signed-off-by: ddimatos <[email protected]>

* Linting correction

Signed-off-by: ddimatos <[email protected]>

* Add changelog fragement for pr 683

Signed-off-by: ddimatos <[email protected]>

* Clean up comments in code

Signed-off-by: ddimatos <[email protected]>

* Update restructured text for modules and changelog fragment

Signed-off-by: ddimatos <[email protected]>

* Add support to check for security exception to job submit module

Signed-off-by: ddimatos <[email protected]>

* Add additonal logic for jobs that use typerun=scan

Signed-off-by: ddimatos <[email protected]>

* Update chnagelog fragment

Signed-off-by: ddimatos <[email protected]>

* Correct run on sentence

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>

* Added additional `D SYMBOLS` example to  zos_operator documentation (#729)

* Update zos_operator with an additional example

Signed-off-by: ddimatos <[email protected]>

* Added change fragment

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>

* Ported bugfixes for #664 and #678

* Updated file normalization for sequential datasets

* Fixed encoding when a remote source is used

* Added encoding normalization for record length (#664)

This is a port and tweak from the normalization found in the L2 support branch. Now the normalization applies for both local and remote source files. There is still work left to validate how this behaves when copying to partitioned datasets, and see if the normalization needs to handle directories as well.

* Refactored normalization for USS files

* Updated line endings normalization in PDSEs

* Updated create_temp_with_lf_endings

* Added tests for line endings normalization

* Added changelog fragment

* Add copy lib member test case

* Corrected changelog fragment

* Add conflict resolution

* Update 641-copy-loadlib-member.yml

* zos_copy forward port a test case for symbols on a volume (#739)

* Add a test case for symbols using an existing volume on our test system

Signed-off-by: ddimatos <[email protected]>

* Add changelog fragment

Signed-off-by: ddimatos <[email protected]>

* Update 739-zos_copy-volume-symbol-test.yml

Update description to use symbols overs special chars.

* Update test case with added comments

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>

* bring in updates to zos_gather_facts RETURN docstring (#744)

Signed-off-by: Ketan Kelkar <[email protected]>

* Solve problem 619 about set mode on dest file (#746)

* Solve problem 619 about set mode on dest file

* Add fragment of 746 PR

---------

Co-authored-by: Andre Marcel Gutierrez Benitez <[email protected]>

* Merge release tasks for v1.5.0 into release branch (#752)

* Updated metadata

* Updated copyright information

* Updated copyright in README

* Generated changelog

* Added previous versions to changelog

* Changed a minor_change fragment to bugfix

* Updated release notes

* Update dependency finder to allow for all tests minus skip tests

Signed-off-by: ddimatos <[email protected]>

* Update release notes and changelog with full date formats

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>
Co-authored-by: ddimatos <[email protected]>

* remove changelog fragments no longer needed (#754)

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>
Signed-off-by: Ketan Kelkar <[email protected]>
Co-authored-by: Ivan Moreno <[email protected]>
Co-authored-by: Fernando Flores <[email protected]>
Co-authored-by: Rich Parker <[email protected]>
Co-authored-by: ketankelkar <[email protected]>
Co-authored-by: André Marcel Gutiérrez Benítez <[email protected]>
Co-authored-by: Andre Marcel Gutierrez Benitez <[email protected]>

* v1.6.0-beta.1 release (#759)

* 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 <[email protected]>

* Correct typo

Signed-off-by: ddimatos <[email protected]>

* updated makefile to allow for no password in the clear and added a new host

Signed-off-by: ddimatos <[email protected]>

Signed-off-by: ddimatos <[email protected]>

* Fix a bug that failed to copy the cert to the managed node (#577)

Signed-off-by: ddimatos <[email protected]>

Signed-off-by: ddimatos <[email protected]>

* 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 <[email protected]>

Signed-off-by: ddimatos <[email protected]>

* Expand what is ingored for venv to all venv's (#613)

Signed-off-by: ddimatos <[email protected]>

Signed-off-by: ddimatos <[email protected]>

* Ansible-core versions with updated ignore file pass (#615)

* Validated that ansible-core versions with updated ignore file pass locally

Signed-off-by: ddimatos <[email protected]>

* remove redundant entry on last line

Signed-off-by: ddimatos <[email protected]>

* remove redundant entry on last line

Signed-off-by: ddimatos <[email protected]>

Signed-off-by: ddimatos <[email protected]>

* 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 <[email protected]>

* Correct the default from defaultValue to 'venv'

Signed-off-by: ddimatos <[email protected]>

* 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 <[email protected]>

* lexicographical order targets

Signed-off-by: ddimatos <[email protected]>

* Update makefile and artifacts to support new mounts

Signed-off-by: ddimatos <[email protected]>

* Removing encrypted versions of the scripts, no longer senstive content

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>

* update profile created for mount points

Signed-off-by: ddimatos <[email protected]>

* Correct f-string usage to remain 2.7 compatible (#659)

* Correct f-string usage to remain 2.7 compatible

Signed-off-by: ddimatos <[email protected]>

* Update changelog fragments

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>

* Updated shell scripts for development tooling

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Add issue template updates

Signed-off-by: ddimatos <[email protected]>

* Update collab template

Signed-off-by: ddimatos <[email protected]>

* Update collab template

Signed-off-by: ddimatos <[email protected]>

* Update collab template

Signed-off-by: ddimatos <[email protected]>

* Template updates

Signed-off-by: ddimatos <[email protected]>

* Template updates

Signed-off-by: ddimatos <[email protected]>

* add udpated checkbox to collab template

Signed-off-by: ddimatos <[email protected]>

* add udpated checkbox to collab template

Signed-off-by: ddimatos <[email protected]>

* add udpated checkbox to collab template

Signed-off-by: ddimatos <[email protected]>

* add udpated checkbox to collab template

Signed-off-by: ddimatos <[email protected]>

* add udpated checkbox to collab template

Signed-off-by: ddimatos <[email protected]>

* add udpated checkbox to collab template

Signed-off-by: ddimatos <[email protected]>

* 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 <[email protected]>

* Linting correction

Signed-off-by: ddimatos <[email protected]>

* Add changelog fragement for pr 683

Signed-off-by: ddimatos <[email protected]>

* Clean up comments in code

Signed-off-by: ddimatos <[email protected]>

* Update restructured text for modules and changelog fragment

Signed-off-by: ddimatos <[email protected]>

* Add support to check for security exception to job submit module

Signed-off-by: ddimatos <[email protected]>

* Add additonal logic for jobs that use typerun=scan

Signed-off-by: ddimatos <[email protected]>

* Update chnagelog fragment

Signed-off-by: ddimatos <[email protected]>

* Update zos_job_submit.py

Grammar change and correction.

---------

Signed-off-by: ddimatos <[email protected]>

* 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 <[email protected]>

* Add changelog fragement

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>

* Added additional D SYMBOLS example to zos_operator documentation (#730)

* Update zos_operator with an additional example

Signed-off-by: ddimatos <[email protected]>

* Added changelog fragment

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>

* zos_gather_facts - add sample output to RETURN docstring (#722)

* zos_gather_facts - add sample output to RETURN docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add changelog fragment

Signed-off-by: Ketan Kelkar <[email protected]>

* zos_gather_facts RETURN docstring - add sample sysplex_name and lpar_name values

Signed-off-by: Ketan Kelkar <[email protected]>

* Update generated module doc

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: Ketan Kelkar <[email protected]>
Signed-off-by: ddimatos <[email protected]>
Co-authored-by: ddimatos <[email protected]>

* 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 <[email protected]>
Co-authored-by: Demetri <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* update link to PR instead of issue

Signed-off-by: Ketan Kelkar <[email protected]>

* fix minor mistake in func test

Signed-off-by: Ketan Kelkar <[email protected]>

* update DOCstring for missed items highlighted in PR review

Signed-off-by: Ketan Kelkar <[email protected]>

* update copyright years in data set module util

Signed-off-by: Ketan Kelkar <[email protected]>

---------

Signed-off-by: Ketan Kelkar <[email protected]>

* Update changelog fragment

Signed-off-by: ddimatos <[email protected]>

* Update to doc and examples

Signed-off-by: ddimatos <[email protected]>

* Update to doc and examples

Signed-off-by: ddimatos <[email protected]>

* Update to doc and examples

Signed-off-by: ddimatos <[email protected]>

* update doc, rst

Signed-off-by: ddimatos <[email protected]>

* Update doc and examples

Signed-off-by: ddimatos <[email protected]>

* 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 pep8 issue

* corrected not in code, added functional test to use maxrc

* changing maxrc return codes as indicated

* updated copy_rexx to incorporate max_rc

* pep8 issue on an if statement

* changed test to dump intermediate values temporarily

* added max_rc to arg params to get it to pass through

* removed extra output on test

* Added changelog fragment.

* Update 565-zos_tsocommand_maxrc.yml

* PARTIAL correction based on reviewer's feedback.
Will complete later today.

* Partial push: change origrc to orig_rc and added documentation.
Added experimental loop for multiline results.
Changed error case to continue through the commands even after a failure (?!)

* Changes based on review feedback:
 - rc is actual returned value
 - origrc/orig_rc removed
 - in a list of commands, first error (considering max_rc) stops the chain
 - while processing commands, a list of success/failures are kept for error state info
 - changed listds to a longer, more complete string in example

* updated test case for max_rc to use longer, more complete listds command

* Minor pep8 and yamllint changes

* Updated string builder to use append and join, for efficiency.

* Update changelog fragment to correspond to pull request number

Signed-off-by: ddimatos <[email protected]>

* removed old fragment

Signed-off-by: ddimatos <[email protected]>

* Changed output of command-by-command to use max_rc instead of Max RC, for consistency.

* clarifying failure message when user hasn't set a max_rc.

* corrected date on copyright notice to include current year.

* corrected copyright date on test case

---------

Signed-off-by: ddimatos <[email protected]>
Co-authored-by: Demetri <[email protected]>

* added changelog fragment

Signed-off-by: ddimatos <[email protected]>

* zos_copy forward port a test case for symbols on a volume #739  (#740)

* added test case for symbols on a volume

Signed-off-by: ddimatos <[email protected]>

* Changelog fragment added

Signed-off-by: ddimatos <[email protected]>

* Update test case with added comments

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: ddimatos <[email protected]>

* Volume Initialization Module (#654)

* Adding ZOS_INIT plugins

The module and action for ZOS_Init command, under zos_ickdsf_command. Designed for version 1.3.1, and example given references removed zos_ssh.py.

* Create zos_ickdsf_command.rst

Tentative documentation. Does not quite list every return, and program may change to work with overall zos core collection.

* Update zos_ickdsf_command.py

fixed to pass pep8 sanity test.

* Update zos_ickdsf_command.py

Edited zos_ickdsf_command.py in action folder to pass pep8 style check.

* bugfix - undo hard-coded storagegroup param from command passed to mvs_raw

Signed-off-by: Ketan Kelkar <[email protected]>

* update encoding and licensing info

Signed-off-by: Ketan Kelkar <[email protected]>

* edit descriptions, leaving in old to verify messaging with dfsms team

Signed-off-by: Ketan Kelkar <[email protected]>

* remove references to buildix

Signed-off-by: Ketan Kelkar <[email protected]>

* cleanup examples docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add return docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add some unit tests

Signed-off-by: Ketan Kelkar <[email protected]>

* update dict names, some clean up

Signed-off-by: Ketan Kelkar <[email protected]>

* update interface and docs with cleaner descriptions and define default values and required true/false where applicable

Signed-off-by: Ketan Kelkar <[email protected]>

* remove init param and bring out sub-options one level

Signed-off-by: Ketan Kelkar <[email protected]>

* rename module from zos_ickdsf_command to zos_ickdsf_init

Signed-off-by: Ketan Kelkar <[email protected]>

* remove files referring to zos_ickdsf_command; i forgot to untrack these in the previous commit

Signed-off-by: Ketan Kelkar <[email protected]>

* remove params from intitial definition of results dict which are not always present, remove unused return params, rename message to msg to match ibm_zos_core and ansible style

Signed-off-by: Ketan Kelkar <[email protected]>

* add ignore missing gplv3 license warning from sanity testings to existing ignore files

Signed-off-by: Ketan Kelkar <[email protected]>

* style edits to pass sanity tests

Signed-off-by: Ketan Kelkar <[email protected]>

* add in-depth task name to first example docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add minimal params functional test

Signed-off-by: Ketan Kelkar <[email protected]>

* convert action plugin to module_util, remove IckdsfCommand and CommandInit class definitions and custom error classes, move convert method to module_util

Signed-off-by: Ketan Kelkar <[email protected]>

* rename rc param, update func test

Signed-off-by: Ketan Kelkar <[email protected]>

* add note about disabled verify_offline check

Signed-off-by: Ketan Kelkar <[email protected]>

* removed volume_address checks which can be handled by ansiblemodule parsing validation or ickdsf itself; changed function signature of convert method to include results dicts so it can pass it to fail_json method in the case of module failure

Signed-off-by: Ketan Kelkar <[email protected]>

* add invalid volume_address func tests

Signed-off-by: Ketan Kelkar <[email protected]>

* change param names, organize mvscmd return output

Signed-off-by: Ketan Kelkar <[email protected]>

* consolidate negative func tests, add negative tests for vtoc_tracks param, start list for postive tests to implement

Signed-off-by: Ketan Kelkar <[email protected]>

* add func tests for "verify_existing_volid" and "verify_no_data_sets_exist"

Signed-off-by: Ketan Kelkar <[email protected]>

* add volid positive and negative func tests

Signed-off-by: Ketan Kelkar <[email protected]>

* add mutual exclusion to no index/sms_managedw with func test, minor edits to comments

* add func tests for index param

Signed-off-by: Ketan Kelkar <[email protected]>

* add func test for vtoc_tracks param

Signed-off-by: Ketan Kelkar <[email protected]>

* remove 'addr_range', 'volid_prefix' and 'output_html' params; add example with ansible loop to init multiple serial volumes

Signed-off-by: Ketan Kelkar <[email protected]>

* convert 'content' return param to list for prettier playbook output

Signed-off-by: Ketan Kelkar <[email protected]>

* add specific examples to docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add guard rail test with volser check set to ensure target volume is as expected

Signed-off-by: Ketan Kelkar <[email protected]>

* switch target test vol to user02, remove existing data sets in initial test

Signed-off-by: Ketan Kelkar <[email protected]>

* start adding author names to docstring, edits of yaml for sanity test

Signed-off-by: Ketan Kelkar <[email protected]>

* rename module to zos_volume_init

Signed-off-by: Ketan Kelkar <[email protected]>

* remove unit test suite which was not kept up to date with code restructure

Signed-off-by: Ketan Kelkar <[email protected]>

* remove old/outdated .rst file

Signed-off-by: Ketan Kelkar <[email protected]>

* bring up to speed with v1.5.0-beta.1 which is currently more recent than dev

Signed-off-by: Ketan Kelkar <[email protected]>

* add sanity test 2.15 file

Signed-off-by: Ketan Kelkar <[email protected]>

* clean up trailing empty lines/space chars

Signed-off-by: Ketan Kelkar <[email protected]>

* more pep8 style

Signed-off-by: Ketan Kelkar <[email protected]>

* pull in more changes from latest dev branch

Signed-off-by: Ketan Kelkar <[email protected]>

* tweak tests/sanity/ignore-2.10.txt file

Signed-off-by: Ketan Kelkar <[email protected]>

* rename volume_address to address, rename verify_no_data_sets_exist to verify_volume_empty, rename verify_existing_volid to verify_volid, rename vtoc_tracks to vtoc_size, rename return param command to cmd, make suggested doc changes, switch off check_mode

Signed-off-by: Ketan Kelkar <[email protected]>

* resolve pep8 line too long issue

Signed-off-by: Ketan Kelkar <[email protected]>

* add year to copyright, add gh user name to author, restyle true/false with code rather than italics, remove backslashes in docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add changelog fragment

Signed-off-by: Ketan Kelkar <[email protected]>

* update zos_fetch test case to create data set instead of using one that gets wiped away by zos_volume_init test cases

Signed-off-by: Ketan Kelkar <[email protected]>

* address PR comments including pep8 styling, docstring changes including add seealso section, add details around authorized usage of ickdsf, some light wordsmithing, and remove cmd from return structure

Signed-off-by: Ketan Kelkar <[email protected]>

* add backticks to other special chars in docs for consistency

Signed-off-by: Ketan Kelkar <[email protected]>

* on more formatting tweak to national chars in docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add new param to support tmp_hlq

Signed-off-by: Ketan Kelkar <[email protected]>

* extend tmphlq binding to sysprint(*), disable verbose mode for mvscmd call

Signed-off-by: Ketan Kelkar <[email protected]>

* remove references to betterargparser - it cannot be used in its current state as it is too restrictive on volume serial and qualifier args

Signed-off-by: Ketan Kelkar <[email protected]>

* remove soft language ie beware, please; reduce line lengths, fix a spelling error

Signed-off-by: Ketan Kelkar <[email protected]>

* reorganize test case code for more logical grouping and un-nesting from a for loop, also update copyright year that was missed

Signed-off-by: Ketan Kelkar <[email protected]>

* update display command check to only check particular lines instead of entire output in test_volid_address_assigned_correctly which would always be positive when tested against the entire output

Signed-off-by: Ketan Kelkar <[email protected]>

---------

Signed-off-by: Ketan Kelkar <[email protected]>
Co-authored-by: trevor-glassey <[email protected]>

* Ported bugfixes for #664 and #678 from 1.5.0 (#743)

* Ported bugfixes for #664 and #678

* Updated file normalization for sequential datasets

* Fixed encoding when a remote source is used

* Added encoding normalization for record length (#664)

This is a port and tweak from the normalization found in the L2 support branch. Now the normalization applies for both local and remote source files. There is still work left to validate how this behaves when copying to partitioned datasets, and see if the normalization needs to handle directories as well.

* Refactored normalization for USS files

* Updated line endings normalization in PDSEs

* Updated create_temp_with_lf_endings

* Added tests for line endings normalization

* Added changelog fragment

* Updated changelog fragment

* Updated copyright information

* Added comments to record length tests

* Added more context to the record length normalization

* Add force (disp=shr) option to zos_lineinfile and update zos_blockinfile with the same locking test case. (#731)

* Add DISP=SHR by function force to the user

* Add helper function for force cases only for EOF inserts

* Test cases added

* Just to check in the change case

* All test cases for force in zos_lineinfile working properly

* Test cases for force blockinfile

* Fixes for style of code

* One identation error

* One identation error

* One identation error

* Documentation error

* All test cases for line infile and block infile

* Comments

* Change the stdout to assert with expected of ds

* Error of test case

* Fragment added

* Solve typo errors

* Update to remove uncessary comment

Signed-off-by: ddimatos <[email protected]>

* Update changelog fragment

Signed-off-by: ddimatos <[email protected]>

* Update module with force comments

Signed-off-by: ddimatos <[email protected]>

* Solve some test problems

* Copyright year

* Copyright year

* Add cases for other ecodes

* Add test for all encodings

* Cover all encodes test cases with force

* Blockinfile force added for other encodes and DS types

---------

Signed-off-by: ddimatos <[email protected]>
Co-authored-by: Andre Marcel Gutierrez Benitez <[email protected]>
Co-authored-by: Andre Marcel Gutierrez Benitez <[email protected]>
Co-authored-by: ddimatos <[email protected]>

* remove duplicate function (#753)

* Update branch production branch Main with release v1.5.0 content (#756) (#758)

* Bug fix to correct job log returining and other edge cases (#688)

* Update zos_job_submit to handle some edge cases and return the job log nearly always



* Linting correction



* Add changelog fragement for pr 683



* Clean up comments in code



* Update restructured text for modules and changelog fragment



* Add support to check for security exception to job submit module



* Add additonal logic for jobs that use typerun=scan



* Update chnagelog fragment



* Correct run on sentence



---------



* Added additional `D SYMBOLS` example to  zos_operator documentation (#729)

* Update zos_operator with an additional example



* Added change fragment



---------



* Ported bugfixes for #664 and #678

* Updated file normalization for sequential datasets

* Fixed encoding when a remote source is used

* Added encoding normalization for record length (#664)

This is a port and tweak from the normalization found in the L2 support branch. Now the normalization applies for both local and remote source files. There is still work left to validate how this behaves when copying to partitioned datasets, and see if the normalization needs to handle directories as well.

* Refactored normalization for USS files

* Updated line endings normalization in PDSEs

* Updated create_temp_with_lf_endings

* Added tests for line endings normalization

* Added changelog fragment

* Add copy lib member test case

* Corrected changelog fragment

* Add conflict resolution

* Update 641-copy-loadlib-member.yml

* zos_copy forward port a test case for symbols on a volume (#739)

* Add a test case for symbols using an existing volume on our test system



* Add changelog fragment



* Update 739-zos_copy-volume-symbol-test.yml

Update description to use symbols overs special chars.

* Update test case with added comments



---------



* bring in updates to zos_gather_facts RETURN docstring (#744)



* Solve problem 619 about set mode on dest file (#746)

* Solve problem 619 about set mode on dest file

* Add fragment of 746 PR

---------



* Merge release tasks for v1.5.0 into release branch (#752)

* Updated metadata

* Updated copyright information

* Updated copyright in README

* Generated changelog

* Added previous versions to changelog

* Changed a minor_change fragment to bugfix

* Updated release notes

* Update dependency finder to allow for all tests minus skip tests



* Update release notes and changelog with full date formats



---------




* remove changelog fragments no longer needed (#754)



---------

Signed-off-by: ddimatos <[email protected]>
Signed-off-by: Ketan Kelkar <[email protected]>
Co-authored-by: Ivan Moreno <[email protected]>
Co-authored-by: Fernando Flores <[email protected]>
Co-authored-by: Rich Parker <[email protected]>
Co-authored-by: ketankelkar <[email protected]>
Co-authored-by: André Marcel Gutiérrez Benítez <[email protected]>
Co-authored-by: Andre Marcel Gutierrez Benitez <[email protected]>

* update galaxy and meta/ files

Signed-off-by: Ketan Kelkar <[email protected]>

* update copyright years

Signed-off-by: Ketan Kelkar <[email protected]>

* update rst doc files

Signed-off-by: Ketan Kelkar <[email protected]>

* add 1.6.0-beta.1 release summary fragment

Signed-off-by: Ketan Kelkar <ktnklkr@gm…
  • Loading branch information
11 people authored Aug 12, 2024
1 parent c8992a7 commit 58cda22
Show file tree
Hide file tree
Showing 102 changed files with 13,997 additions and 4,808 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ac-module-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: AC Module Doc

on:
pull_request:
paths:
- 'plugins/modules/*'
branches:
- dev
- staging*

jobs:
module-doc:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up python
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Set up venv
run: |
python -m pip install --upgrade pip
pip install virtualenv
mkdir venv
virtualenv venv/venv-2.16
- name: Install dependencies
run: |
source venv/venv-2.16/bin/activate
pip install ansible
pip install ansible-doc-extractor
- name: Run ac-module-doc
run: |
source venv/venv-2.16/bin/activate
export ANSIBLE_LIBRARY=/home/runner/work/ibm_zos_core/ibm_zos_core/plugins/modules/
./ac --ac-build
./ac --ac-module-doc
45 changes: 45 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,51 @@ ibm.ibm\_zos\_core Release Notes

.. contents:: Topics

v1.11.0-beta.1
==============

Release Summary
---------------

Release Date: '2024-08-05'
This changelog describes all changes made to the modules and plugins included
in this collection. The release date is the date the changelog is created.
For additional details such as required dependencies and availability review
the collections `release notes <https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html>`__

Minor Changes
-------------

- zos_apf - Change input to auto-escape 'library' names containing symbols (https://github.com/ansible-collections/ibm_zos_core/pull/1493).
- zos_archive - Added support for GDG and GDS relative name notation to archive data sets. Added support for data set names with special characters like $, /#, /- and @. (https://github.com/ansible-collections/ibm_zos_core/pull/1511).
- zos_backup_restore - Added support for GDS relative name notation to include or exclude data sets when operation is backup. Added support for data set names with special characters like $, /#, and @. (https://github.com/ansible-collections/ibm_zos_core/pull/1527).
- zos_blockinfile - Added support for GDG and GDS relative name notation to use a data set. And backup in new generations. Added support for data set names with special characters like $, /#, /- and @. (https://github.com/ansible-collections/ibm_zos_core/pull/1516).
- zos_copy - add support for copying generation data sets (GDS) and generation data groups (GDG), as well as using a GDS for backup. (https://github.com/ansible-collections/ibm_zos_core/pull/1564).
- zos_data_set - Added support for GDG and GDS relative name notation to create, delete, catalog and uncatalog a data set. Added support for data set names with special characters like $, /#, /- and @. (https://github.com/ansible-collections/ibm_zos_core/pull/1504).
- zos_encode - add support for encoding generation data sets (GDS), as well as using a GDS for backup. (https://github.com/ansible-collections/ibm_zos_core/pull/1531).
- zos_fetch - add support for fetching generation data groups and generation data sets. (https://github.com/ansible-collections/ibm_zos_core/pull/1519)
- zos_find - added support for GDG/GDS and special characters (https://github.com/ansible-collections/ibm_zos_core/pull/1518).
- zos_job_submit - Improved the copy to remote mechanic to avoid using deepcopy that could result in failure for some systems. (https://github.com/ansible-collections/ibm_zos_core/pull/1561).
- zos_job_submit - add support for generation data groups and generation data sets as sources for jobs. (https://github.com/ansible-collections/ibm_zos_core/pull/1497)
- zos_lineinfile - Added support for GDG and GDS relative name notation to use a data set. And backup in new generations. Added support for data set names with special characters like $, /#, /- and @. (https://github.com/ansible-collections/ibm_zos_core/pull/1516).
- zos_mount - Added support for data set names with special characters ($, /#, /- and @). This is for both src and backup data set names. (https://github.com/ansible-collections/ibm_zos_core/pull/1631).
- zos_tso_command - Added support for GDG and GDS relative name notation to use a data set name. Added support for data set names with special characters like $, /#, /- and @. (https://github.com/ansible-collections/ibm_zos_core/pull/1563).
- zos_mvs_raw - Added support for GDG and GDS relative name notation to use a data set. Added support for data set names with special characters like $, /#, /- and @. (https://github.com/ansible-collections/ibm_zos_core/pull/1525).
- zos_mvs_raw - Added support for GDG and GDS relative positive name notation to use a data set. (https://github.com/ansible-collections/ibm_zos_core/pull/1541).
- zos_mvs_raw - Redesign the wrappers of dd clases to use properly the arguments. (https://github.com/ansible-collections/ibm_zos_core/pull/1470).
- zos_script - Improved the copy to remote mechanic to avoid using deepcopy that could result in failure for some systems. (https://github.com/ansible-collections/ibm_zos_core/pull/1561).
- zos_unarchive - Added support for data set names with special characters like $, /#, /- and @. (https://github.com/ansible-collections/ibm_zos_core/pull/1511).
- zos_unarchive - Improved the copy to remote mechanic to avoid using deepcopy that could result in failure for some systems. (https://github.com/ansible-collections/ibm_zos_core/pull/1561).

Bugfixes
--------

- module_util/data_set.py - DataSet.data_set_cataloged function previously only returned True or False, but failed to account for exceptions which occurred during the LISTCAT. The fix now raises an MVSCmdExecError if the return code from LISTCAT is too high. (https://github.com/ansible-collections/ibm_zos_core/pull/1535).
- zos_copy - a regression in version 1.4.0 made the module stop automatically computing member names when copying a single file into a PDS/E. Fix now lets a user copy a single file into a PDS/E without adding a member in the dest option. (https://github.com/ansible-collections/ibm_zos_core/pull/1570).
- zos_copy - module would use opercmd to check if a non existent destination data set is locked. Fix now only checks if the destination is already present. (https://github.com/ansible-collections/ibm_zos_core/pull/1623).
- zos_job_submit - Was not propagating any error types UnicodeDecodeError, JSONDecodeError, TypeError, KeyError when encountered, now the error message shares the type error. (https://github.com/ansible-collections/ibm_zos_core/pull/1560).
- zos_mvs_raw - DD_output first character from each line was missing. Change now includes the first character of each line. (https://github.com/ansible-collections/ibm_zos_core/pull/1543).

v1.10.0
=======

Expand Down
33 changes: 17 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ To upgrade the collection to the latest available version, run the following com
ansible-galaxy collection install ibm.ibm_zos_core --upgrade
```

<br/>You can also install a specific version of the collection, for example, if you need to downgrade when something is broken in the latest version (please report an issue in this repository). Use the following syntax to install version 1.0.0:
<br/>You can also install a specific version of the collection, for example, if you need to install a different version. Use the following syntax to install version 1.0.0:

```sh
ansible-galaxy collection install ibm.ibm_zos_core:1.0.0
Expand Down Expand Up @@ -123,19 +123,20 @@ environment_vars:

## Testing

All releases, including betas will meet the following test criteria.
All releases will meet the following test criteria.

* 100% success for [Functional](https://github.com/ansible-collections/ibm_zos_core/tree/dev/tests/functional) tests.
* 100% success for [Unit](https://github.com/ansible-collections/ibm_zos_core/tree/dev/tests/unit) tests.
* 100% success for [Sanity](https://docs.ansible.com/ansible/latest/dev_guide/testing/sanity/index.html#all-sanity-tests) tests as part of[ansible-test](https://docs.ansible.com/ansible/latest/dev_guide/testing.html#run-sanity-tests).
* 100% success for [pyflakes](https://github.com/PyCQA/pyflakes/blob/main/README.rst).
* 100% success for [ansible-lint](https://ansible.readthedocs.io/projects/lint/) allowing only false positives.

<br/>This release of the collection was tested with following dependencies.

* ansible-core v2.15.x
* Python 3.9.x
* Python 3.11.x
* IBM Open Enterprise SDK for Python 3.11.x
* IBM Z Open Automation Utilities (ZOAU) 1.3.0.x
* IBM Z Open Automation Utilities (ZOAU) 1.3.1.x
* z/OS V2R5

This release introduces case sensitivity for option values and includes a porting guide in the [release notes](https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html) to assist with which option values will need to be updated.
Expand All @@ -153,9 +154,8 @@ If you would like to communicate with this community, you can do so through the
* GitHub [discussions](https://github.com/ansible-collections/ibm_zos_core/discussions).
* GitHub [issues](https://github.com/ansible-collections/ibm_zos_core/issues/new/choose).
* [Ansible Forum](https://forum.ansible.com/), please use the `zos` tag to ensure proper awareness.
* Discord [System Z Enthusiasts](https://forum.ansible.com/) room [ansible](https://discord.gg/nKC8F89v).
* Matrix Ansible room [ansible-zos](#ansible-zos:matrix.org).
* Ansible community Matrix [rooms](https://docs.ansible.com/ansible/latest/community/communication.html#general-channels).
* Discord [System Z Enthusiasts](https://discord.gg/Kmy5QaUGbB) room [ansible](https://discord.gg/nHrDdRTC).
* Matrix general usage questions [room](https://matrix.to/#/#users:ansible.com).

## Support

Expand All @@ -175,15 +175,16 @@ For Galaxy and GitHub users, to see the supported ansible-core versions, review

<br/>The collection's changelogs can be reviewed in the following table.

| Version | Status | Release notes | Changelogs |
|----------|----------------------------|---------------|------------|
| 1.11.x | In development (unreleased)| unreleased | unreleased |
| 1.10.x | Current | [Release notes](https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html#version-1-10-0) | [Changelogs](https://github.com/ansible-collections/ibm_zos_core/blob/v1.10.0/CHANGELOG.rst) |
| 1.9.x | Released | [Release notes](https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html#version-1-9-0) | [Changelogs](https://github.com/ansible-collections/ibm_zos_core/blob/v1.9.0/CHANGELOG.rst) |
| 1.8.x | Released | [Release notes](https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html#version-1-8-0) | [Changelogs](https://github.com/ansible-collections/ibm_zos_core/blob/v1.8.0/CHANGELOG.rst) |
| 1.7.x | Released | [Release notes](https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html#version-1-7-0) | [Changelogs](https://github.com/ansible-collections/ibm_zos_core/blob/v1.7.0/CHANGELOG.rst) |
| 1.6.x | Released | [Release notes](https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html#version-1-6-0) | [Changelogs](https://github.com/ansible-collections/ibm_zos_core/blob/v1.6.0/CHANGELOG.rst) |
| 1.5.x | Released | [Release notes](https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html#version-1-5-0) | [Changelogs](https://github.com/ansible-collections/ibm_zos_core/blob/v1.5.0/CHANGELOG.rst) |
| Version | Status | Release notes | Changelogs |
|----------|----------------|---------------|------------|
| 1.12.x | In development | unreleased | unreleased |
| 1.11.x | In preview | [Release notes](https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html#version-1-11-0-beta.1) | [Changelogs](https://github.com/ansible-collections/ibm_zos_core/blob/v1.11.0-beta.1/CHANGELOG.rst) |
| 1.10.x | Current | [Release notes](https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html#version-1-10-0) | [Changelogs](https://github.com/ansible-collections/ibm_zos_core/blob/v1.10.0/CHANGELOG.rst) |
| 1.9.x | Released | [Release notes](https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html#version-1-9-2) | [Changelogs](https://github.com/ansible-collections/ibm_zos_core/blob/v1.9.2/CHANGELOG.rst) |
| 1.8.x | Released | [Release notes](https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html#version-1-8-0) | [Changelogs](https://github.com/ansible-collections/ibm_zos_core/blob/v1.8.0/CHANGELOG.rst) |
| 1.7.x | Released | [Release notes](https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html#version-1-7-0) | [Changelogs](https://github.com/ansible-collections/ibm_zos_core/blob/v1.7.0/CHANGELOG.rst) |
| 1.6.x | Released | [Release notes](https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html#version-1-6-0) | [Changelogs](https://github.com/ansible-collections/ibm_zos_core/blob/v1.6.0/CHANGELOG.rst) |
| 1.5.x | Released | [Release notes](https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html#version-1-5-0) | [Changelogs](https://github.com/ansible-collections/ibm_zos_core/blob/v1.5.0/CHANGELOG.rst) |

## Related Information

Expand Down
Loading

0 comments on commit 58cda22

Please sign in to comment.