Chris Connor
02/23/2024, 8:32 AM-e BASE_URL='<http://production.google.com|production.google.com>'
• Had a matching rule with "baseURL": "{{systemValue type='ENVIRONMENT' key='BASE_URL'}}",
in the response
• Made sure the container had access to it --permitted-system-keys "BASE_URL"
Do we always need to specify a list of permitted-system-keys
?
There is a line at the end of the docs which says
> If no permitted system key patterns are set, a single default of wiremock.*
will be used.
Does that mean we can prefix env variables without explicitly adding them to the permitted-system-keys list? Or am I mixing up different things here 🙂 it has been known to happen…
Thanks in advance 🙌Tom
02/23/2024, 10:24 AMChris Connor
02/23/2024, 10:38 AM-e WIREMOCK_BASE_URL='<http://production.google.com|production.google.com>'
Would the response body then expect "baseURL": "{{systemValue type='ENVIRONMENT' key='BASE_URL'}}"
or "baseURL": "{{systemValue type='ENVIRONMENT' key='WIREMOCK_BASE_URL'}}"
I can experiment further; just incase you know off the top of your head 🙏Tom
02/23/2024, 10:40 AMChris Connor
02/23/2024, 10:57 AM