7 Commits

Author SHA1 Message Date
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