Skip to content

Integrations for IAM role-permissions and Entities #838

Closed
vshanthe wants to merge 5 commits into
mainfrom
iam_tests
Closed

Integrations for IAM role-permissions and Entities #838
vshanthe wants to merge 5 commits into
mainfrom
iam_tests

Conversation

@vshanthe
Copy link
Copy Markdown
Contributor

📝 Description

Integrations for IAM role-permissions and Entities

✔️ How to Test

Test Against Devcloud using API TOKEN
and URL - api.devcloud.linode.com
test-int TEST_ARGS="-run TestIAM"

📷 Preview

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

jriddle-linode and others added 2 commits June 3, 2025 10:51
## 📝 Description

**What does this PR do and why is this change necessary?**

Implements:
- **GET** /entities
- **GET** /iam/role-permissions
- **GET** /iam/users/{username}/role-permissions
- **PUT** /iam/users/{username}/role-permissions

## ✔️ How to Test

**How do I run the relevant unit/integration tests?**

```bash
make TEST_ARGS='-run TestIAM' test-unit
```
```bash
make TEST_ARGS='-run TestEntities' test-unit
```
@vshanthe vshanthe requested a review from a team as a code owner October 14, 2025 11:36
@vshanthe vshanthe requested review from Copilot, ezilber-akamai and zliang-akamai and removed request for a team October 14, 2025 11:36
Copy link
Copy Markdown
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

This PR adds integration tests for IAM role-permissions and entity management endpoints. The tests verify the functionality of retrieving account and user role permissions, updating user permissions, and listing entities.

Key changes:

  • Added integration tests for IAM role permissions (get account/user permissions, update user permissions)
  • Added integration test for listing IAM entities
  • Added test fixtures (YAML files) containing HTTP request/response recordings for the tests

Reviewed Changes

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

Show a summary per file
File Description
test/integration/iam_roles_test.go Integration tests for getting and updating account/user role permissions
test/integration/iam_entities_test.go Integration test for listing entities across the account
test/integration/fixtures/TestIAM_GetAccountRolePermissions.yaml HTTP recording fixture for account role permissions test
test/integration/fixtures/TestIAM_GetUserRolePermissions.yaml HTTP recording fixture for user role permissions test
test/integration/fixtures/TestIAM_UpdateUserRolePermissions.yaml HTTP recording fixture for updating user permissions test
test/integration/fixtures/TestIAM_ListEntities.yaml HTTP recording fixture for entities listing test

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

ezilber-akamai
ezilber-akamai previously approved these changes Nov 13, 2025
Copy link
Copy Markdown
Contributor

@ezilber-akamai ezilber-akamai left a comment

Choose a reason for hiding this comment

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

Tests passed locally! CI failures should be fixed by merging main back into the project branch later down the line.

@zliang-akamai
Copy link
Copy Markdown
Member

zliang-akamai commented Nov 25, 2025

Merging main into iam here (pending reviews): #856

Base automatically changed from proj/iam to main December 16, 2025 18:30
@jriddle-linode jriddle-linode dismissed ezilber-akamai’s stale review December 16, 2025 18:30

The base branch was changed.

@vshanthe
Copy link
Copy Markdown
Contributor Author

since some of the function name changed closing this PR and raising new PR with new endpoints added

@vshanthe vshanthe closed this Dec 22, 2025
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.

5 participants