Closed ekohl closed 11 months ago
For complete context, there are now PRs up: https://github.com/voxpupuli/puppet_metadata/pull/108 & https://github.com/voxpupuli/gha-puppet/pull/42
Note to self: also support beaker_facter
in .sync.yml
so the file can be managed again.
Something is different with curl: curl: unknown --write-out variable: 'stderr
.
When I run it manually on EL8:
# curl --silent --write-out '%{stderr}Response-Code: %{response_code}\n' https://ekohl.nl
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
curl: unknown --write-out variable: 'stderr'
Response-Code: 301
# curl --silent --write-out '%{stderr}Response-Code: %{response_code}\n' https://ekohl.nl > /dev/null
curl: unknown --write-out variable: 'stderr'
# curl --silent --write-out '%{stderr}Response-Code: %{response_code}\n' https://ekohl.nl 2> /dev/null
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
Response-Code: 301
So now I wonder how this ever worked. https://github.com/theforeman/puppet-pulpcore/pull/311 is passing, but now I can't explain why.
Edit: the only thing I can imagine is that the previous helpers somehow mixed stdout and stderr together where now it's split.
Integrated in https://github.com/theforeman/puppet-pulpcore/pull/309 now that all the bits are in.
Following up: beaker-puppet hacked $PATH
to include /opt/puppetlabs/puppet/bin
so it used /opt/puppetlabs/puppet/bin/curl
instead of /usr/bin/curl
. beaker_puppet_helpers doesn't do that (because on a real system it's not in $PATH
either.
Great detective work!
This is to test out some new workflows where we again rely on the common workflows but while also adding the option to test multiple versions.
Right now it's unknown if this concept works.