Skip to content

Commit 54af8fb

Browse files
author
Tom McLaughlin
committed
fix test
1 parent e563d20 commit 54af8fb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • src/plugins/scaffolder-backend-module-serverlessops/src/actions/serverlessops/catalog

src/plugins/scaffolder-backend-module-serverlessops/src/actions/serverlessops/catalog/register.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ describe('serverlessops:catalog:register', () => {
9494

9595
expect(auth.getPluginRequestToken).toHaveBeenCalledWith({
9696
onBehalfOf: {
97-
token: 'auth-token',
9897
$$type: '@backstage/BackstageCredentials',
99-
principal: 'user'
98+
principal: {
99+
type: 'user',
100+
userEntityRef: 'user:default/mock'
101+
}
100102
},
101103
targetPluginId: 'catalog'
102104
})

0 commit comments

Comments
 (0)