@@ -765,8 +765,8 @@ func (s *CustomerHandlerTestSuite) TestGetByUsageAttribution(ctx context.Context
765765
766766 // Get the customer by usage attribution
767767 cus , err := service .GetCustomerByUsageAttribution (ctx , customer.GetCustomerByUsageAttributionInput {
768- Namespace : s .namespace ,
769- SubjectKey : TestSubjectKeys [0 ],
768+ Namespace : s .namespace ,
769+ Key : TestSubjectKeys [0 ],
770770 })
771771
772772 require .NoError (t , err , "Fetching customer must not return error" )
@@ -776,8 +776,8 @@ func (s *CustomerHandlerTestSuite) TestGetByUsageAttribution(ctx context.Context
776776
777777 // Get the customer by key
778778 cus , err = service .GetCustomerByUsageAttribution (ctx , customer.GetCustomerByUsageAttributionInput {
779- Namespace : s .namespace ,
780- SubjectKey : TestKey ,
779+ Namespace : s .namespace ,
780+ Key : TestKey ,
781781 })
782782
783783 require .NoError (t , err , "Fetching customer must not return error" )
@@ -787,8 +787,8 @@ func (s *CustomerHandlerTestSuite) TestGetByUsageAttribution(ctx context.Context
787787
788788 // Get the customer by key
789789 cus , err = service .GetCustomerByUsageAttribution (ctx , customer.GetCustomerByUsageAttributionInput {
790- Namespace : s .namespace ,
791- SubjectKey : TestKey ,
790+ Namespace : s .namespace ,
791+ Key : TestKey ,
792792 })
793793
794794 require .NoError (t , err , "Fetching customer must not return error" )
@@ -798,8 +798,8 @@ func (s *CustomerHandlerTestSuite) TestGetByUsageAttribution(ctx context.Context
798798
799799 // Get the customer by usage attribution with a non-existent subject key
800800 _ , err = service .GetCustomerByUsageAttribution (ctx , customer.GetCustomerByUsageAttributionInput {
801- Namespace : s .namespace ,
802- SubjectKey : "non-existent-subject-key" ,
801+ Namespace : s .namespace ,
802+ Key : "non-existent-subject-key" ,
803803 })
804804
805805 require .True (t , models .IsGenericNotFoundError (err ), "Fetching customer with non-existent subject key must return not found error" )
0 commit comments