@@ -700,8 +700,8 @@ func (s *CustomerHandlerTestSuite) TestGetByUsageAttribution(ctx context.Context
700700
701701 // Get the customer by usage attribution
702702 cus , err := service .GetCustomerByUsageAttribution (ctx , customer.GetCustomerByUsageAttributionInput {
703- Namespace : s .namespace ,
704- SubjectKey : TestSubjectKeys [0 ],
703+ Namespace : s .namespace ,
704+ Key : TestSubjectKeys [0 ],
705705 })
706706
707707 require .NoError (t , err , "Fetching customer must not return error" )
@@ -711,8 +711,8 @@ func (s *CustomerHandlerTestSuite) TestGetByUsageAttribution(ctx context.Context
711711
712712 // Get the customer by key
713713 cus , err = service .GetCustomerByUsageAttribution (ctx , customer.GetCustomerByUsageAttributionInput {
714- Namespace : s .namespace ,
715- SubjectKey : TestKey ,
714+ Namespace : s .namespace ,
715+ Key : TestKey ,
716716 })
717717
718718 require .NoError (t , err , "Fetching customer must not return error" )
@@ -722,8 +722,8 @@ func (s *CustomerHandlerTestSuite) TestGetByUsageAttribution(ctx context.Context
722722
723723 // Get the customer by key
724724 cus , err = service .GetCustomerByUsageAttribution (ctx , customer.GetCustomerByUsageAttributionInput {
725- Namespace : s .namespace ,
726- SubjectKey : TestKey ,
725+ Namespace : s .namespace ,
726+ Key : TestKey ,
727727 })
728728
729729 require .NoError (t , err , "Fetching customer must not return error" )
@@ -733,8 +733,8 @@ func (s *CustomerHandlerTestSuite) TestGetByUsageAttribution(ctx context.Context
733733
734734 // Get the customer by usage attribution with a non-existent subject key
735735 _ , err = service .GetCustomerByUsageAttribution (ctx , customer.GetCustomerByUsageAttributionInput {
736- Namespace : s .namespace ,
737- SubjectKey : "non-existent-subject-key" ,
736+ Namespace : s .namespace ,
737+ Key : "non-existent-subject-key" ,
738738 })
739739
740740 require .True (t , models .IsGenericNotFoundError (err ), "Fetching customer with non-existent subject key must return not found error" )
0 commit comments