IAM: Migrate OIDC Operations#13800
Conversation
LocalStack Community integration with Pro 2 files 2 suites 3m 1s ⏱️ For more details on these failures, see this check. Results for commit c1880ac. ♻️ This comment has been updated with latest results. |
Test Results (amd64) - Integration, Bootstrap 5 files ± 0 5 suites ±0 11m 47s ⏱️ - 2h 33m 34s For more details on these failures, see this check. Results for commit c1880ac. ± Comparison against base commit 00594bb. ♻️ This comment has been updated with latest results. |
| if host.startswith("https://"): | ||
| host = host[8:] | ||
| elif host.startswith("http://"): | ||
| host = host[7:] | ||
| # Remove trailing slash | ||
| host = host.rstrip("/") |
There was a problem hiding this comment.
nit: urlparse or a simple split on "://" might have been easier, but it's fine 😅
| # Handle marker-based pagination | ||
| if marker: | ||
| # Marker is the index (0-based) as a string | ||
| try: | ||
| start_index = int(marker) | ||
| except ValueError: | ||
| start_index = 0 | ||
|
|
||
| # Apply pagination | ||
| if max_items: | ||
| end_index = start_index + max_items | ||
| paginated_tags = tags[start_index:end_index] | ||
| is_truncated = end_index < len(tags) | ||
| else: | ||
| paginated_tags = tags[start_index:] | ||
| is_truncated = False | ||
|
|
||
| response = ListOpenIDConnectProviderTagsResponse( | ||
| Tags=paginated_tags, | ||
| IsTruncated=is_truncated, | ||
| ) |
There was a problem hiding this comment.
We should use the PaginatedList here!
Co-authored-by: Daniel Fangl <daniel.fangl@localstack.cloud>
Co-authored-by: Daniel Fangl <daniel.fangl@localstack.cloud>
Co-authored-by: Daniel Fangl <daniel.fangl@localstack.cloud>
Co-authored-by: Daniel Fangl <daniel.fangl@localstack.cloud>
Motivation
As per the IAM internalization project. This pr implements the operations and resources required for OpenID connector provider management in the IAM service.
Changes
thumbprint_list, tags
Tests
All the recently added tests for OIDC must be pass.
Merge after #13794