@@ -22,7 +22,7 @@ describe('AuthService', () => {
2222 id : '10f356da-1e9e-43b8-9028-a26a645539a6' ,
2323 name : 'Test API Key' ,
2424 description : 'Test API Key Description' ,
25- roles : [ Role . GUEST , Role . UPC ] ,
25+ roles : [ Role . GUEST , Role . CONNECT ] ,
2626 createdAt : new Date ( ) . toISOString ( ) ,
2727 } ;
2828
@@ -39,7 +39,7 @@ describe('AuthService', () => {
3939 id : '-1' ,
4040 description : 'Test User' ,
4141 name : 'test_user' ,
42- roles : [ Role . GUEST , Role . UPC ] ,
42+ roles : [ Role . GUEST , Role . CONNECT ] ,
4343 } ;
4444
4545 beforeEach ( async ( ) => {
@@ -134,13 +134,13 @@ describe('AuthService', () => {
134134
135135 const mockApiKeyWithoutRole = {
136136 ...mockApiKey ,
137- roles : [ Role . UPC ] ,
137+ roles : [ Role . ADMIN ] ,
138138 } ;
139139
140140 vi . spyOn ( apiKeyService , 'findById' ) . mockResolvedValue ( mockApiKeyWithoutRole ) ;
141141 vi . spyOn ( apiKeyService , 'findByIdWithSecret' ) . mockResolvedValue ( {
142142 ...mockApiKeyWithSecret ,
143- roles : [ Role . UPC ] ,
143+ roles : [ Role . ADMIN ] ,
144144 } ) ;
145145 vi . spyOn ( apiKeyService , 'saveApiKey' ) . mockResolvedValue ( ) ;
146146 vi . spyOn ( authzService , 'addRoleForUser' ) . mockResolvedValue ( true ) ;
@@ -152,7 +152,7 @@ describe('AuthService', () => {
152152 expect ( apiKeyService . findByIdWithSecret ) . toHaveBeenCalledWith ( apiKeyId ) ;
153153 expect ( apiKeyService . saveApiKey ) . toHaveBeenCalledWith ( {
154154 ...mockApiKeyWithSecret ,
155- roles : [ Role . UPC , role ] ,
155+ roles : [ Role . ADMIN , role ] ,
156156 } ) ;
157157 expect ( authzService . addRoleForUser ) . toHaveBeenCalledWith ( apiKeyId , role ) ;
158158 } ) ;
0 commit comments