This message was deleted.
# puppet
s
This message was deleted.
c
The big difference is that a unit test often runs with a lot of logic or context mocked out or simulated (for example, canned Facts instead of actual data from a system) and does not typically go all the way through enforcing a resource. Acceptance tests, on the other hand, are often run with nothing simulated. A VM or container with the target operating system is created,
puppet-agent
is installed, and resources are enforced for realsies. Then the test runner inspects what actually happened to the operating system and asserts that it meets some expectation.
p
Yes, I have already written some acceptance tests for severeal modules, I just trying to figure out how to run acceptance test for a node that has an specific role and it uses third party components like the accounts module from puppetlabs. This information is very apreciated 🙂
c
Putting acceptance tests in the
role
or
profile
modules that make assertions about what happens when those components are applied to a node is a reasonable way to do it 👍