Skip to content

Align Python Search Tests with search return codes#216

Closed
yinjie-z wants to merge 1 commit into
Mainframe-Renewal-Project:devfrom
yinjie-z:fix/python-return-codes
Closed

Align Python Search Tests with search return codes#216
yinjie-z wants to merge 1 commit into
Mainframe-Renewal-Project:devfrom
yinjie-z:fix/python-return-codes

Conversation

@yinjie-z

@yinjie-z yinjie-z commented Mar 11, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR updates the Python unit test suite to differentiate between a successful data retrieval (0,0,0,0) and a successful empty result (4,4,4,0).

Previously, all successful searches were asserting against a hardcoded 4,4,4 state. Following the core logic update, searches that return profiles now provide a standard success code.

Changes

Updated Assertions: Refactored test_search_resource_profiles_nonexistent_class, test_search_resource_profiles_all and test_search_resource_profiles_filter to use the correct return code constants based on whether profiles are expected.

  • Use successful_return_codes when the result list contains profiles.
  • Use empty_return_codes_search when the result list is empty.

Need to run the tests in zos before merging

Ref #215

@github-actions github-actions Bot added the tests This tag is for pull requests and issues relating to unit tests or functional tests label Mar 11, 2026
@yinjie-z yinjie-z force-pushed the fix/python-return-codes branch from 2cb9f71 to fdc1317 Compare March 15, 2026 18:30
@yinjie-z yinjie-z changed the base branch from dev to main March 15, 2026 18:43
@yinjie-z yinjie-z changed the base branch from main to dev March 15, 2026 18:43
@yinjie-z yinjie-z closed this Mar 15, 2026
@yinjie-z yinjie-z deleted the fix/python-return-codes branch March 23, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests This tag is for pull requests and issues relating to unit tests or functional tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant