puppet-tripleo/releasenotes/notes/haproxy-service-endpoints-4351bd4666dfe9a7.yaml
Cédric Jeanneret 4430253701 Add unit test for tripleo::haproxy::service_endpoints
In order to get a proper unit test suits, we need to change the
separator from the "dot" to "double-semicolons".

The "." is a reserved character in YAML for hashes. In puppet world,
we commonly use "::".

Unit tests don't work if we let the "dot" separator, and apparently it's
an intended outcome with that kind of syntax.

Fact it's working in the deploy process is kind of black magic (see the
tripleo::firewall::service_rules resource for example). And the "dot"
creates something weird, as all other resources are using the standard
double-semicolon.

Change-Id: I78625a6e69f58dfb2bbad83fdd4f798cd3f4c281
Closes-Bug: 1737086
2017-12-14 09:47:43 +01:00

12 lines
451 B
YAML

---
features:
- |
Adds support for puppet standard separator notation in order to be
able to have unit tests. The "." separator notation doesn't work in
puppet-rspec, probably because "hiera" isn't called per se. This new
feature allows to get two hashes, they are merged in the definition.
fixes:
- Partly fixes `bug 1737086
<https://bugs.launchpad.net/tripleo/+bug/1737086>`__ for unit tests on
haproxy service_endpoints