You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
- Add test for multiple users in single group scenario
- Add test for single user belonging to multiple groups
- Add test for user referencing non-existent group (failure case)
## Test Coverage Added
- **Multiple Users, Single Group**: Validates that multiple users can be
assigned to the same group with different roles (member, owner,
manager)
- **Single User, Multiple Groups**: Verifies one user can belong to
multiple groups while ensuring they're not added to unused groups
- **Non-existent Group Reference**: Tests failure handling when users
reference groups that don't exist in the groups variable
## Technical Details
- All tests use mock provider for safe execution
- Tests validate proper role assignment and group membership creation
- Comprehensive assertions ensure group_id, email, and role mappings
work correctly
- Failure test confirms proper error handling for configuration issues
🤖 Generated with [Claude Code](https://claude.ai/code)
error_message="Expected user1 role to be 'MEMBER', got: ${googleworkspace_group_member.user_to_groups["shared-team@example.com/user1@example.com"].role}"
error_message="Expected user2 role to be 'OWNER', got: ${googleworkspace_group_member.user_to_groups["shared-team@example.com/user2@example.com"].role}"
error_message="Expected user3 role to be 'MANAGER', got: ${googleworkspace_group_member.user_to_groups["shared-team@example.com/user3@example.com"].role}"
error_message="Expected user role in dev-team to be 'MEMBER', got: ${googleworkspace_group_member.user_to_groups["dev-team@example.com/multi.group@example.com"].role}"
error_message="Expected user role in admin-team to be 'OWNER', got: ${googleworkspace_group_member.user_to_groups["admin-team@example.com/multi.group@example.com"].role}"
0 commit comments