14 Commits

Author SHA1 Message Date
Takashi Kajinami
3f2e78cec8 Revert "CentOS 9: Disable unit tests dependent on puppet-postgresql"
This reverts commit b8c3e8cb71e3816c12542eb0b6f6189130cbb5f3.

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: I811c35baba816e1340d857f2e5113487500c315f
2022-07-24 00:34:37 +09:00
Takashi Kajinami
b8c3e8cb71 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: I0824e84d9e3f0b85938512d37e74b8a9786fefbd
2022-02-16 00:22:53 +09:00
ZhongShengping
e891e3604b Include deps class in unit test for postgresql
Change-Id: I9004657f9ed0da8f53029d2f07d597bd1fdb5d36
2020-10-10 09:31:12 +08:00
Takashi Kajinami
1de8cdd7a4 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: I1e0061aea6782bd61e745bb39683589794231a5f
2020-05-19 20:00:03 +09:00
Tobias Urdin
5f6411c3dd Convert all class usage to relative names
Change-Id: I9982b8476ca9dab8a338b66db75d6da6519f9266
2019-12-08 23:07:36 +01:00
Mykyta Karpin
7359b5129e Switch heat to rspec-puppet-facts
This change updates the heat tests to use rspec-puppet-facts
to test multiple operating systems.

Change-Id: Ic6e1542d5befba529f753b346ff842ed88d1292e
2016-11-11 13:11:39 +02:00
Maksym Yatsenko
1e4d19aeae Remove '::processorcount' fact from tests.
As '::processorcount' fact is not used anymore,
it was removed from tests.

Change-Id: I76f451d17ae997f6ca7c670a300eb319e6964f5a
2016-10-24 22:04:57 +03:00
Iury Gregory Melo Ferreira
85b55571b8 Move Heat to authtoken
Switch keystone_authtoken parameters for the new class
heat::keystone::authtoken to configure the keystone_authtoken section
in heat.conf.

Some deprecations:
- heat::auth_uri is deprecated in favor of
  heat::keystone::authtoken::auth_uri.
- heat::identity_uri is deprecated in favor of
  heat::keystone::authtoken::auth_url.
- heat::auth_plugin is deprecated in favor of
  heat::keystone::authtoken::auth_type.
- heat::keystone_user is deprecated in favor of
  heat::keystone::authtoken::username.
- heat::keystone_tenant is deprecated in favor of
  heat::keystone::authtoken::project_name.
- heat::keystone_password is deprecated in favor of
  heat::keystone::authtoken::password.
- heat::keystone_user_domain_name is deprecated in favor of
  heat::keystone::authtoken::user_domain_name.
- heat::keystone_user_domain_id is deprecated, use the name option.
- heat::keystone_project_domain_name is deprecated in favor of
  heat::keystone::authtoken::project_domain_name.
- heat::keystone_project_domain_id is deprecated, use the name option.
- heat::memcached_servers is deprecated in favor of
  heat::keystone::authtoken::memcached_servers.

Change-Id: I466558e98176f20743271191df64dc327f0efcc6
Closes-bug: #1604463
2016-08-25 18:08:22 -03:00
ZhongShengping
099774011c Test multiple operating systems for db
This change updates the tests for heat::db::postgresql and
heat::db::sync to test multiple operating systems.

Change-Id: I5518570eb4eb794a1ab4e839777aaa6f3c566302
2016-04-30 10:23:18 +08:00
Mykyta Karpin
ae20443751 Switch Heat to $::os_service_default - part 1
Switching Heat to usage of os_service_default fact

Change-Id: Iff9cda880bb938b1fff3bf217c7cbf233daaf68a
Related-bug: #1515273
2015-11-26 18:21:56 +02:00
Mykyta Karpin
d57948dcfe Add os_service_default support to heat tests
Heat classes tests are modified to support
	os_service_default facts.

Change-Id: Ie8201de4158f1442eade93fee042453f4effb34c
2015-11-18 13:57:58 +02:00
Clayton O'Neill
b2f791400d Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: I032ee01505e0cbc125b0e219c436b77c93f57720
2015-08-29 03:19:02 +00:00
Sebastien Badia
d7e9fe0e7a 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
in order to be prepared for rspec 3.x move.

In details:
  * 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
  * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
  * Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper)
  * Remove un-used puppet-lint (name_containing_dash config)

Change-Id: I1b82e4f6ec0b1bbf52e86c5d127413a26277ae8c
Card: https://trello.com/c/eHXc1Ryd/4-investigate-the-necessary-change-to-be-rspec-puppet-2-0-0-compliant
2015-03-02 13:54:32 +01:00
Sebastien Badia
2aad2eba46 db: Added postgresql backend using openstacklib helper
Standardize heat module, and add postgresql backend.

Change-Id: I6f5479008f1fc82329e802a5204576e26f0e80d7
Implements: blueprint commmon-openstack-database-resource
2014-12-30 19:23:11 +01:00