puppet-bandersnatch/spec
Colleen Murphy aae5bb5a65 Fix acceptance tests
In 2940279 management of the apache vhost was split into a separate
class and the vhost_name parameter was removed from the
bandersnatch::mirror class. This wasn't done in a backwards compatible
way and the acceptance tests were never updated to use the new API.
Additionally, a88c399 split the bandersnatch cron job out of the mirror
class into its own class, so the test for the existence of the job was
failing. This patch updates the tests to use the new classes and to
stop using the now invalid parameter.

We also relax some of the internal system assertions and opt instead
for checking that the service is working correctly by curling the
endpoints and checking the contents. This exposed an issue on CentOS
where selinux was not allowing apache to serve the robots.txt file, so
also added an selinux rule to the fixture.

Change-Id: If724c51b72f634a95bbffd080a9d33234a5d7645
2016-05-27 14:13:33 -07:00
..
acceptance Fix acceptance tests 2016-05-27 14:13:33 -07:00
spec_helper_acceptance.rb Fix target path for regular git clone during tests 2015-08-19 16:34:25 -07:00