sncf-connect-tech / hesperides

Configuration management tool providing universal text file templating and properties editing through a REST API or a webapp (backend part)
https://voyages-sncf-technologies.github.io/hesperides-gui/
GNU General Public License v3.0
36 stars 28 forks source link

Bug with /diff when when an iterable property only exists on the left side #818

Closed Lucas-C closed 4 years ago

Lucas-C commented 4 years ago

The following scenario currently triggers an HTTP error 500:

  Scenario: comparison including an iterable property that only exists on the left side
    Given an existing module with this template content
      """
      {{#iterable_property}}
        {{ simple_property }}
      {{/iterable_property}}
      """
    And another existing module
    And an existing platform with those modules
    When I get the properties diff on final values between the currently deployed modules
    Then the resulting diff matches
      | onlyLeft | onlyRight | common | differing |
      |          |           |        |           |