voxpupuli / puppet-jail

FreeBSD Jails with Puppet
https://forge.puppet.com/puppet/jail
Apache License 2.0
9 stars 8 forks source link

Update fixture and tests for non-iocage jail #11

Closed zachfi closed 9 years ago

zachfi commented 9 years ago

Without this change, the provider attempts to parse the data from 'iocage list' even when non-iocage-managed jails are present. Due to a difference between the way iocage jails and non-iocage jails are represented, the resutls are incorrect, and cause problems with jail detection.

This work updates the fixtures to contain such an example (during a poudriere build) and builds a regex to match only the iocage jails. Currently we throw away the matches and only test that we actually have the correct data.

zachfi commented 9 years ago

This should resolve https://github.com/xaque208/puppet-jail/issues/9