10 Commits

Author SHA1 Message Date
Takashi Kajinami
db307b6948 Revert "CentOS 9: Disable unit tests dependent on puppet-postgresql"
This reverts commit 589205c8a5f22f1ddd9b5db94d4e09336c2b666b.

Reason for revert:
puppet-postgresql 8.1.0 was released and now the module supports RHEL 9
(and CentOS 9 effectively).

Note:
This change adds the service_provider fact in test fact data because
it is required by puppet-postgresql.

Depends-on: https://review.opendev.org/850705
Change-Id: I8b110c5335c4fb0f69d25974228e12db0340222b
2022-07-24 00:50:46 +09:00
Takashi Kajinami
589205c8a5 CentOS 9: Disable unit tests dependent on puppet-postgresql
The puppt-postgresql module does not support CentOS 9 yet and requires
some version parameters to be run on CentOS 9. This change disables
unit tests requiring that module, until the module supports CentOS 9.

Change-Id: Ia565bc26a9919efe61f938eb6436df30f13ea3e5
2022-02-16 00:16:16 +09:00
ZhongShengping
ac23462c73 Include deps class in unit test for postgresql
Change-Id: I33be0962bc8065adb2563fdd3df7be1cd32955f5
2020-10-10 09:31:12 +08:00
Takashi Kajinami
7244048a70 Remove password hash generation in each puppet modules
... and migrate it to openstacklib so that all logics about database
configuration are implemented in one common place.

Depends-on: https://review.opendev.org/#/c/728595/
Change-Id: I7a1ef6c25871b993279413c6bbfbee38838eb4d9
2020-05-19 20:27:57 +09:00
Tobias Urdin
b48763cd7e Convert to rspec-puppet-facts
Change-Id: I780200a2520a87c8a6556cf57313ce11e29aabc3
2018-11-30 12:24:36 +01:00
ZhongShengping
56d2a46738 Test multiple operating systems for db
This change updates the tests for neutron::db::postgresql and
neutron::db::sync to test multiple operating systems.

Change-Id: Ifcde1fc25f8111655a1f50ac1e30b1d52bb3b1ce
2016-04-30 12:39:06 +08:00
Sergey Kolekonov
69e809bcca Move Neutron to $::os_service_default - part 1
This change updates the values that are currently undefined to use
$::os_service_default fact.

Change-Id: Id0b1a696d4f151a776cd27acefb825f63fb0e162
2015-11-26 17:39:06 +03:00
Cody Herriges
ccac02b917 Make tests pass on Puppet 4.x
This commit makes the following changes, mostly to specs to get them
  passing on Puppet 4.x: removes redefinition of $name because it is now
  a reserved word and redundant in Puppet 3.x, cleans up the use of
  Puppet's old behavior of implicitly converting String to Integers
  since Puppet 4.x is pretty strictly typed, sets facts required for
  doing flow control and comparison, fixes implicit use of empty string
  that is assumed to be the same as false by updating tests that inject
  empty string into params to represent a value not being provide by a
  user to false instead.

Closes-bug: #1447620
Change-Id: Ibb651f26f33549dbe564dc88167b8f578a03fd77
2015-06-16 09:57:29 -07:00
Gael Chamoulaud
ac06cb7c96 spec: updates for rspec-puppet 2.x and rspec 3.x
This patch aim to update our specs test in order to work with the
rspec-puppet release 2.0.0, in the mean time, we update rspec syntax
order to be prepared for rspec 3.x move.

In details:

 * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
 * Use shared_examples "a Puppet::Error" for puppet::error tests *
 * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x) *
 * Fix spec tests for rspec-puppet 2.0.0
 * Clean Gemfile (remove over-specificication of runtime deps of
   puppetlabs_spec_helper)

Change-Id: Ida94605916fe26dd4c5fb328f79c4e787d29dcf5
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-03-19 16:57:59 +01:00
Sebastien Badia
829cfb0bd8 db: Added postgresql backend using openstacklib helper
Standardize neutron module, and add postgresql backend.

Change-Id: I2dcfa1075b6f23680357f2056731d481b97792d9
Implements: blueprint commmon-openstack-database-resource
2014-12-30 22:10:44 +01:00