mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
(cherry picked from commit c5391dc253
)
Co-authored-by: Thomas Watson <watson@elastic.co>
This commit is contained in:
parent
6fb0959791
commit
863ae32239
1 changed files with 4 additions and 6 deletions
|
@ -1403,8 +1403,7 @@ describe('#checkPrivilegesWithRequest.atSpaces', () => {
|
|||
[`saved_object:${savedObjectTypes[0]}/get`]: false,
|
||||
[`saved_object:${savedObjectTypes[1]}/get`]: true,
|
||||
},
|
||||
// @ts-expect-error this is wrong on purpose
|
||||
'space:space_1': {
|
||||
'space:space_2': {
|
||||
[mockActions.login]: true,
|
||||
[mockActions.version]: true,
|
||||
[`saved_object:${savedObjectTypes[0]}/get`]: false,
|
||||
|
@ -1414,7 +1413,7 @@ describe('#checkPrivilegesWithRequest.atSpaces', () => {
|
|||
},
|
||||
});
|
||||
expect(result).toMatchInlineSnapshot(
|
||||
`[Error: Invalid response received from Elasticsearch has_privilege endpoint. Error: [application.kibana-our_application]: Payload did not match expected resources]`
|
||||
`[Error: Invalid response received from Elasticsearch has_privilege endpoint. Error: [application.kibana-our_application]: Payload did not match expected actions]`
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -1431,8 +1430,7 @@ describe('#checkPrivilegesWithRequest.atSpaces', () => {
|
|||
[mockActions.login]: true,
|
||||
[mockActions.version]: true,
|
||||
},
|
||||
// @ts-expect-error this is wrong on purpose
|
||||
'space:space_1': {
|
||||
'space:space_2': {
|
||||
[mockActions.login]: true,
|
||||
[mockActions.version]: true,
|
||||
[`saved_object:${savedObjectTypes[0]}/get`]: false,
|
||||
|
@ -1442,7 +1440,7 @@ describe('#checkPrivilegesWithRequest.atSpaces', () => {
|
|||
},
|
||||
});
|
||||
expect(result).toMatchInlineSnapshot(
|
||||
`[Error: Invalid response received from Elasticsearch has_privilege endpoint. Error: [application.kibana-our_application]: Payload did not match expected resources]`
|
||||
`[Error: Invalid response received from Elasticsearch has_privilege endpoint. Error: [application.kibana-our_application]: Payload did not match expected actions]`
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue