Skip to content
#

mock-server

Here are 476 public repositories matching this topic...

piyushgupta243
piyushgupta243 commented Nov 2, 2021

Issue

The response header does not reflect the correct version for HTTP2 requests. Even though, wiremock replies in h2 but the version in the response header shows "HTTP/1.1 200". This is caused by the hardcoded value in the toString() method of Response.java class

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        **sb.append("HTTP

MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding).

  • Updated Nov 18, 2021
  • Java
rohanKanojia
rohanKanojia commented Jul 27, 2021

Right now ErrorMessageTest.testCustomMessage is written in a strange way.

  • Instead of using assertThrows we're catching an exception.
  • There is a custom fail() method that does nothing.
  • We're not asserting anything, see sonar smell here[0]

https://github.com/fabric8io/kubernetes-client/blob/d1740ffeaa624bd63b6d929b25d764a477c1c17e/kubernetes-tests/src/test/java/io/fabric8/kubernete

Improve this page

Add a description, image, and links to the mock-server topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the mock-server topic, visit your repo's landing page and select "manage topics."

Learn more