Commit Graph

13 Commits

Author SHA1 Message Date
Colleen Murphy efd4267ef4 Depend on helper gem for spec_helper_acceptance
Instead of keeping a local copy of spec_helper_acceptance.rb and
requiring updates to all modules for any change, we can move it into the
common helper gem and require it from there. This will make it easier to
create and review changes that affect all puppet modules. Also change
the Gemfile to look for the gem in the local workspace if running in a
zuul environment.

Change-Id: I8233333e7c35a3a1191c0f8d070f6de5dfb7b33d
2017-08-18 10:41:43 +02:00
Colleen Murphy 5f7b59c32c Stop testing mod-python in beaker
The python apache mod is deprecated and does not work with the wsgi mod.
The apache service dies if both mods are enabled. We can keep the mod
class but it is not worth keeping tests for it.

Change-Id: Ie411ee5c6e9324371eaabe0a6f1761c912a79600
2017-06-11 19:57:04 +02:00
Colleen Murphy 6325c13cf7 Remove unnecessary beaker tests
It is not necessary to check every file and package in the puppet
functional tests. It can be assumed that if puppet finished corretly
then it was also able to successfully find and install packages and
apply configs. We leave the service checks, however, because it is
possible for services to die due to misconfiguration after puppet starts
them.

Change-Id: I97682cb9d956803c3ab1be42fe44c0437c3d5f02
2017-06-11 19:56:51 +02:00
Colleen Murphy 17543eceaf Parameterize the php mod package name
Change-Id: If61473b394605fa2599f53716792dd5568ad24c5
2017-06-11 19:53:48 +02:00
Colleen Murphy d4f6905da6 Update beaker setup for xenial
Add a xenial nodeset and update the spec helper to install puppet 3 from
the Ubuntu repos instead of from puppetlabs.

Change-Id: I5d48236074dcb4e5d0fbd3466355d4224250e393
2017-06-11 19:52:02 +02:00
Danilo Ramalho bf7ce40e2f Grant access for vhosts on Apache >= 2.4
Apache's configuration for access control has changed on 2.4. To allow
access to served directories we need to include the new directive
"Require grant all".

We scoped the configuration to only be applied on Apache 2.4. More
information can be viewed on the Apache's upgrade document[1].

The tests were changed to ensure that the configuration is working
without any extra override, as the extra test vhost is on a custom
directory that requires the template to grant access to it.

[1] http://httpd.apache.org/docs/trunk/upgrading.html

Change-Id: I898ca049c5b3592cb70ad8c22eba8d4c681f3b22
Co-Authored-By: Bruno Tavares <btavare@thoughtworks.com>
2015-10-19 17:48:54 +00:00
Bruno Tavares faf9d932ba Fix proxy and redirect configuration file names.
While working on puppet-lodgeit acceptance tests we found that the
configuration file that `httpd::mod::proxy` creates was not being picked
up by Apache because it was missing the prefix `.conf`. This transition
is required to configure httpd modules correctly on Apache >= 2.4

To prevent Apache from loading two the same configuration twice, we
remove the file without extension, so this change does not affect
running systems.

This change has fixes for `httpd::mod::proxy` and `httpd::mod::redirect`
as they have the same issue. We added tests as well to increase the
confidence on the fix.

The acceptance will be fixed on the follow-up patch, as the redirect
grants are broken for 2.4 as well.

Change-Id: I82241038d687316f91f18209fe8323c12422e2f8
Co-Authored-By: Danilo Ramalho <dramalho@thoughtworks.com>
2015-10-19 15:43:51 -02:00
Glauco Oliveira 9c22e17cef Add acceptance tests for puppet-httpd
Add acceptance tests for puppet-httpd module so that once the module is
applied we check if files were created, packages were installed and
services were started.

Change-Id: I3e1430f2937bd2bc5ea789c626784af7d5d85959
Co-Authored-By: Bruno Tavares <btavare@thoughtworks.com>
Co-Authored-By: Danilo Ramalho <dramalho@thoughtworks.com>
2015-09-28 14:50:03 -03:00
Spencer Krum 2016285e71 Fix target path for regular git clone during tests
Use same target directory for zuul-cloner and
the regular git command.

Change-Id: Ia93972eb910cbff202820151a0407d36b3317dc4
Co-Authored-By: Fabien Boucher <fabien.boucher@enovance.com>
2015-08-19 16:36:20 -07:00
Spencer Krum bb5bdb2a56 Boilerplate beaker-rspec files
Change-Id: I7bd86e006d6e6dc3b97e5e68598b833e18394e33
2015-07-28 02:04:32 -07:00
Spencer Krum 9010a73e9d Remove tests
These tests don't work and we don't run them. We can return to
testing using rspec-puppet at a future time.

Change-Id: I0cdd922e329358c1921335d92c5261f001019713
2015-02-25 03:28:27 -08:00
Reid Vandewiele e62e3625b4 Fix broken tests for ssl, vhost, vhost::*
A number of tests were broken by the last few style commits when '755'
became '0755' and the tests didn't get updated. This commit fixes the
tests so that they work again.

The tests for apache::ssl were broken because the 'operatingsystem' fact
was not being set in the tests. Don't know how long that's been busted,
but in any case this commit fixes that problem as well by adding
appropriate let(:facts).
2012-04-22 00:32:09 -07:00
William Van Hevelingen 05fcec5f9c (#13073) Add missing puppet spec tests
This commit adds full puppet spec coverage
for all classes and defines.
2012-03-16 00:38:53 -07:00