When using proxy stubs, neither the responses[$].proxy.addDecorateBehavior nor responses[$].behaviors.decorate capabilities have any effect.
e.g.:
{
"protocol": "graphql",
"port": {{graphql-port}},
"name": "GraphQL Backend",
"schemaEndpoint": "{{gql-schema-endpoint}}",
"stubs": [
{
"responses": [
{
"proxy": {
"mode": "proxyOnce",
"to": "{{gql-schema-endpoint}}"
},
"behaviors": [
{
"decorate": "config => { config.logger.info('Decorator invoked'); }"
}
]
}
]
}
]
}
or
{
"protocol": "graphql",
"port": {{graphql-port}},
"name": "GraphQL Backend",
"schemaEndpoint": "{{gql-schema-endpoint}}",
"stubs": [
{
"responses": [
{
"proxy": {
"mode": "proxyOnce",
"to": "{{gql-schema-endpoint}}",
"addDecorateBehavior": "config => { config.logger.info('Decorator invoked'); }"
}
}
]
}
]
}
Upon invoking that stub, I would expect to see a message in the mountebank console/logs, but nothing appears.
When using proxy stubs, neither the
responses[$].proxy.addDecorateBehaviornorresponses[$].behaviors.decoratecapabilities have any effect.e.g.:
or
Upon invoking that stub, I would expect to see a message in the mountebank console/logs, but nothing appears.