Skip to content

Commit d10969d

Browse files
authored
[Test] Relax assertion of denial message for service account (#80389)
Relax the assertion for error message so that v7RestCompat test does not break on non-bwc'able changes. Relates: #79809
1 parent 84a0419 commit d10969d

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/service_accounts

1 file changed

+1
-1
lines changed

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/service_accounts/10_basic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ teardown:
8585

8686
- match: { "error.type": "security_exception" }
8787
- match:
88-
error.reason: "action [cluster:admin/xpack/security/user/delete] is unauthorized for user [elastic/fleet-server], this action is granted by the cluster privileges [manage_security,all]"
88+
error.reason: "/action.\\[cluster:admin/xpack/security/user/delete\\].is.unauthorized.for.*\\[elastic/fleet-server\\].*this.action.is.granted.by.the.cluster.privileges.*/"
8989

9090
- do:
9191
headers:

0 commit comments

Comments
 (0)