Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 28 23:57
    jamesdbloom closed #1118
  • Jan 28 23:57

    jamesdbloom on master

    Fixes #1118 simplified template… (compare)

  • Jan 28 23:01
    dependabot[bot] labeled #1159
  • Jan 28 23:01
    dependabot[bot] labeled #1159
  • Jan 28 23:01
    dependabot[bot] opened #1159
  • Jan 28 23:01

    dependabot[bot] on maven

    Bump jakarta.xml.bind-api from … (compare)

  • Jan 28 23:01
    dependabot[bot] labeled #1158
  • Jan 28 23:01
    dependabot[bot] labeled #1158
  • Jan 28 23:01
    dependabot[bot] opened #1158
  • Jan 28 23:01

    dependabot[bot] on maven

    Bump snakeyaml from 1.29 to 1.3… (compare)

  • Jan 28 23:01
    dependabot[bot] labeled #1157
  • Jan 28 23:01
    dependabot[bot] labeled #1157
  • Jan 28 23:01
    dependabot[bot] opened #1157
  • Jan 28 23:01

    dependabot[bot] on maven

    Bump jakarta.activation-api fro… (compare)

  • Jan 28 23:01
    dependabot[bot] labeled #1156
  • Jan 28 23:01
    dependabot[bot] labeled #1156
  • Jan 28 23:01

    dependabot[bot] on maven

    Bump jetty.version from 9.4.44.… (compare)

  • Jan 28 23:01
    dependabot[bot] opened #1156
  • Jan 28 21:51
    jamesdbloom commented #1118
  • Jan 28 21:51
    jamesdbloom reopened #1118
sateeshd7
@sateeshd7
Hi All, I am trying to start a Mock server as a windows service and the mock server is started but service is throwing an error as below. Is there any other way to start it as windows service:
cmd /c java.exe -jar mockserver-netty-5.11.1-jar-with-dependencies.jar -serverPort 3002
image.png
Steven Katabalwa
@StevenKatabalwa
Hi, How do I pass response body variables from a JSON specification file?
jastiv
@jastiv
Hi, Please suggest is it possible to use open api v2.0 with mock server
jastiv
@jastiv
Hi, I want to configure latency and scalability in my mock using nodejs. Is there any example available for the same?
SeenivasanSeeni
@Seenivasanseeni

Hi. there. forward is not working.
ClientAndServer clientAndServer = new ClientAndServer(port);

                .when(
                        request()
                ).forward(
                forward()
                        .withHost("www.google.com")
                        .withPort(443)
                        .withScheme(HttpForward.Scheme.HTTPS)
        );

and then when I hit at "localhost:2018/", instead of going to google search engine. i am getting 404.
Same thing is happening when trying to forward the request to facebook.com or graph.facebook.com

Patrick
@patrickjamesbarry
Is there are way to filter what is recorded in mockserver. We really like the capturing feature, however, we only want it to apply to certain matching criteria.
ebresser
@lilangbr
Hi! Does anyone know if it is possible to make the Mockserver stop storing information in memory and read only from a persisted file? (I plan to create thousands of expectations and i´d like to know if it is possible to avoid using too much memory on the machine when doing an API performance test)
Luis Pinho
@LuisCSPinho_twitter
hey @jamesdbloom is it possible to pass the -Djava.util.logging.config.file=/path/to/example_logging_configuration.properties param to the docker image? As my understanding this is not possible because of the entrypoint present on the dockerfile on the mockserver.. If I want to override this file, I can't use a docker compose?
pookdeveloper
@pookdeveloper:matrix.org
[m]
hi when I use MockServer-client in nodejs i cant start it
Traycho Ivanov
@traycho_twitter
Hello, does mockserver support JSON-RPC ?
Felipe Thiago Boso
@bosofelipe
Is possible using mock server to mock SOAP web service?
Felipe Thiago Boso
@bosofelipe
@Vampire Do you have an example mock SOAP requests in a java project?
Björn Kautler
@Vampire
What makes you think it is a good idea to ping me?
Anastasia Stanchul
@anas_stan_twitter
Hello! I'm struggling with mock server logger.
I would like to achieve the situation where the mock is logging only incoming requests and outgoing responses.
Right now mock is also writing a log explaining why a certain rule is matching or not matching. Could anyone advise how could it be done? (Google is no help unfortunately.)
Vikram Singh
@TheReprator
Björn Kautler
@Vampire
Isn't that question about the Okhttp mock web server?
That's a totally different software than this channel is about
Adrián Ríos Francia
@adridev:matrix.org
[m]
Hi guys. I'm struggling on how to use callback classes with Helm and K8s. Honestly I don't understand the doc, I tried a few ways of adding the .JAR to the configmap but with no success. Can someone point me to an example or any other resource about this topic. Thank you so much in advance.
Adrián Ríos Francia
@adridev:matrix.org
[m]
No worries, I found the solution already. Thank you anyway.
mgru
@mgru
Hi! Could anyone help on: How do I mock responses with some ritch files (xml, html etc.)?
Was struggling all day by still can mock some trivial string response, like "some response"
Is it even possible to create expectation that returns multyline response?
mgru
@mgru
OK. I see. It is <Help YourSelf> channel.
Well I figured it out - you have to use Base64 encoder - then you put encoded string to the "body" and put "type" to xml for example.
Cheers! :-)
Biswomohan Pattanaik
@Biswomohan_twitter
Chethan Prakash
@chethan
Hi Is there a ui to generate and maintain the JSON expectations file
Our file has become big and unwieldy
Sergey
@romankovsv
Hi guys, I am looking how I can set a random port for mock server ?
1 reply
Vasudevan
@yesveesteps
Hi Team, i have joined this room to get some help regarding the error am facing as below "error: "failed to connect to remote socket while forwarding request" ,
image.png
this is the simple forward i am trying to achieve, but its failing, any inputs/suggestions would be greatly appreicated
ponmanikandan b
@ponmanikandanit_twitter
I try to configure the TLS in mock server

version: '3.6'
networks:
default:
name: infinity-network
services:

mockServer:
image: ${MOCKSERVER_IMAGE}
ports:

  - 9797:1080
environment:
  MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties
volumes:
  - ./config:/config
below my docker compose file and and mockeserver.properties
image.png
image.png
i copied the mockerserver.properties in my local machine config folder and mapped the volumes in compose files
ponmanikandan b
@ponmanikandanit_twitter
But it working as normal
can any one give eample to configure the same
TLS in docker image
ponmanikandan b
@ponmanikandanit_twitter

javax.net.ssl|ALL|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.293 IST|X509Authentication.java:215|No X.509 cert selected for EC
javax.net.ssl|WARNING|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.293 IST|CertificateRequest.java:764|Unavailable authentication scheme: ecdsa_secp521r1_sha512
javax.net.ssl|ALL|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.293 IST|X509Authentication.java:215|No X.509 cert selected for RSA
javax.net.ssl|WARNING|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.294 IST|CertificateRequest.java:764|Unavailable authentication scheme: rsa_pkcs1_sha512
javax.net.ssl|ALL|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.294 IST|X509Authentication.java:215|No X.509 cert selected for EC
javax.net.ssl|WARNING|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.294 IST|CertificateRequest.java:764|Unavailable authentication scheme: ecdsa_secp384r1_sha384
javax.net.ssl|ALL|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.294 IST|X509Authentication.java:215|No X.509 cert selected for RSA
javax.net.ssl|WARNING|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.294 IST|CertificateRequest.java:764|Unavailable authentication scheme: rsa_pkcs1_sha384
javax.net.ssl|ALL|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.294 IST|X509Authentication.java:215|No X.509 cert selected for EC
javax.net.ssl|WARNING|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.294 IST|CertificateRequest.java:764|Unavailable authentication scheme: ecdsa_secp256r1_sha256
javax.net.ssl|ALL|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.295 IST|X509Authentication.java:215|No X.509 cert selected for RSA
javax.net.ssl|WARNING|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.295 IST|CertificateRequest.java:764|Unavailable authentication scheme: rsa_pkcs1_sha256
javax.net.ssl|ALL|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.295 IST|X509Authentication.java:215|No X.509 cert selected for DSA
javax.net.ssl|WARNING|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.295 IST|CertificateRequest.java:764|Unavailable authentication scheme: dsa_sha256
javax.net.ssl|ALL|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.295 IST|X509Authentication.java:215|No X.509 cert selected for EC
javax.net.ssl|WARNING|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.295 IST|CertificateRequest.java:764|Unavailable authentication scheme: ecdsa_sha224
javax.net.ssl|ALL|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.295 IST|X509Authentication.java:215|No X.509 cert selected for RSA
javax.net.ssl|WARNING|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.295 IST|CertificateRequest.java:764|Unavailable authentication scheme: rsa_sha224
javax.net.ssl|ALL|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.295 IST|X509Authentication.java:215|No X.509 cert selected for DSA
javax.net.ssl|WARNING|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.295 IST|CertificateRequest.java:764|Unavailable authentication scheme: dsa_sha224
javax.net.ssl|ALL|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.295 IST|X509Authentication.java:215|No X.509 cert selected for EC
javax.net.ssl|WARNING|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.295 IST|CertificateRequest.java:764|Unavailable authentication scheme: ecdsa_sha1
javax.net.ssl|ALL|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.296 IST|X509Authentication.java:215|No X.509 cert selected for RSA
javax.net.ssl|WARNING|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.296 IST|CertificateRequest.java:764|Unavailable authentication scheme: rsa_pkcs1_sha1
javax.net.ssl|ALL|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.296 IST|X509Authentication.java:215|No X.509 cert selected for DSA
javax.net.ssl|WARNING|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.296 IST|CertificateRequest.java:764|Unavailable authentication scheme: dsa_sha1
javax.net.ssl|WARNING|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.296 IST|CertificateRequest.java:774|No available authentication scheme
javax.net.ssl|FINE|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.297 IST|ServerHelloDone.java:151|Consuming ServerHelloDone handshake message (

<empty>
)
javax.net.ssl|FINE|0E|AsyncHttpClient-3-1|2021-11-12 24:19:18.297 IST|CertificateMessage.java:297|No X.509 certificate for client authentication, use empty Certificate message inste

getting above exception while trying to connect mock server via mutual tls, but one way ssl its working fine.
ponmanikandan b
@ponmanikandanit_twitter
Is it possible to run the mock server in both http and https mode, ie one port in http and another one port in htts
Ponmanikandan Boothalingam
@ponmanikandan:matrix.org
[m]
Is it possible to run the mock server in both http and https mode, ie one port in http and another one port in https*
Ponmanikandan Boothalingam
@ponmanikandan:matrix.org
[m]
@jamesdbloom
Björn Kautler
@Vampire
Tagging him will not help, it seems he completely disappeared.
Iirc mock server does run in both mode, but it shares the same port and just detects which communication is coming in.
Andreea Todasca
@rammy19:matrix.org
[m]
Hey. I have a standalone server running and it uses a json file for mappings. Is it possible to return some random/dynamic data in there? For instance I want random ids.