Fix idempotent Google Workspace user status updates - #128
Conversation
Co-authored-by: c1-squire-dev[bot] <c1-squire-dev[bot]@users.noreply.github.com>
| if _, _, err := c.updateUserStatus(context.Background(), args); err != nil { | ||
| t.Fatalf("updateUserStatus: %v", err) | ||
| } | ||
| if state.putCount != 0 { |
There was a problem hiding this comment.
🟡 Suggestion: This only covers the short-circuit path. A regression that made updateUserStatus always return early (e.g. the guard becoming unconditional) would still pass. Consider adding a case where the requested state differs from the current one and asserting putCount == 1 plus the resulting Suspended value, mirroring TestDisableEnableUser_IdempotentAndPayload.
Connector PR Review: Fix idempotent Google Workspace user status updatesBlocking Issues: 0 | Suggestions: 1 | Threads Resolved: 0 Review SummaryScanned the full PR diff ( Security IssuesNone found. Correctness IssuesNone found. Suggestions
Prompt for AI agents |
Summary
update_user_statusFixes: IGA-1362
Test plan
go test ./...make lint