Skip to content

Conversation

@vshanthe
Copy link
Contributor

@vshanthe vshanthe commented Dec 22, 2025

📝 Description

Added integration test for IAM
i.e /iam/users/{username}/role-permissions

✔️ How to Test

tag - iam_beta
make fixtures TEST_ARGS="-run TestIAM"

📷 Preview

If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.

Copilot AI review requested due to automatic review settings December 22, 2025 10:32
@vshanthe vshanthe requested a review from a team as a code owner December 22, 2025 10:32
@vshanthe vshanthe requested review from ezilber-akamai, jriddle-linode and zliang-akamai and removed request for a team December 22, 2025 10:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Integration tests added for IAM role-permissions and entities endpoints, including tests for retrieving and updating user permissions, listing entities, and fetching entity roles.

  • Tests for account and user role-permissions endpoints (GET, PUT)
  • Tests for entities listing and entity roles retrieval
  • Test fixtures with recorded HTTP interactions for all new test cases

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/integration/iam_roles_test.go New test file with functions to test account role permissions, user role permissions (get/update), and user account permissions
test/integration/iam_entities_test.go New test file with functions to test listing entities and retrieving entity roles
test/integration/fixtures/TestIAM_UpdateUserRolePermissions.yaml Fixture recording HTTP interactions for updating user role permissions
test/integration/fixtures/TestIAM_ListEntities.yaml Fixture recording HTTP interactions for listing entities
test/integration/fixtures/TestIAM_GetUserRolePermissions.yaml Fixture recording HTTP interactions for getting user role permissions
test/integration/fixtures/TestIAM_GetUserAccountPermissions.yaml Fixture recording HTTP interactions for getting user account permissions
test/integration/fixtures/TestIAM_GetEntityRoles.yaml Fixture recording HTTP interactions for getting entity roles
test/integration/fixtures/TestIAM_GetAccountRolePermissions.yaml Fixture recording HTTP interactions for getting account role permissions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants