This PR also enables independent Elastic Agents in case root privileges are defined in the Data Stream manifest.
If any of the two files (package manifest or Data Stream manifest) defines that root privileges are required, it is enabled independent Elastic Agents.
As previously, if the environment variable ELASTIC_PACKAGE_TEST_ENABLE_INDEPENENT_AGENT is set, it has preference over the values defined in those manifests.
Follows #1724 Relates #1586
This PR also enables independent Elastic Agents in case root privileges are defined in the Data Stream manifest.
If any of the two files (package manifest or Data Stream manifest) defines that root privileges are required, it is enabled independent Elastic Agents.
As previously, if the environment variable
ELASTIC_PACKAGE_TEST_ENABLE_INDEPENENT_AGENT
is set, it has preference over the values defined in those manifests.