Skip to content

Commit

Permalink
Merge pull request ansible-collections#131 from CICS/units-global-cat
Browse files Browse the repository at this point in the history
Global Catalog Unit tests
  • Loading branch information
AndrewTwydell authored and GitHub Enterprise committed Dec 19, 2023
2 parents ee3972d + bcd27af commit 5e1b0a7
Show file tree
Hide file tree
Showing 2 changed files with 394 additions and 5 deletions.
14 changes: 9 additions & 5 deletions plugins/module_utils/global_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@ def _run_dfhrmutl(location, sdfhload, cmd=""):
executions = []

for x in range(10):
dfhrmutl_response = MVSCmd.execute(
pgm="DFHRMUTL",
dds=_get_rmutl_dds(location=location, sdfhload=sdfhload, cmd=cmd),
verbose=True,
debug=False)
dfhrmutl_response = _execute_dfhrmutl(location, sdfhload, cmd)
executions.append(
_execution(
name="DFHRMUTL - {0} - Run {1}".format(
Expand Down Expand Up @@ -123,6 +119,14 @@ def _run_dfhrmutl(location, sdfhload, cmd=""):
return executions, _get_catalog_records(dfhrmutl_response.stdout)


def _execute_dfhrmutl(location, sdfhload, cmd=""):
return MVSCmd.execute(
pgm="DFHRMUTL",
dds=_get_rmutl_dds(location=location, sdfhload=sdfhload, cmd=cmd),
verbose=True,
debug=False)


def _get_idcams_cmd_gcd(dataset):
defaults = {
"CLUSTER": {
Expand Down
Loading

0 comments on commit 5e1b0a7

Please sign in to comment.