Inheritance in Pebble templates

Hi,

I’m using Pebble templates to generate the request bodies I’m using for my calls, now one of the main features of Pebble is that it supports inheritance but I can’t get it to work. I have a parent template search-filter.peb

`
{
“first”: 0,
“rows”: 10,
“filters”: {
{% block additionalFilter %} {% endblock %}
}
}

`

and a child template

`
{% extends “search-filter.peb” %}

{% block additionalFilter %}
“status”: “PENDING”
{% endblock %}

`

and I import this into my call like this:

`
val search: ChainBuilder = exec(http(“Search”)
.post("/my-service/search")
.body(PebbleFileBody(“child-filter.peb”)).asJson
.headers(Config.requestHeaders)
)

`

but when I execute the test I get Http 400 errors because I can see in the TRACE logs that the body used in the call is “child-filter”

`

I can reproduce the issue on both 3.0.3 and 3.1.1:

stringBody=search-filter.peb

While it “works” when using PebbleFileBody(“search-filter.peb”), not counting the missing block additionalFilter:

stringBody={
“first”: 0,
“rows”: 10,
“filters”: {
}
}

We will need to investigate.

FYI, I’ve logged a feature request: https://github.com/gatling/gatling/issues/3735

Cheers,