Skip to content

Commit

Permalink
Update test response message
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Oct 30, 2024
1 parent 3b7bc2a commit 26fa980
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion x-pack/test/ftr_apis/security_and_spaces/apis/bulk_delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export default function (ftrContext: FtrProviderContext) {
expect(body).to.eql({
statusCode: 403,
error: 'Forbidden',
message: 'Forbidden',
message:
'API [POST /internal/ftr/kbn_client_so/_bulk_delete] is unauthorized for user, this action is granted by the Kibana privileges [ftrApis]',
});
},
},
Expand Down
3 changes: 2 additions & 1 deletion x-pack/test/ftr_apis/security_and_spaces/apis/clean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export default function (ftrContext: FtrProviderContext) {
expectResponse: ({ body }) => {
expect(body).to.eql({
error: 'Forbidden',
message: 'Forbidden',
message:
'API [POST /internal/ftr/kbn_client_so/_clean] is unauthorized for user, this action is granted by the Kibana privileges [ftrApis]',
statusCode: 403,
});
},
Expand Down
3 changes: 2 additions & 1 deletion x-pack/test/ftr_apis/security_and_spaces/apis/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export default function (ftrContext: FtrProviderContext) {
expect(body).to.eql({
statusCode: 403,
error: 'Forbidden',
message: 'Forbidden',
message:
'API [POST /internal/ftr/kbn_client_so/tag] is unauthorized for user, this action is granted by the Kibana privileges [ftrApis]',
});
},
},
Expand Down
3 changes: 2 additions & 1 deletion x-pack/test/ftr_apis/security_and_spaces/apis/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export default function (ftrContext: FtrProviderContext) {
expect(body).to.eql({
statusCode: 403,
error: 'Forbidden',
message: 'Forbidden',
message:
'API [DELETE /internal/ftr/kbn_client_so/visualization/vis-area-1] is unauthorized for user, this action is granted by the Kibana privileges [ftrApis]',
});
},
},
Expand Down
3 changes: 2 additions & 1 deletion x-pack/test/ftr_apis/security_and_spaces/apis/find.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export default function (ftrContext: FtrProviderContext) {
expectResponse: ({ body }) => {
expect(body).to.eql({
error: 'Forbidden',
message: 'Forbidden',
message:
'API [GET /internal/ftr/kbn_client_so/_find?type=tag] is unauthorized for user, this action is granted by the Kibana privileges [ftrApis]',
statusCode: 403,
});
},
Expand Down
3 changes: 2 additions & 1 deletion x-pack/test/ftr_apis/security_and_spaces/apis/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export default function (ftrContext: FtrProviderContext) {
expect(body).to.eql({
statusCode: 403,
error: 'Forbidden',
message: 'Forbidden',
message:
'API [GET /internal/ftr/kbn_client_so/visualization/vis-area-4] is unauthorized for user, this action is granted by the Kibana privileges [ftrApis]',
});
},
},
Expand Down
3 changes: 2 additions & 1 deletion x-pack/test/ftr_apis/security_and_spaces/apis/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export default function (ftrContext: FtrProviderContext) {
expect(body).to.eql({
statusCode: 403,
error: 'Forbidden',
message: 'Forbidden',
message:
'API [PUT /internal/ftr/kbn_client_so/tag/tag-1] is unauthorized for user, this action is granted by the Kibana privileges [ftrApis]',
});
},
},
Expand Down

0 comments on commit 26fa980

Please sign in to comment.