We are looking to convert xpack functional tests to login as a test_user with minimum set of privileges to the data and not use the elastic-superuser to login and perform the functional test. This exercise helps a great deal in running the test as a non-super-user. Need that conversion for tests under rollup_job .
here is the meta issue : #60815 ( has examples of conversion)
Task would be to just modify the existing tests. In theory, it should just be 2 lines in the test. One to setRoles and one to restoreRoles. And you might need to add a new role configuration to a config file. And part of this task is to also check the docs to see that we've explained the required privs when appropriate.
cc @LeeDr
We are looking to convert xpack functional tests to login as a
test_userwith minimum set of privileges to the data and not use theelastic-superuserto login and perform the functional test. This exercise helps a great deal in running the test as a non-super-user. Need that conversion for tests underrollup_job.here is the meta issue : #60815 ( has examples of conversion)
Task would be to just modify the existing tests. In theory, it should just be 2 lines in the test. One to
setRolesand one torestoreRoles. And you might need to add a new role configuration to a config file. And part of this task is to also check the docs to see that we've explained the required privs when appropriate.cc @LeeDr