Commit graph

158 commits

Author SHA1 Message Date
Ashley Penney
d7b95e5e1b Remove all the old acceptance tests. 2014-07-09 16:38:53 -04:00
Ashley Penney
61bde22f68 Fix trailing }. 2014-06-26 14:27:57 -04:00
Colleen Murphy
c63a7ba857 Sync files 2014-06-25 17:23:35 -07:00
Ashley Penney
5735eea1ac Add workaround for selinux. 2014-06-24 11:11:03 -04:00
Ashley Penney
5d4ecb1b04 Merge pull request #413 from rdark/support/jdbc_repo_dependency
tag postgresql-jdbc package to fix package repo dependency
2014-06-05 13:37:03 -04:00
Ashley Penney
8db4a0cf67 Fix Ubuntu 14.04 tests for now.
This doesn't fix the root cause of the issue, such as the fact that
dpkg can't do wildcard removals, and the uninstall fails when you're
passing in a version number like this, but THIS test doesn't care, it
just wants to make sure the deprecation warning appears in the first
place.

This does however make the tests pass on 14.04.
2014-06-03 13:21:45 -04:00
Dominic Cleal
b7cbe60d4b (MODULES-775) Fix refresh/unless parameter interactions
Interactions between resource refreshes and the 'unless' parameter have been
fixed to follow the behaviour of the 'exec' type.

The 'unless' parameter is now always taken into account, whether in ordinary
operation, during a refresh, or when refreshonly is set to true.  The resource
will not run the SQL command when the 'unless' clause matches a row.

Previously a refresh on a resource would ignore the 'unless' parameter if set
which could cause a failure re-running a command, such as attempting to create
a role that already exists.

The following examples have been fixed:

  * should not run SQL when refreshed and the unless query returns rows
  * with refreshonly should not run SQL when the unless query returns no rows
  * with refreshonly should not run SQL when refreshed and the unless query
    returns rows

This is done by moving the logic for refreshonly and whether to run the SQL
command from the provider into the type, and consolidating it in the
should_run_sql method which is called during 'command' property retrieval
(instead of sync) and during refresh.
2014-06-03 10:25:13 +01:00
Ashley Penney
706eb884eb Remove eq('') tests thanks to the new deprecation warnings. 2014-05-29 12:09:08 -04:00
Ashley Penney
bd1eec24d0 Merge branch '3.3.x' into merge33x 2014-05-13 21:08:41 +02:00
Morgan Haskel
d51e9779f0 Need to flush iptables on rhel5. 2014-05-13 14:07:46 -04:00
Morgan Haskel
f004ca39f3 If we're just testing for a warning no need to start up the services. 2014-05-13 12:10:44 -04:00
Morgan Haskel
46d3717c34 Fix validate_db_connection_spec.
The for loop inside the shell() was confusing things (although it's unclear why.  I don't think we need to be looping in the spec, and this works.
2014-05-12 21:00:13 -04:00
Ashley Penney
192ea5e3f3 Fix service_ensure.
We now test if service_ensure is 'running' or 'stopped' but it was
actually picking up the default value of ensure in params.pp which
was true, not present.

Fix this and thereby fix the failing test.
2014-05-12 23:34:25 +02:00
Ashley Penney
f37b3a6ba5 Fixes broken tests and add a service_ensure test. 2014-05-12 23:25:05 +02:00
Ashley Penney
66651d4ad5 Make sure that the location for 12.04 is set.
This is really clumsy and we need a better way.
2014-05-10 02:14:38 +02:00
Ashley Penney
6b929da99f Fix tests on Centos. 2014-05-09 18:30:34 -04:00
Ashley Penney
e947e96e79 Fix the way we remove postgresql::client. 2014-05-09 16:36:31 -04:00
Ashley Penney
05b77232f9 Allow psql to fail as it sometimes will in the tests. 2014-05-09 15:28:30 -04:00
Ashley Penney
b7685998b6 Various fixes to the tests. 2014-05-09 15:28:19 -04:00
Richard Clark
063582a986 remove trailing commas 2014-05-09 14:11:37 +01:00
Richard Clark
25b11a2e6b tag postgresql-jdbc package to fix package repo dependency 2014-05-09 14:01:15 +01:00
Ashley Penney
4e002d7fd9 Make sure we continue working post 7.0. 2014-05-08 16:52:04 -04:00
Ashley Penney
3205359afe Make sure we set selinux contexts on Redhat. 2014-05-08 16:49:25 -04:00
Ashley Penney
06f1727336 Various test updates to handle RHEL7 better. 2014-05-08 16:48:57 -04:00
Hunter Haugen
21001d5b0c (MODULES-630) Deprecate postgresql::server::version
Adjusting the version is explicitly done though the postgresql::globals
class, as this affects many parts of the module. This parameter did not
function correctly on systems that did not have a default, as described
in the ticket.
2014-05-07 15:25:18 -07:00
Ashley Penney
4c85eee2d8 Fixes to get the tests running on Ubuntu 14.04. 2014-05-06 01:22:59 +02:00
Ashley Penney
f75dbbf10d Move into the hosts loop. 2014-05-05 22:44:47 +02:00
Ashley Penney
791fc3db94 This is already set in config.pp and so we need to pick a unique
name.
2014-05-05 22:44:34 +02:00
Ashley Penney
469feb6bf9 Wrap this in a test for PE. 2014-05-03 00:57:02 +02:00
Ashley Penney
f818fbecf8 Fix for Ubuntu 14.04. 2014-05-02 23:54:09 +02:00
Brian Almeida
86f2950248 Add support for port parameter to postgresql::server, fix underlying assumptions that port=5432 2014-04-17 15:09:07 -04:00
Ashley Penney
3d73e7fe7f Merge pull request #372 from jhoblitt/feature/pg_hba.conf-ownership
change pg_hba.conf to be owned by postgres user account
2014-04-17 13:31:04 -04:00
Ashley Penney
a29d038287 Merge pull request #401 from cfeskens/add-perl-support
Add class postgresql::lib::perl for perl support
2014-04-17 13:27:00 -04:00
Mickaël Canévet
0b7bb333d8 Fix strict_variables issues 2014-04-08 17:37:29 +02:00
Mickaël Canévet
47bc3423f6 Add strict_variables support in unit tests 2014-04-08 16:38:38 +02:00
Casey Feskens
9e60640bd9 Add class postgresql::lib::perl for perl support 2014-04-04 06:13:30 -07:00
Ashley Penney
e26036c176 Merge pull request #297 from reidmv/fix_postgresql_conf_quote_logic
Fix postgresql_conf quote logic
2014-04-03 14:04:30 -04:00
Ashley Penney
0adbcfb64f Merge pull request #280 from 3dna/feature/postgis
postgis support
2014-04-02 09:31:03 -04:00
Ashley Penney
d8875983c9 Merge pull request #395 from thunderkeys/postgresql-server-role-inherit-support
Postgresql server role inherit support
2014-04-02 07:30:20 -04:00
Simon Séhier
75f6d687ce Convert rspec-sytem to acceptance for postgis 2014-03-31 21:40:01 +00:00
Jeremy Kitchen
c4bca511e9 add support for postgis
rhel support added by @mcanevet, but the branch has been squashed.
thanks!
2014-03-31 21:40:01 +00:00
Reid Vandewiele
a99ad69f3e Add tests
The test sets an ip address, uses language to indicate it should end up
in quotes.
2014-03-31 09:29:03 -07:00
Brian Almeida
3887f36943 Add spec/acceptance test for inherit option to postgresql::server::role 2014-03-27 18:10:23 -04:00
Pieter Lexis
dcdc7c8f5a Allow the ex- and import of postgresql::server::db 2014-03-27 16:49:48 +01:00
Mickaël Canévet
67cd6f73f4 Fix unit tests with rspec-puppet 1.0 2014-03-21 13:58:26 +01:00
Ashley Penney
0aba3228d2 Replace the symlink with the actual file to resolve a PMT issue. 2014-03-04 16:17:33 +00:00
Hunter Haugen
61255f1cc7 Correct spec helper commands 2014-02-28 21:09:55 -08:00
Hunter Haugen
6a8cd01ea0 Merge pull request #379 from apenney/fix-locale
Use the correct encoding.
2014-02-28 17:53:29 -08:00
Ashley Penney
d259acc410 Use the correct encoding. 2014-03-01 01:51:09 +00:00
Hunter Haugen
ea537281d7 Add class apt for manage_package_repo => true 2014-02-28 17:41:00 -08:00