You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When configuring rspec-puppet to provide the $server_facts hash it's impossible to unset the servername entry. However, that is what happens when you run Puppet serverless (i.e., puppet apply). This means it's impossible to have a single codebase be tested using rspec-puppet in both serverless and server-mode.
Expected Behavior
A way to (locally) control whether the environment pretends to be connected or not.
Describe the Bug
When configuring rspec-puppet to provide the
$server_facts
hash it's impossible to unset theservername
entry. However, that is what happens when you run Puppet serverless (i.e.,puppet apply
). This means it's impossible to have a single codebase be tested using rspec-puppet in both serverless and server-mode.Expected Behavior
A way to (locally) control whether the environment pretends to be connected or not.
Steps to Reproduce
Configure the test suite with server facts
Then have code that uses
$server_facts['servername']
:Test this out with the following code:
This will fail, while it's expected to pass.
Environment
The text was updated successfully, but these errors were encountered: