Skip to content

Eliminate Wiremock output from a build log #1248

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

Closed
php-coder opened this issue Jan 26, 2020 · 0 comments
Closed

Eliminate Wiremock output from a build log #1248

php-coder opened this issue Jan 26, 2020 · 0 comments

Comments

@php-coder
Copy link
Owner

Wiremock outputs the following messages to a build log:

                                                Request was not matched
                                               =======================

-----------------------------------------------------------------------------------------------------------------------
| Closest stub                                             | Request                                                  |
-----------------------------------------------------------------------------------------------------------------------
                                                           |
GET                                                        | GET
/series/not-image-file                                     | /series/import/request-logic/catalog-numbers-in-descripti<<<<< URL does not match
                                                           | on.html
                                                           |
                                                           |
-----------------------------------------------------------------------------------------------------------------------

.2020-01-26 15:45:32.634
                                               Request was not matched
                                               =======================

-----------------------------------------------------------------------------------------------------------------------
| Closest stub                                             | Request                                                  |
-----------------------------------------------------------------------------------------------------------------------
                                                           |
GET                                                        | GET
/series/empty-jpeg-file                                    | /series/import/request-logic/existing-seller.html   <<<<< URL does not match
                                                           |
                                                           |
-----------------------------------------------------------------------------------------------------------------------

.2020-01-26 15:45:33.302
                                               Request was not matched
                                               =======================

-----------------------------------------------------------------------------------------------------------------------
| Closest stub                                             | Request                                                  |
-----------------------------------------------------------------------------------------------------------------------
                                                           |
GET                                                        | GET
/series/not-image-file                                     | /series/import/request-logic/new-seller.html        <<<<< URL does not match
                                                           |
                                                           |
-----------------------------------------------------------------------------------------------------------------------

..2020-01-26 15:45:34.061
                                               Request was not matched
                                               =======================

-----------------------------------------------------------------------------------------------------------------------
| Closest stub                                             | Request                                                  |
-----------------------------------------------------------------------------------------------------------------------
                                                           |
GET                                                        | GET
/series/empty-jpeg-file                                    | /series/import/request-logic/simple.html            <<<<< URL does not match
                                                           |
                                                           |
-----------------------------------------------------------------------------------------------------------------------

Example build log: https://travis-ci.org/php-coder/mystamps/jobs/642046563

After debugging it has turned out that these are false positives: these requests serve static resources but Wiremock first tries to find mocks for them and as none exists it logs such messages. I've created an issue to the upstream: wiremock/wiremock#1247

As a workaround we can:

  • turn off the messages from corresponding logger
  • use mocks instead of stubs
@php-coder php-coder added this to the 0.4.3 milestone Jan 26, 2020
@php-coder php-coder self-assigned this Jan 26, 2020
php-coder added a commit that referenced this issue Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant