Skip to content

Commit

Permalink
Change expected response for failing test (#175)
Browse files Browse the repository at this point in the history
Systemresource is not visible or delegable. Corrected expected response

Co-authored-by: Jon Kjetil Øye <[email protected]>
  • Loading branch information
jonkjetiloye and Jon Kjetil Øye authored Dec 17, 2024
1 parent 5057b81 commit d808199
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export function postMaskinportenSystemResourceCannotBeDelegatedTest() {
'post Maskinporten Systemresource Cannot be delegated - status is 400': (r) => r.status === 400,
'post Maskinporten Systemresource Cannot be delegated - `One or more validation errors occurred.`': (r) => r.json('title') == 'One or more validation errors occurred.',
'post Maskinporten Systemresource Cannot be delegated - errors is not null': (r) => r.json('errors') != null,
'post Maskinporten Systemresource Cannot be delegated - Invalid resource type': (r) => r.body.includes('This operation only support requests for Maskinporten schema resources. Invalid resource: Identifier: altinn_maskinporten_scope_delegation, ResourceType: Systemresource'),
'post Maskinporten Systemresource Cannot be delegated - Not available for delegation': (r) => r.body.includes('The resource: altinn_maskinporten_scope_delegation, does not exist or is not available for delegation'),
});

addErrorCount(success);
Expand Down

0 comments on commit d808199

Please sign in to comment.