{
"protocol": "http",
"port": 3000,
"stubs": [
{
"responses": [{
"inject": "function (config) { return { body: 'Hello, world!' }; }",
"behaviors": [
{ "wait": 10000 }
]
}]
}
]
}
--
You received this message because you are subscribed to the Google Groups "mountebank-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mountebank-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mountebank-discuss/e5638b2f-006e-400a-9ed3-e0321ff533e7n%40googlegroups.com.
it.only('test', async function () {
this.timeout(15000);
const stub = {
responses: [{
inject: "function Response (config) { return { data: 'grSxtDm4MDmysjAwMLSxsjAwMLEwMJyc0mVx9WXzdKB34fOg8HJvY2Xz82XkoPP1Y2Nl8/Nm9Wxs+S6cnJycnDAwMDAwMJwesTAwsR2xsjO0NTa3uDkwsbIztDU2t7g5oKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoJwesTAwsh2qqqqqqjAwMDCxMDA2sbGxtLGyNTaxObS3srfMw0I1QsPSqqqqqqqqnAM=' } ;}",
behaviors: [{ wait: 10000 }]
}]
},
request = { protocol: 'tcp', port: port, stubs: [stub] },
start = new Date();
await api.createImposter(request);
await tcp.send('!', port);
const time = new Date() - start;
console.log(time);
});
tcp imposter
POST /imposters with stubs
10021
✓ test (10022ms)
1 passing (10s)
To view this discussion on the web visit https://groups.google.com/d/msgid/mountebank-discuss/78d70af7-a01b-47b4-aaa5-67e48a6ea3c5n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mountebank-discuss/58fadba0-8378-4137-9b57-3bf4e02fc47fn%40googlegroups.com.