8 Commits

Author SHA1 Message Date
Nate Potter
16ec1659c9 Add test coverage for neutron::db::mysql
Currently many tests in neutron_db_mysql_spec.rb don't check anything.
This patch adds the test coverage for mysql and removes the
differentiation between Debian and Redhat in this file, because the
tests are the same.

Change-Id: I2e435afd88834868a6835c4eb246ec16067bae14
2015-11-16 16:33:41 +00: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
Emilien Macchi
c44f30ffe2 MySQL: change default MySQL collate to utf8_general_ci
Install & configure MySQL database by using utf8_general_ci collation
which is the way documented in OpenStack [1] and already the default
in puppetlabs-mysql [2].

[1] http://goo.gl/GA5gyZ
[2] https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/db.pp#L7

Change-Id: I9101be56e19e7ec508a510da5c0780c8180ea685
Closes-bug: #1446375
2015-04-21 18:58:13 -04: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
Colleen Murphy
513602100d Migrate mysql backend to use openstacklib::db::mysql
Implements: blueprint commmon-openstack-database-resource
Change-Id: I181ffa8ead34d37c4a5dacf2aecb3dd0506a5173
2014-08-19 08:35:27 -07:00
Soren Hansen
3820c416a3 Use 2.2 as the default mysql_module
Change-Id: Ib040a79a88830f1c2965bd6e5416983131ece9ce
2014-07-16 18:46:46 +05:30
Michael Chapman
2b310c2210 Add support for puppetlabs-mysql 2.2
Puppetlabs-mysql has been rewritten to be much
cleaner. This patch adds a new parameter for the
neutron mysql and init classes allowing users to
use the new version. Previous behavior will continue
as normal when using the old version (0.9)

Change-Id: Id4ca8f25cffc4c76b90ab2b7d7adf2a80b2c2c4b
2014-03-18 15:53:53 +11:00
Dan Prince
c5005c221f Rename quantum to neutron.
Global replacement of all Quantum references with Neutron.

Change-Id: I74ad15e382589ced6f47d0783e3e952627fcd0f7
2013-08-08 10:49:19 -04:00