Commit Graph

14 Commits

Author SHA1 Message Date
Takashi Kajinami 353d931ec1 Fix wrong test description
The value with a white space should be accepted instead of being
rejected. This change fixes the wrong test case description and makes
sure the description explains what is actually tested.

Change-Id: Ieaa303c47408fed231b2bbfc0c55b520ad63a3bf
2022-07-15 11:44:06 +09:00
Takashi Kajinami f2f27f8e76 Load libraries in a single place
This change refactors how the dependent libraries are loaded during
unit tests, and load the libraries in the base spec_helper to avoid
duplicate and redundant implementations.

Change-Id: Ia4f1a4a731de0a0ee2e4ebc47e0628fbf5f58436
2021-12-27 10:38:36 +09:00
Takashi Kajinami 97bce7569d Add support for MultiStrOpt
This replaces the provider implementation of heat_config type so that
MultiStrOpt, which is used by several options like
 - oslo_messaging_notifications/driver
 - oslo_policy/policy_dirs
is handled correctly.

Change-Id: Ifb3a302e1e15b496761112936c847217ec2116cc
2021-05-05 10:48:51 +09:00
Thomas Goirand 274e458478 Add support for heat_api_{cfn_,}uwsgi_config in Debian
This patch is adding the configuration of the number of workers,
threads, and the size of the listen queue in Debian, which uses
uwsgi to run Heat API and api-metadata. Therefore, this patch adds
two new heat_api_uwsgi_config and heat_api_cfn_uwsgi_config
providers as well as two new heat::wsgi::uwsgi_api and
heat::wsgi::uwsgi_api_cfn classes.

Change-Id: I0e226046f6e2d69c89681948cee8e8830c186489
2021-04-10 22:44:24 +02:00
Takashi Kajinami 4e760d477c Use anchor to require necessary packages
... so that correct packages are required according without re-defining
them in resource implementations.

Change-Id: Ia8e6256af44b29b9f3e5aa2ff3c7eeb6e7835a15
2020-05-04 02:21:17 +09:00
zhangyanxian f861341eff Fix typo in heat_api_paste_ini_spec.rb
TrivialFix

Change-Id: I3e5e4ffea83bef26d251a73cd1060aa49d4bac04
2017-01-20 06:09:45 +00:00
stewie925 5ee00d6ffe Add Unit Tests for heat_config type
Partial-bug: #1440401

Change-Id: I34a0eda08f52e5596e64ac6e7f5292f20d234683
2016-04-12 14:51:07 -07:00
nanhai.liao 28426bab08 Add type/provider for paste configs
Co-Authored-By: Denis Egorenko <degorenko@mirantis.com>

Change-Id: I2ea1e2ee0eed241544d6e006306990d1db995ac7
Closes-bug: #1483371
2016-01-13 20:23:32 +03:00
Yanis Guenane ed3732cc78 Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in heat_config has been centralized in
openstack_config.

Impacted methods are :

  * section
  * setting
  * separator

Also, this commit adds the fact that, when passing a specific string
(ensure_absent_val) the provider will behave as if ensure => absent was
specified. '<SERVICE DEFAULT>' is the default value for
ensure_absent_val.

The use case is the following :

heat_config { 'DEFAULT/foo' : value => 'bar' } # will work as usual

heat_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>' } # will mean absent

That means that all the current :

if $myvar {
  heat_config { 'DEFAULT/foo' : value => $myvar }
} else {
  heat_config { 'DEFAULT/foo' : ensure => absent }
}

can be removed in favor of :

heat_config { 'DEFAULT/foo' : value => $myvar }

If for any reason '<SERVICE DEFAULT>' turns out to be a valid value for
a specific parameter. One could by pass that doing the following :

heat_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>',
ensure_absent_val => 'foo' }

Change-Id: Iaaf2e5755080ef32d7d585465aaea6fd408d0ece
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-08-19 10:37:05 +02:00
Yanis Guenane 0cf89d487e Rely on autorequire for config resource ordering
Currently we specify the ordering of config resources wherever it is
necessary based on the presence of the file it will write to, or the
presence of the package in charge of providing the file it will write
to.

Those kind of ordering can be specified directly at the resource level
using the autorequire mechanism. With this patch, any config resource
will make sure the package in charge of providing the file will be
installed first.

Change-Id: I6476060c97d350640b5a254738a60e319ad522e9
2015-08-12 19:03:34 +02:00
Denis Egorenko b7d19f43bd Remove deprecated parameter stack_user_domain
According to [1], stack_user_domain parameter is deprecated,
and now will be used stack_user_domain_name parameter instead.

[1] http://docs.openstack.org/kilo/config-reference/content/orchestration-configuring-api.html

Change-Id: I558eaf311af8751897c402b3d3c2d82b4fadb07d
2015-07-30 14:31:55 +00:00
Gael Chamoulaud 89ca576fa6 Fix tabs included in d7e9fe0e
Change-Id: Ia537d3749ee4e8c18990fdb32cf648af7e4f5286
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-03-11 18:49:32 +01: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
Martin Magr 41608dc6c8 Implement Keystone domain creation
Keystone domain has to be created for Heat. This patch implements this
via helper script [1] since we don't have support for Keystone v3 API
in puppet-keystone yet. This implementation should be refactored as soon
as we will have v3 API available in puppet-keystone. For more info
please check [2].

[1] https://github.com/openstack/heat/blob/master/bin/heat-keystone-setup-domain
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1076172

Change-Id: I036a84eee6b9d0afa9a9ed96849494324ba4c4db
2014-09-18 12:27:20 +02:00