Locally the error message is like this:
======================================================================
ERROR: test_on_demand_policies (pulp_rpm.tests.functional.api.test_consume_content.PackageManagerConsumeTestCase)
Verify whether content on demand synced can be consumed.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/devel/pulp_rpm/pulp_rpm/tests/functional/api/test_consume_content.py", line 51, in test_on_demand_policies
self.do_test(policy)
File "/home/vagrant/devel/pulp_rpm/pulp_rpm/tests/functional/api/test_consume_content.py", line 90, in do_test
'--setopt=gpgcheck=0', repo_id))
File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_smash/cli.py", line 306, in run
return self.response_handler(completed_process)
File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_smash/cli.py", line 56, in code_handler
completed_proc.check_returncode()
File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_smash/cli.py", line 131, in check_returncode
self.args, self.returncode, self.stdout, self.stderr
pulp_smash.exceptions.CalledProcessError: Command ('dnf', 'config-manager', '--save', '--setopt=gpgcheck=0', '*dcfe5265-6afa-439a-8556-112960e0c0f0') returned non-zero exit status 1.
stdout:
stderr: Error: This command has to be run under the root user.
Fix consume content test
fixes: #5438 https://pulp.plan.io/issues/5438