[ANSTRAT-1640] fix: replace uri verification with role_team_assignmen… - #161
Open
rohitthakur2590 wants to merge 6 commits into
Open
[ANSTRAT-1640] fix: replace uri verification with role_team_assignmen…#161rohitthakur2590 wants to merge 6 commits into
rohitthakur2590 wants to merge 6 commits into
Conversation
…t state:exists Replace ansible.builtin.uri + ansible.builtin.assert verification pair with a single ansible.platform.role_team_assignment task using state:exists. The uri module cannot run over the ansible.platform.http connection (http-direct / http-persistent modes) because it raises NotImplementedError for exec_command. Using the native module with state:exists works correctly across all three connection modes and is the idiomatic approach. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Regression test that verifies all 2.6-style flat result key access patterns still work when running against 2.7. The 2.7 base_action.py spreads flat keys via **validated_output alongside the new nested result.<module_name>.<field> structure. This test explicitly asserts 2.6 patterns like: - org.id (not org.organization.id) - joe.id / joe.username (not joe.user.id) - team1.id (not team1.team.id) - auth.id (not auth.authenticator.id) - custom_role.id (not custom_role.role_definition.id) - rta.id / rua.id (role assignment flat keys) - app.id / app.client_id (not app.application.id) - tok.token / tok.description (token flat keys) - gateway_hostname/gateway_username connection param aliases Covers 9 modules. Runs as part of all 3 connection modes in CI. Added to tests_to_ignore in test_integration_check.py since it is not a per-module test.
Signed-off-by: Rohit <rothakur1210@gmail.com>
Signed-off-by: Rohit <rothakur1210@gmail.com>
Signed-off-by: Rohit <rothakur1210@gmail.com>
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.
…t state:exists
Replace ansible.builtin.uri + ansible.builtin.assert verification pair with a single ansible.platform.role_team_assignment task using state:exists.
The uri module cannot run over the ansible.platform.http connection (http-direct / http-persistent modes) because it raises NotImplementedError for exec_command. Using the native module with state:exists works correctly across all three connection modes and is the idiomatic approach.
Description
Type of Change
Self-Review Checklist
Testing Instructions
Prerequisites
Steps to Test
Expected Results
Additional Context
Required Actions
Screenshots/Logs