Skip to content

Commit

Permalink
HMS-2056 fix: add org_id fallback to builder
Browse files Browse the repository at this point in the history
Add org_id fallback to the user and system identity builders.

Signed-off-by: Alejandro Visiedo <[email protected]>
  • Loading branch information
avisiedo committed Nov 30, 2023
1 parent ed8bc33 commit 68a0b58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/test/builder/api/builder_system_xrhid.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func (b *systemXRHID) Build() identity.XRHID {

func (b *systemXRHID) WithOrgID(value string) SystemXRHID {
b.Identity.OrgID = value
b.Identity.Internal.OrgID = value
return b
}

Expand Down
1 change: 1 addition & 0 deletions internal/test/builder/api/builder_user_xrhid.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func (b *userXRHID) Build() identity.XRHID {

func (b *userXRHID) WithOrgID(value string) UserXRHID {
b.Identity.OrgID = value
b.Identity.Internal.OrgID = value
return b
}

Expand Down

0 comments on commit 68a0b58

Please sign in to comment.