Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configruation ignored #1885

Open
gschaden opened this issue Jul 12, 2024 · 0 comments
Open

Configruation ignored #1885

gschaden opened this issue Jul 12, 2024 · 0 comments

Comments

@gschaden
Copy link

Describe the issue
When using the docker container configuration for detailed match failures is ignored

What you are trying to do
I tried to disable detailed match failures

MockServer version
5.15.0

To Reproduce

When running docker run --rm -it -e MOCKSERVER_DETAILED_MATCH_FAILURES=false -p 1080:1080 mockserver/mockserver:mockserver-5.15.0
match details are still shown. I also tried to map a mockserver.properties file to /config

Expected behaviour
no details should be shown

MockServer Log

2024-07-12 15:07:10 5.15.0 INFO Reading properties from property file [/config/mockserver.properties]:
  mockserver.initializationJsonPath = /config/expectations/*.json
  mockserver.detailedMatchFailures = false

2024-07-12 15:07:10 5.15.0 INFO using environment variables:

  [
        SERVER_PORT=1080,
        MOCKSERVER_DETAILED_MATCH_FAILURES=false
  ]

 and system properties:

  [
        mockserver.propertyFile=/config/mockserver.properties
  ]

 and command line options:

  [

  ]

2024-07-12 15:07:10 5.15.0 INFO loading JSON initialization file:

  /config/expectations/1.json


2024-07-12 15:08:06 5.15.0 INFO 1080 request:

  {
    "method" : "GET",
    "path" : "/",
    "headers" : {
      "content-length" : [ "0" ],
      "User-Agent" : [ "curl/7.81.0" ],
      "Accept" : [ "*/*" ]
    },
    "keepAlive" : true,
    "secure" : false,
    "protocol" : "HTTP_1_1",
  }

 didn't match expectation:

  {
    "httpRequest" : {
      "method" : "POST",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant