Commit Graph

20 Commits

Author SHA1 Message Date
Takashi Kajinami b14a6251fd Retire puppet-monasca - Step 2: Remove Project Content
Depends-on: https://review.opendev.org/805098
Change-Id: I6d9314bef6781599a39038a5a405f84c8db9807a
2021-08-19 16:47:45 +00:00
Takashi Kajinami a17e3363dd Set fixture paths for unit tests
This change defines manifest_dir and module_path expicitly in unit
tests so that modules installed under fixtures directory is properly
loaded.

Closes-Bug: #1930403
Change-Id: Ic6af657059b55368897b04e2f537bb0b60298b31
2021-06-02 14:08:01 +09:00
Tobias Urdin 4bbbddf15e Change beaker to litmus
It's not executed, but lets cleanup.

Change-Id: I24c9aeaf30b732d6d406148034222d164e008f45
2020-08-31 21:40:05 +02:00
Tobias Urdin ddb35db3cb Convert all class usage to relative names
Change-Id: I7bd08ef57382a561d15d82b45e9acaf4f7e46e99
2019-12-08 23:11:27 +01:00
Tobias Urdin e7fe398fda Convert to rspec-puppet-facts and fix monasca::alarmdefs
Converts all testing to use rspec-puppet-facts and
removes virtualenv package since that is installed
by the ::python module otherwise it causes a resource
redeclaration.

Change-Id: I651ae89e8f355a6f68b8e3aeb4eef24b36713c2f
2018-11-26 21:37:21 +01:00
Tobias Urdin 20668ce6cb Fix missing fact for spec tests
Causing failures for the testing. [0]

[0] http://logs.openstack.org/17/587117/1/check/puppet-openstack-unit-4.8-centos-7/2311645/job-output.txt.gz

Change-Id: Ie837a79bd5970001014ad651b3ec935cafb866bd
2018-07-31 23:33:22 +02:00
Brad Klein e966b524e2 Add configuration of host_aggregate_re for libvirt plugin
Change-Id: I1380afc5144695156eb62929b4910eff15b2ae4b
2017-03-06 15:04:12 -07:00
Brad Klein 39465dfe31 Add configuration of ovs publish_router_capacity flag
Change-Id: I0431bee6f8cd92a6e01a4776f333af2e47454c1f
2017-01-27 07:59:26 -07:00
Ryan Bak bed6e5af2e Update agent init file for better shutdown
Updated to match the changes here:
https://review.openstack.org/#/c/408813/
Also adds basic tests for monasca::agent class

Change-Id: Iec74ba0003a432f2175a745ff88cba2584972604
2016-12-14 15:58:11 -07:00
Jenkins 43bce752a9 Merge "Add adminRole option to api config" 2016-12-01 01:13:30 +00:00
Ryan Bak 54ddc2f9b4 Add adminRole option to api config
Includes basic tests for the affected classes and params

Change-Id: I9e819bb89a2101c902aae8d17eef5e0adc8c7e86
2016-11-29 13:00:45 -07:00
Brad Klein 86955c96ac Add support for monasca-notification hipchat and slack
Also add spec test for the class and new parms

Change-Id: Ic4132374446b417d6bd7f0ecd6451b0070dc74e3
2016-11-16 16:32:45 -07:00
Ryan Bak c1c9f0dd52 Add new config values for rabbitmq check
Change-Id: I229c412deee8dd8ae49a1771112c5bcd84d8e407
2016-11-01 09:09:58 -06:00
Brad Klein 27845d7f19 Add config of metadata for ovs plugin
Change-Id: I206247eccb952f5ae528843d3f50035fc72d6ff0
2016-10-17 14:36:14 -06:00
bklei fcb082c499 Use puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance
Change-Id: I5da845d841e22bf6a6312f5e8f2a01373595048e
2016-02-03 14:25:44 -07:00
bklei 693c8beb1b Change default monasca api port to 8070 to avoid murano conflict
Change-Id: I4fb386debd244864770954bac35a8f06567f55b4
2015-11-03 11:53:40 -07:00
Gael Chamoulaud e585901d3f Fix rspec 3.x syntax
- Convert 'should' keyword to 'is_expected.to',
- The old ':should' syntax in rspec 3.x is deprecated in favor of ':expect'
  syntax,
- Expectations on attribute of subject with 'its'.

Change-Id: Ifba6e1b3e84d29b180954996216c31d4cf4a4509
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-09-10 12:18:17 +02:00
Yanis Guenane b29b0f1da5 Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in monasca_config has been centralized in
openstack_config.

This also applies for agent_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 :

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

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

That means that all the current :

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

can be removed in favor of :

monasca_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 :

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

Change-Id: I7b1ced3f5e2d3e9b685a4ae4122f83bea73bc877
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-08-19 12:16:57 +02:00
bklei bd3b8414c8 Add threshold engine config
Change-Id: Icca7572b7b9d8d06bd7619fbd489d5c4a180b074
2014-12-31 15:23:22 -07:00
Ryan Bak 28633ec948 Initial puppet module files
Created with "puppet module generate <USERNAME>-<MODULE NAME>" command
Gemfile and Rakefile added by hand

Change-Id: I5581abbd8602e0447cd15980fe536856f5508e64
2014-10-06 09:05:39 -06:00