Closed racorretjer closed 7 years ago
What you are doing looks reasonable. I haven't used serverspec in quite some time. We primarily use testinfra. Serverspec is actually deprecated in molecule v2.
However, you should still be able to target os[:family] in your tests in the way you described.
Thanks! I thought I was just hacking my through this issue, but there doesn't seem to be any other way of doing it. It's a shame that serverspec won't be supported on v2. But I'd rather have a solid piece of software that does something well rather than trying to do everything halfway. Great piece of software, btw. I depend on it everyday.
Issue Type
Molecule and Ansible details
Desired Behaviour
I'm currently using molecule in conjunction with serverspec and docker. I'm trying to test different cases with the os[:family] bit provided by serverspec, but am only able to successfully do so if I include the following before the actual tests:
I was wondering if you knew of a better way to do this? The serverspec docs have you create the docker images/containers WITH serverspec as opposed to dynamically targeting containers, so I didn't have any luck looking there.