Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 06 00:01

    jamesdbloom on maven

    (compare)

  • Oct 06 00:01

    jamesdbloom on master

    build(deps): bump json-unit-cor… Merge pull request #1521 from m… (compare)

  • Oct 06 00:01
    jamesdbloom closed #1521
  • Oct 05 23:02

    dependabot[bot] on maven

    build(deps): bump json-unit-cor… (compare)

  • Oct 05 23:02
    dependabot[bot] labeled #1521
  • Oct 05 23:02
    dependabot[bot] labeled #1521
  • Oct 05 23:02
    dependabot[bot] opened #1521
  • Oct 05 14:48
    AhmerFarooq edited #1520
  • Oct 05 14:46
    AhmerFarooq opened #1520
  • Oct 05 14:45
    AhmerFarooq labeled #1520
  • Oct 04 06:36
    ortex labeled #1519
  • Oct 04 06:36
    ortex opened #1519
  • Sep 30 17:29

    jamesdbloom on master

    Fix documentation for PluginExp… Merge pull request #1518 from j… (compare)

  • Sep 30 17:29
    jamesdbloom closed #1518
  • Sep 30 16:30
    jlubawy opened #1518
  • Sep 30 00:29

    jamesdbloom on maven

    (compare)

  • Sep 30 00:29

    jamesdbloom on master

    build(deps): bump kotlin-stdlib… Merge pull request #1517 from m… (compare)

  • Sep 30 00:29
    jamesdbloom closed #1517
  • Sep 30 00:29

    jamesdbloom on maven

    (compare)

  • Sep 30 00:29

    jamesdbloom on master

    build(deps): bump bouncycastle.… Merge pull request #1516 from m… (compare)

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.
msallam
@msallam:matrix.org
[m]
Hi, I am trying to deploy MockServer WAR on PCF, any documentation how to do it ?
lucifer
@timmonscharlie413
does anyone have unblocked nodes/proxy
Gabriel Pulido
@gpulido
Hello, we are using the mockserver to mock an api during some LNP test and we are using just one expectation. We are hitting the mockserver with 130 request/second. If the expectation is just a path it seems to work properly but if we add a querystringparameter with just one parameter and a string the mockserver crashes with an Out of Memory problem. We have disabled the logs, but it still crash after 2 minutes. Is there anything more that we can disable so we don't have the Out Of Memory ?
kitkars
@kitkars
Hi Guys,
Is the mockserver dashboard working fine for you all?
I run this docker command, then I try to access http://localhost:1080/mockserver/dashboard and page is hanging.
docker run -p 1080:1080 mockserver/mockserver
hyeoncheol kim
@hyeoncheolkim91
Hello, I'm trying to create jsonbody for my expectation. but I'm not sure what to import to use .withBody( json()). But I can't find json() method
bhattinaumesh
@bhattinaumesh
Hello, i want to set expectation with optional header which can be ignored which request comes in, how to do it?
xw
@wll8
hi
angus
@dangus21
is there any way to increase the java heap memory size in the .jar version of the mockserver?
Björn Kautler
@Vampire
Just use usual JVM arge?
Venkata Lakshmana Reddy Dwarampudi
@vlnrd
Hello Team
i want to mock a API behavior in which
on first hit i want 200 response and
and in second hit i want 500
symultenouly
is it possible using mock server
Björn Kautler
@Vampire
Yes
Venkata Lakshmana Reddy Dwarampudi
@vlnrd
@Vampire please let me know how to do it any document might help
Make an expectation with times 1 and return 200 and then the same expectation again and return 500
Venkata Lakshmana Reddy Dwarampudi
@vlnrd
if i want to repeat this infinately ?
Venkata Lakshmana Reddy Dwarampudi
@vlnrd
hello @Vampire, hope you are doing well
i want to get success response and failure response Alternatively for defined times or may be infinitely . is it possible to achieve with mock-server.
xw
@wll8
yes
any js
      '/test'(req, res) {
        tag = tag + 1
        res.status(tag % 2 ? 500 : 200)
      },
Venkata Lakshmana Reddy Dwarampudi
@vlnrd
Hello Team,
how to scale mock-server in eks cluster?
AnnaEleeva
@AnnaEleeva
Hello
can I get a random port using port 0 ?
ClientAndServer.startClientAndServer(0)
ideadapt
@ideadapt:matrix.org
[m]
I am using the java client to create an expectation for my openapi spec. this works. however, now i would like to add a delay to the responses. how can i do that? simply adding another expection that matches all "GET" requests and a delay response does not work, it is never matched (although it matches when the openapi specs are not created).
gw4e
@gw4e
I see a lot samples here and its great. As a beginner, it is hard to find out a simple node sample that shows how to just forward an https request . I can forward the request but I'm getting.a 403. if this is a simple forward why did i get this forbidden ???
masud
@masudahmed:matrix.org
[m]
I am using a java client that is accessing protocol http.H2. I need to support or sync with the protocol http.H2 of mock server along with the current default one 1.1. How ll I achieve this?
aleksandrj
@aleksandrj:matrix.org
[m]

So we are calling retrieveRecordedExpectations() but the returned response only has the path value. The method value and the body value are both null. Am i misunderstanding something? We were expecting to get all the data that was sent in.

“httpRequest”: {
“not”: null,
“logCorrelationId”: null,
“method”: {
“value”: “”,
“not”: false,
“parameterStyle”: null,
“optional”: false,
“blank”: true
},
“path”: {
“value”: “.v1/syncthreads/?.“,
“not”: false,
“parameterStyle”: null,
“optional”: false,
“blank”: false
},
“pathParameters”: null,
“queryStringParameters”: null,
“body”: null,
“headers”: null,

aleksandrj
@aleksandrj:matrix.org
[m]

:point_up: Edit: So we are calling retrieveRecordedExpectations() but the returned response only has the path value. The method value and the body value are both null. Am i misunderstanding something? We were expecting to get all the data that was sent in.

“httpRequest”: {
“not”: null,
“logCorrelationId”: null,
“method”: {
“value”: “”,
“not”: false,
“parameterStyle”: null,
“optional”: false,
“blank”: true
},
“path”: {
“value”: “.v1/syncthreads/?.“,
“not”: false,
“parameterStyle”: null,
“optional”: false,
“blank”: false
},
“pathParameters”: null,
“queryStringParameters”: null,
“body”: null,
“headers”: null,

OK i figured it out, i was using the callback to build and return the response. now i am using the response literal.

chatay
@chatay:matrix.org
[m]

Hello,

We are considering to use the mockServer to imitate third party service request call with c#. there are database cases happening so just wondering how should we proceed

just hoping to get your opinion on this.