Add feature_flag module for Automation Platform Gateway#95
Merged
rohitthakur2590 merged 3 commits intoansible:develfrom Nov 25, 2025
Merged
Add feature_flag module for Automation Platform Gateway#95rohitthakur2590 merged 3 commits intoansible:develfrom
rohitthakur2590 merged 3 commits intoansible:develfrom
Conversation
7e08980 to
859c5e9
Compare
Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
cb5e393 to
89ce3be
Compare
This commit adds a new Ansible module for managing feature flags in the Automation Platform Gateway. The module allows users to view and update runtime feature flags while providing appropriate validation and error handling for different flag types and states. Key features: - Support for checking, enabling, and disabling runtime feature flags - Validation that prevents modification of install-time flags - Boolean value validation for boolean condition flags - Comprehensive integration tests with error handling scenarios - Example playbook demonstrating usage patterns 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
- Simplify error message assertion to match actual API behavior - The API returns validation errors one at a time, not all at once - Fix typo: "Rereate" -> "Recreate" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
|
DVCS PR Check Results: PR appears valid (JIRA key(s) found) |
rohitthakur2590
approved these changes
Nov 25, 2025
Member
Author
|
@rohitthakur2590 could you please merge? |
nickbhasin
pushed a commit
to nickbhasin/ansible.platform
that referenced
this pull request
Jan 7, 2026
* Explicitly error when getting gateway/DAB PRs fail Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED * AAP-45878 - Add feature_flag module for Automation Platform Gateway This commit adds a new Ansible module for managing feature flags in the Automation Platform Gateway. The module allows users to view and update runtime feature flags while providing appropriate validation and error handling for different flag types and states. Key features: - Support for checking, enabling, and disabling runtime feature flags - Validation that prevents modification of install-time flags - Boolean value validation for boolean condition flags - Comprehensive integration tests with error handling scenarios - Example playbook demonstrating usage patterns 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED * Fix authenticator_maps_test validation error handling - Simplify error message assertion to match actual API behavior - The API returns validation errors one at a time, not all at once - Fix typo: "Rereate" -> "Recreate" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
feature_flagmodule to manage Automation Platform Gateway feature flagsThis PR introduces comprehensive support for feature flag management, including:
ansible.platform.feature_flagmodule for managing AAP Gateway feature flagsAAPFeatureFlag) with proper API integrationType of Change
Self-Review Checklist
Testing Instructions
Prerequisites
RUNTIME_FEATURE_FLAGS=True)Steps to Test
Basic Functionality Test
Integration Test
Install the collection locally:
Run the feature flag integration tests:
Manual Module Testing
Check if a feature flag exists:
Update a runtime feature flag:
Expected Results
existsstatepresentstateAdditional Context
Key Features
exists,present,enforced, andabsentstates (thoughabsentis blocked for safety)Implementation Details
AAPObjectbase classAPI Integration
/api/gateway/v1/feature_flags/endpointRequired Actions
Screenshots/Logs
Module output example:
{ "id": 1, "name": "FEATURE_EXAMPLE_ENABLED", "ui_name": "Example Feature", "condition": "boolean", "value": "True", "toggle_type": "run-time", "description": "Enables example functionality", "changed": true }