Skip to content

Conversation

@Venu-p1
Copy link

@Venu-p1 Venu-p1 commented Dec 17, 2025

Description of the Solution

Adds a new get_package_list function to the catalog parser generator module that retrieves all packages associated with a specific role or all roles from the functional layer JSON file.

Changes Made

  • catalog_parser/generator.py: Added get_package_list function
  • catalog_parser/tests/test_generator_package_list.py: Added 15 unit tests

API Changes

  • New: get_package_list(functional_layer_json_path, role=None, *, configure_logging=False, log_file=None, log_level=logging.INFO) -> List[Dict]

…ional_layer json

- Create get_package_list() function in generator.py to extract package lists for specific roles or all roles
- Add schema validation using RootLevelSchema.json before deserialization
- Implement case-insensitive role matching while preserving original role names
- Return list of role objects containing roleName and packages with fields: name, type, repo_name, architecture, uri, tag
- Add comprehensive tests, error handling and logging.
@Omnia-svc
Copy link
Collaborator

Can one of the admins verify this patch?

@abhishek-sa1
Copy link
Collaborator

run omnia-checkers

@abhishek-sa1
Copy link
Collaborator

run omnia-checkers

2 similar comments
@abhishek-sa1
Copy link
Collaborator

run omnia-checkers

@abhishek-sa1
Copy link
Collaborator

run omnia-checkers

- Modify systemctl commands and references to use lowercase service name
@abhishek-sa1
Copy link
Collaborator

run omnia-checkers

1 similar comment
@abhishek-sa1
Copy link
Collaborator

run omnia-checkers

@abhishek-sa1 abhishek-sa1 merged commit 8411ac4 into dell:pub/ATSSA Dec 18, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants