From ab13ad6276bba8507d57675d9a3148c906064b8c Mon Sep 17 00:00:00 2001 From: Ivan Date: Thu, 13 Apr 2023 15:09:45 -0400 Subject: [PATCH] Update stub --- .../dsde/workbench/sam/provider/SamProviderSpec.scala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pact4s/src/test/scala/org/broadinstitute/dsde/workbench/sam/provider/SamProviderSpec.scala b/pact4s/src/test/scala/org/broadinstitute/dsde/workbench/sam/provider/SamProviderSpec.scala index e90eceeaf..4408b3909 100644 --- a/pact4s/src/test/scala/org/broadinstitute/dsde/workbench/sam/provider/SamProviderSpec.scala +++ b/pact4s/src/test/scala/org/broadinstitute/dsde/workbench/sam/provider/SamProviderSpec.scala @@ -53,9 +53,10 @@ class SamProviderSpec extends AnyFlatSpec with ScalatestRouteTest with MockTestS when( userService.getUserStatusInfo(any[SamUser], any[SamRequestContext]) ).thenAnswer((i: InvocationOnMock) => { - val userSubjectIdArg = i.getArgument[SamUser](0).googleSubjectId.get.value - val emailArg = i.getArgument[SamUser](0).email.value - val enabledArg = i.getArgument[SamUser](0).enabled + val samUser = i.getArgument[SamRequestContext](1).samUser.get + val userSubjectIdArg = samUser.googleSubjectId.get.value + val emailArg = samUser.email.value + val enabledArg = samUser.enabled IO.pure(UserStatusInfo(userSubjectIdArg, emailArg, enabledArg, false)) })