Skip to content

Commit

Permalink
simplify & improve test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Lou DeGenaro <[email protected]>
  • Loading branch information
degenaro committed Jan 6, 2025
1 parent 4d47d48 commit 3997788
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Binary file not shown.
11 changes: 11 additions & 0 deletions tests/trestle/tasks/cis_xlsx_to_oscal_cd_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ def test_cis_xlsx_to_oscal_cd_execute(tmp_path: pathlib.Path):
_validate_db2(tmp_path)


def test_cis_xlsx_to_oscal_cd_execute_combined(tmp_path: pathlib.Path):
"""Test execute call - db2."""
section = _get_section(tmp_path, db2_config)
section['benchmark-file'
] = 'tests/data/tasks/cis-xlsx-to-oscal-cd/CIS_IBM_Db2_11_Benchmark_v1.1.0.snippet_combined.xlsx'
tgt = cis_xlsx_to_oscal_cd.CisXlsxToOscalCd(section)
retval = tgt.execute()
assert retval == TaskOutcome.SUCCESS
_validate_db2(tmp_path)


def test_cis_xlsx_to_oscal_cd_execute_bad_config(tmp_path: pathlib.Path):
"""Test execute call - bad config."""
section = _get_section(tmp_path, db2_config)
Expand Down

0 comments on commit 3997788

Please sign in to comment.