@mbtest/mountebank 2.9.2-beta.9050
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +94 -0
- package/bin/mb +136 -0
- package/package.json +71 -0
- package/releases.json +52 -0
- package/src/cli/api.js +112 -0
- package/src/cli/cli.js +420 -0
- package/src/controllers/configController.js +64 -0
- package/src/controllers/feedController.js +115 -0
- package/src/controllers/homeController.js +58 -0
- package/src/controllers/imposterController.js +328 -0
- package/src/controllers/impostersController.js +215 -0
- package/src/controllers/logsController.js +52 -0
- package/src/models/behaviors.js +553 -0
- package/src/models/behaviorsValidator.js +186 -0
- package/src/models/compatibility.js +133 -0
- package/src/models/dryRunValidator.js +261 -0
- package/src/models/filesystemBackedImpostersRepository.js +908 -0
- package/src/models/http/baseHttpServer.js +207 -0
- package/src/models/http/headersMap.js +87 -0
- package/src/models/http/httpProxy.js +230 -0
- package/src/models/http/httpRequest.js +82 -0
- package/src/models/http/httpServer.js +18 -0
- package/src/models/http/index.js +18 -0
- package/src/models/https/cert/mb-cert.pem +20 -0
- package/src/models/https/cert/mb-csr.pem +16 -0
- package/src/models/https/cert/mb-key.pem +27 -0
- package/src/models/https/httpsServer.js +42 -0
- package/src/models/https/index.js +18 -0
- package/src/models/imposter.js +243 -0
- package/src/models/imposterPrinter.js +120 -0
- package/src/models/impostersRepository.js +49 -0
- package/src/models/inMemoryImpostersRepository.js +418 -0
- package/src/models/jsonpath.js +44 -0
- package/src/models/mbConnection.js +107 -0
- package/src/models/predicates.js +438 -0
- package/src/models/protocols.js +242 -0
- package/src/models/responseResolver.js +398 -0
- package/src/models/smtp/index.js +16 -0
- package/src/models/smtp/smtpRequest.js +60 -0
- package/src/models/smtp/smtpServer.js +109 -0
- package/src/models/tcp/index.js +18 -0
- package/src/models/tcp/tcpProxy.js +110 -0
- package/src/models/tcp/tcpRequest.js +23 -0
- package/src/models/tcp/tcpServer.js +156 -0
- package/src/models/tcp/tcpValidator.js +19 -0
- package/src/models/xpath.js +95 -0
- package/src/mountebank.js +245 -0
- package/src/public/images/arrow_down.png +0 -0
- package/src/public/images/arrow_up.png +0 -0
- package/src/public/images/book.jpg +0 -0
- package/src/public/images/dataflow.png +0 -0
- package/src/public/images/favicon.ico +0 -0
- package/src/public/images/forkme_right_orange_ff7600.png +0 -0
- package/src/public/images/mountebank.png +0 -0
- package/src/public/images/overview.gif +0 -0
- package/src/public/images/quote.png +0 -0
- package/src/public/images/tw-logo.png +0 -0
- package/src/public/scripts/jquery/jquery-3.6.1.min.js +2 -0
- package/src/public/scripts/urlHashHandler.js +31 -0
- package/src/public/stylesheets/application.css +424 -0
- package/src/public/stylesheets/ie.css +14 -0
- package/src/public/stylesheets/imposters.css +121 -0
- package/src/public/stylesheets/jqueryui/1.10.4/themes/smoothness/jquery-ui.css +1178 -0
- package/src/util/combinators.js +68 -0
- package/src/util/date.js +51 -0
- package/src/util/errors.js +55 -0
- package/src/util/helpers.js +131 -0
- package/src/util/inherit.js +28 -0
- package/src/util/ip.js +54 -0
- package/src/util/logger.js +83 -0
- package/src/util/middleware.js +256 -0
- package/src/util/scopedLogger.js +47 -0
- package/src/views/_footer.ejs +20 -0
- package/src/views/_header.ejs +113 -0
- package/src/views/_imposter.ejs +8 -0
- package/src/views/config.ejs +71 -0
- package/src/views/docs/api/behaviors/copy.ejs +427 -0
- package/src/views/docs/api/behaviors/decorate.ejs +182 -0
- package/src/views/docs/api/behaviors/lookup.ejs +220 -0
- package/src/views/docs/api/behaviors/shellTransform.ejs +153 -0
- package/src/views/docs/api/behaviors/wait.ejs +121 -0
- package/src/views/docs/api/behaviors.ejs +141 -0
- package/src/views/docs/api/contracts/addStub-description.ejs +10 -0
- package/src/views/docs/api/contracts/addStub.ejs +10 -0
- package/src/views/docs/api/contracts/config-description.ejs +32 -0
- package/src/views/docs/api/contracts/config.ejs +23 -0
- package/src/views/docs/api/contracts/home-description.ejs +18 -0
- package/src/views/docs/api/contracts/home.ejs +13 -0
- package/src/views/docs/api/contracts/imposter-description.ejs +439 -0
- package/src/views/docs/api/contracts/imposter.ejs +182 -0
- package/src/views/docs/api/contracts/imposters-description.ejs +13 -0
- package/src/views/docs/api/contracts/imposters.ejs +13 -0
- package/src/views/docs/api/contracts/logs-description.ejs +3 -0
- package/src/views/docs/api/contracts/logs.ejs +14 -0
- package/src/views/docs/api/contracts/stub-description.ejs +4 -0
- package/src/views/docs/api/contracts/stub.ejs +7 -0
- package/src/views/docs/api/contracts/stubs-description.ejs +4 -0
- package/src/views/docs/api/contracts/stubs.ejs +11 -0
- package/src/views/docs/api/contracts.ejs +133 -0
- package/src/views/docs/api/errors.ejs +64 -0
- package/src/views/docs/api/fault/connectionReset.ejs +31 -0
- package/src/views/docs/api/fault/randomDataThenClose.ejs +31 -0
- package/src/views/docs/api/faults.ejs +57 -0
- package/src/views/docs/api/injection.ejs +426 -0
- package/src/views/docs/api/json.ejs +205 -0
- package/src/views/docs/api/jsonpath.ejs +210 -0
- package/src/views/docs/api/mocks.ejs +130 -0
- package/src/views/docs/api/overview.ejs +968 -0
- package/src/views/docs/api/predicates/and.ejs +62 -0
- package/src/views/docs/api/predicates/contains.ejs +64 -0
- package/src/views/docs/api/predicates/deepEquals.ejs +114 -0
- package/src/views/docs/api/predicates/endsWith.ejs +66 -0
- package/src/views/docs/api/predicates/equals.ejs +125 -0
- package/src/views/docs/api/predicates/exists.ejs +118 -0
- package/src/views/docs/api/predicates/inject.ejs +67 -0
- package/src/views/docs/api/predicates/matches.ejs +66 -0
- package/src/views/docs/api/predicates/not.ejs +52 -0
- package/src/views/docs/api/predicates/or.ejs +79 -0
- package/src/views/docs/api/predicates/startsWith.ejs +62 -0
- package/src/views/docs/api/predicates.ejs +382 -0
- package/src/views/docs/api/proxies.ejs +191 -0
- package/src/views/docs/api/proxy/addDecorateBehavior.ejs +115 -0
- package/src/views/docs/api/proxy/addWaitBehavior.ejs +96 -0
- package/src/views/docs/api/proxy/injectHeaders.ejs +91 -0
- package/src/views/docs/api/proxy/predicateGenerators.ejs +600 -0
- package/src/views/docs/api/proxy/proxyModes.ejs +495 -0
- package/src/views/docs/api/stubs.ejs +391 -0
- package/src/views/docs/api/xpath.ejs +281 -0
- package/src/views/docs/cli/configFiles.ejs +133 -0
- package/src/views/docs/cli/customFormatters.ejs +53 -0
- package/src/views/docs/cli/help.ejs +6 -0
- package/src/views/docs/cli/replay.ejs +42 -0
- package/src/views/docs/cli/restart.ejs +10 -0
- package/src/views/docs/cli/save.ejs +68 -0
- package/src/views/docs/cli/start.ejs +234 -0
- package/src/views/docs/cli/stop.ejs +32 -0
- package/src/views/docs/commandLine.ejs +93 -0
- package/src/views/docs/communityExtensions.ejs +233 -0
- package/src/views/docs/gettingStarted.ejs +146 -0
- package/src/views/docs/mentalModel.ejs +51 -0
- package/src/views/docs/protocols/custom.ejs +231 -0
- package/src/views/docs/protocols/http.ejs +238 -0
- package/src/views/docs/protocols/https.ejs +246 -0
- package/src/views/docs/protocols/smtp.ejs +142 -0
- package/src/views/docs/protocols/tcp.ejs +431 -0
- package/src/views/docs/security.ejs +38 -0
- package/src/views/faqs.ejs +65 -0
- package/src/views/feed.ejs +33 -0
- package/src/views/imposter.ejs +22 -0
- package/src/views/imposters.ejs +33 -0
- package/src/views/index.ejs +89 -0
- package/src/views/license.ejs +30 -0
- package/src/views/logs.ejs +77 -0
- package/src/views/releases/v1.1.0.ejs +55 -0
- package/src/views/releases/v1.1.36.ejs +84 -0
- package/src/views/releases/v1.1.72.ejs +92 -0
- package/src/views/releases/v1.10.0.ejs +108 -0
- package/src/views/releases/v1.11.0.ejs +109 -0
- package/src/views/releases/v1.12.0.ejs +96 -0
- package/src/views/releases/v1.13.0.ejs +118 -0
- package/src/views/releases/v1.14.0.ejs +107 -0
- package/src/views/releases/v1.14.1.ejs +94 -0
- package/src/views/releases/v1.15.0.ejs +113 -0
- package/src/views/releases/v1.16.0.ejs +104 -0
- package/src/views/releases/v1.2.0.ejs +78 -0
- package/src/views/releases/v1.2.103.ejs +86 -0
- package/src/views/releases/v1.2.122.ejs +86 -0
- package/src/views/releases/v1.2.30.ejs +84 -0
- package/src/views/releases/v1.2.45.ejs +84 -0
- package/src/views/releases/v1.2.56.ejs +79 -0
- package/src/views/releases/v1.3.0.ejs +86 -0
- package/src/views/releases/v1.3.1.ejs +100 -0
- package/src/views/releases/v1.4.0.ejs +96 -0
- package/src/views/releases/v1.4.1.ejs +103 -0
- package/src/views/releases/v1.4.2.ejs +100 -0
- package/src/views/releases/v1.4.3.ejs +113 -0
- package/src/views/releases/v1.5.0.ejs +104 -0
- package/src/views/releases/v1.5.1.ejs +91 -0
- package/src/views/releases/v1.6.0.ejs +109 -0
- package/src/views/releases/v1.7.0.ejs +113 -0
- package/src/views/releases/v1.7.1.ejs +90 -0
- package/src/views/releases/v1.7.2.ejs +96 -0
- package/src/views/releases/v1.8.0.ejs +121 -0
- package/src/views/releases/v1.9.0.ejs +111 -0
- package/src/views/releases/v2.0.0.ejs +159 -0
- package/src/views/releases/v2.1.0.ejs +121 -0
- package/src/views/releases/v2.1.1.ejs +106 -0
- package/src/views/releases/v2.1.2.ejs +84 -0
- package/src/views/releases/v2.2.0.ejs +115 -0
- package/src/views/releases/v2.2.1.ejs +102 -0
- package/src/views/releases/v2.3.0.ejs +121 -0
- package/src/views/releases/v2.3.1.ejs +100 -0
- package/src/views/releases/v2.3.2.ejs +102 -0
- package/src/views/releases/v2.3.3.ejs +97 -0
- package/src/views/releases/v2.4.0.ejs +114 -0
- package/src/views/releases/v2.5.0.ejs +51 -0
- package/src/views/releases/v2.6.0.ejs +35 -0
- package/src/views/releases/v2.7.0.ejs +32 -0
- package/src/views/releases/v2.8.0.ejs +36 -0
- package/src/views/releases/v2.8.1.ejs +7 -0
- package/src/views/releases/v2.8.2.ejs +26 -0
- package/src/views/releases/v2.9.0.ejs +32 -0
- package/src/views/releases/v2.9.1.ejs +10 -0
- package/src/views/releases.ejs +26 -0
- package/src/views/sitemap.ejs +36 -0
- package/src/views/support.ejs +14 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<h1>v<%= releaseVersion %></h1>
|
|
2
|
+
|
|
3
|
+
<p class='info-icon'>Be sure to keep up with the latest releases by subscribing to the
|
|
4
|
+
<a href='http://www.mbtest.dev/feed'>ATOM feed</a>.</p>
|
|
5
|
+
|
|
6
|
+
<p>v<%= releaseVersion %> is primarily a long overdue bug fix release.</p>
|
|
7
|
+
|
|
8
|
+
<h2>New Features</h2>
|
|
9
|
+
<ul class='bullet-list'>
|
|
10
|
+
<li>Link to the first contributor created protocol, an <a href='https://gitlab.com/dAnjou/mountebank-ldap'>LDAP implementation</a>
|
|
11
|
+
by Max Ludwig</li>
|
|
12
|
+
<li>Support <a href='//<%= host %>/docs/api/behaviors#behavior-lookup'>custom CSV delimiter</a> to the <code>lookup</code> behavior</li>
|
|
13
|
+
</ul>
|
|
14
|
+
|
|
15
|
+
<h2>Bug Fixes</h2>
|
|
16
|
+
<ul class='bullet-list'>
|
|
17
|
+
<li>Fix recording of <code>proxyAlways</code> stubs to ensure multiple responses saved in stub with same predicates</li>
|
|
18
|
+
<li>Avoid errors of too many unauthed SMTP commands</li>
|
|
19
|
+
<li>Remove unneeded <code>filename</code> literal parameter to <a href='//<%= host %>/docs/commandLine#config-file'>
|
|
20
|
+
<code>stringify</code> config file function</a></li>
|
|
21
|
+
<li>Various npm dependency security patches</li>
|
|
22
|
+
</ul>
|
|
23
|
+
|
|
24
|
+
<h2>Contributors</h2>
|
|
25
|
+
<p>Many thanks to the following kind folks for help with this release, either through bug reports,
|
|
26
|
+
suggestions, or direct code contributions:</p>
|
|
27
|
+
|
|
28
|
+
<ul class='bullet-list'>
|
|
29
|
+
<li>Max Ludwig</li>
|
|
30
|
+
<li>Joey Guerra</li>
|
|
31
|
+
<li>Jean Paul Curinaupa Taype</li>
|
|
32
|
+
<li>Dheeraj Bhaskar</li>
|
|
33
|
+
<li>James Raspass</li>
|
|
34
|
+
</ul>
|
|
35
|
+
|
|
36
|
+
<h2>Install</h2>
|
|
37
|
+
|
|
38
|
+
<pre><code>npm install -g mountebank@<%= releaseVersion %></code></pre>
|
|
39
|
+
|
|
40
|
+
<p>or:</p>
|
|
41
|
+
|
|
42
|
+
<table>
|
|
43
|
+
<tr>
|
|
44
|
+
<th>Option</th>
|
|
45
|
+
<th>node.js required?</th>
|
|
46
|
+
<th>sudo required?</th>
|
|
47
|
+
<th>links</th>
|
|
48
|
+
<th>Description</th>
|
|
49
|
+
</tr>
|
|
50
|
+
<tr>
|
|
51
|
+
<td>Self-contained archives</td>
|
|
52
|
+
<td>No</td>
|
|
53
|
+
<td>No</td>
|
|
54
|
+
<td style="min-width: 5em;">
|
|
55
|
+
<ul>
|
|
56
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-darwin-x64.tar.gz">osx</a></li>
|
|
57
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-linux-x86.tar.gz">linux x86</a></li>
|
|
58
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-linux-x64.tar.gz">linux x64</a></li>
|
|
59
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-win-x86.zip">win x86<sup>*</sup></a></li>
|
|
60
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-win-x64.zip">win x64<sup>*</sup></a></li>
|
|
61
|
+
</ul>
|
|
62
|
+
</td>
|
|
63
|
+
<td>Simply unpack and run <code>mb</code> from inside</td>
|
|
64
|
+
</tr>
|
|
65
|
+
<tr>
|
|
66
|
+
<td>OS-specific packages</td>
|
|
67
|
+
<td>No</td>
|
|
68
|
+
<td>Yes</td>
|
|
69
|
+
<td>
|
|
70
|
+
<ul>
|
|
71
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>.pkg">pkg</a></li>
|
|
72
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-<%= releaseVersion %>-1.x86_64.rpm">rpm</a></li>
|
|
73
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank_<%= releaseVersion %>_amd64.deb">deb</a></li>
|
|
74
|
+
</ul>
|
|
75
|
+
</td>
|
|
76
|
+
<td>Puts <code>mb</code> at <code>/usr/local/bin</code>, which is generally in the <code>PATH</code>.</td>
|
|
77
|
+
</tr>
|
|
78
|
+
<tr>
|
|
79
|
+
<td>source tarball</td>
|
|
80
|
+
<td>Yes</td>
|
|
81
|
+
<td>No</td>
|
|
82
|
+
<td>
|
|
83
|
+
<ul>
|
|
84
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-npm.tar.gz">mb</a></li>
|
|
85
|
+
</ul>
|
|
86
|
+
</td>
|
|
87
|
+
<td>source tarball if you roll that way.</td>
|
|
88
|
+
</tr>
|
|
89
|
+
</table>
|
|
90
|
+
|
|
91
|
+
<h2 id='windows-path-limitations'>Windows path limitations</h2>
|
|
92
|
+
|
|
93
|
+
<p><sup>*</sup>mountebank wishes very much for your Windows experience to be hassle-free, but he is simply not qualified to address
|
|
94
|
+
a particular constraint of Windows Explorer. For legacy reasons, some Windows applications, including most notably Windows Explorer,
|
|
95
|
+
have a maximum number of characters allowed in a path of 260 characters. As mountebank writes these words, the longest path he
|
|
96
|
+
includes in the zip files is around 175 characters. The zip file name, which is likely to represent itself as <i>two</i>
|
|
97
|
+
nested directories if you use the defaults to unzip it, will be around 25 characters. That gives you very little wiggle room.
|
|
98
|
+
If you unzip the file in your users directory, you may very likely get an error because of this constraint.</p>
|
|
99
|
+
|
|
100
|
+
<p>The following solutions will all work:</p>
|
|
101
|
+
|
|
102
|
+
<ul class='bullet-list'>
|
|
103
|
+
<li>Unzip to the root of your C: drive (or a similar small path)</li>
|
|
104
|
+
<li>Use <a href='http://www.7-zip.org/'>7zip</a> to unzip the file instead of Windows Explorer</li>
|
|
105
|
+
<li>Use <code>npm</code> to install mountebank instead of the zip file</li>
|
|
106
|
+
</ul>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<h1>v<%= releaseVersion %></h1>
|
|
2
|
+
|
|
3
|
+
<p class='info-icon'>Be sure to keep up with the latest releases by subscribing to the
|
|
4
|
+
<a href='http://www.mbtest.dev/feed'>ATOM feed</a>.</p>
|
|
5
|
+
|
|
6
|
+
<p>v<%= releaseVersion %> is patch; v2.1.1 included snyk by mistake in the install, which
|
|
7
|
+
broke behind firewalls.</p>
|
|
8
|
+
|
|
9
|
+
<h2>Bug Fixes</h2>
|
|
10
|
+
<ul class='bullet-list'>
|
|
11
|
+
<li>Remove snyk as install dependency to avoid breaking behind firewalls.</li>
|
|
12
|
+
</ul>
|
|
13
|
+
|
|
14
|
+
<h2>Install</h2>
|
|
15
|
+
|
|
16
|
+
<pre><code>npm install -g mountebank@<%= releaseVersion %></code></pre>
|
|
17
|
+
|
|
18
|
+
<p>or:</p>
|
|
19
|
+
|
|
20
|
+
<table>
|
|
21
|
+
<tr>
|
|
22
|
+
<th>Option</th>
|
|
23
|
+
<th>node.js required?</th>
|
|
24
|
+
<th>sudo required?</th>
|
|
25
|
+
<th>links</th>
|
|
26
|
+
<th>Description</th>
|
|
27
|
+
</tr>
|
|
28
|
+
<tr>
|
|
29
|
+
<td>Self-contained archives</td>
|
|
30
|
+
<td>No</td>
|
|
31
|
+
<td>No</td>
|
|
32
|
+
<td style="min-width: 5em;">
|
|
33
|
+
<ul>
|
|
34
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-darwin-x64.tar.gz">osx</a></li>
|
|
35
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-linux-x86.tar.gz">linux x86</a></li>
|
|
36
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-linux-x64.tar.gz">linux x64</a></li>
|
|
37
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-win-x86.zip">win x86<sup>*</sup></a></li>
|
|
38
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-win-x64.zip">win x64<sup>*</sup></a></li>
|
|
39
|
+
</ul>
|
|
40
|
+
</td>
|
|
41
|
+
<td>Simply unpack and run <code>mb</code> from inside</td>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr>
|
|
44
|
+
<td>OS-specific packages</td>
|
|
45
|
+
<td>No</td>
|
|
46
|
+
<td>Yes</td>
|
|
47
|
+
<td>
|
|
48
|
+
<ul>
|
|
49
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>.pkg">pkg</a></li>
|
|
50
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-<%= releaseVersion %>-1.x86_64.rpm">rpm</a></li>
|
|
51
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank_<%= releaseVersion %>_amd64.deb">deb</a></li>
|
|
52
|
+
</ul>
|
|
53
|
+
</td>
|
|
54
|
+
<td>Puts <code>mb</code> at <code>/usr/local/bin</code>, which is generally in the <code>PATH</code>.</td>
|
|
55
|
+
</tr>
|
|
56
|
+
<tr>
|
|
57
|
+
<td>source tarball</td>
|
|
58
|
+
<td>Yes</td>
|
|
59
|
+
<td>No</td>
|
|
60
|
+
<td>
|
|
61
|
+
<ul>
|
|
62
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-npm.tar.gz">mb</a></li>
|
|
63
|
+
</ul>
|
|
64
|
+
</td>
|
|
65
|
+
<td>source tarball if you roll that way.</td>
|
|
66
|
+
</tr>
|
|
67
|
+
</table>
|
|
68
|
+
|
|
69
|
+
<h2 id='windows-path-limitations'>Windows path limitations</h2>
|
|
70
|
+
|
|
71
|
+
<p><sup>*</sup>mountebank wishes very much for your Windows experience to be hassle-free, but he is simply not qualified to address
|
|
72
|
+
a particular constraint of Windows Explorer. For legacy reasons, some Windows applications, including most notably Windows Explorer,
|
|
73
|
+
have a maximum number of characters allowed in a path of 260 characters. As mountebank writes these words, the longest path he
|
|
74
|
+
includes in the zip files is around 175 characters. The zip file name, which is likely to represent itself as <i>two</i>
|
|
75
|
+
nested directories if you use the defaults to unzip it, will be around 25 characters. That gives you very little wiggle room.
|
|
76
|
+
If you unzip the file in your users directory, you may very likely get an error because of this constraint.</p>
|
|
77
|
+
|
|
78
|
+
<p>The following solutions will all work:</p>
|
|
79
|
+
|
|
80
|
+
<ul class='bullet-list'>
|
|
81
|
+
<li>Unzip to the root of your C: drive (or a similar small path)</li>
|
|
82
|
+
<li>Use <a href='http://www.7-zip.org/'>7zip</a> to unzip the file instead of Windows Explorer</li>
|
|
83
|
+
<li>Use <code>npm</code> to install mountebank instead of the zip file</li>
|
|
84
|
+
</ul>
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<h1>v<%= releaseVersion %></h1>
|
|
2
|
+
|
|
3
|
+
<p class='info-icon'>Be sure to keep up with the latest releases by subscribing to the
|
|
4
|
+
<a href='http://www.mbtest.dev/feed'>ATOM feed</a>.</p>
|
|
5
|
+
|
|
6
|
+
<h2>This is A Big Release!</h2>
|
|
7
|
+
|
|
8
|
+
<p>This release has taken a long time to get out, but it's a game changer. Significant
|
|
9
|
+
parts of mountebank have been re-architected to allow all operations to be persisted to the file
|
|
10
|
+
system in real time. This solves a long-standing performance problem when dealing with a lot of test
|
|
11
|
+
data (for example, during proxy recording or playback)</p>
|
|
12
|
+
|
|
13
|
+
<h2>New Features</h2>
|
|
14
|
+
<ul class='bullet-list'>
|
|
15
|
+
<li>The <a href='//<%= host %>/docs/commandLine'><code>--datadir</code></a> option allows all
|
|
16
|
+
operations to be persisted real time, supporting constant performance regardless of the amount
|
|
17
|
+
of test data. This also allows multiple hosts running the same imposter behind a load balancer, with
|
|
18
|
+
all processes sharing the same state.
|
|
19
|
+
|
|
20
|
+
<p class='info-icon'>Running <code>mb</code> with the <code>--datadir</code> option means there is no
|
|
21
|
+
longer any real performance penalty to recording requests.</p></li>
|
|
22
|
+
<li>Running <code>mb</code> with the <code>--debug</code> option now also records the response
|
|
23
|
+
configuration that generated the response and the overall processing time to transform the request
|
|
24
|
+
into the response.</li>
|
|
25
|
+
<li>Added an example <a href='https://github.com/mountebank-testing/mountebank/blob/master/Dockerfile'>Dockerfile</a></li>
|
|
26
|
+
</ul>
|
|
27
|
+
|
|
28
|
+
<h2>Bug Fixes</h2>
|
|
29
|
+
<ul class='bullet-list'>
|
|
30
|
+
<li>You can now change the <code>state</code> variable passed into predicate injection</li>
|
|
31
|
+
<li>Fixed predicate matching for Cyrillic characters</li>
|
|
32
|
+
<li>Fixed some documentation that still used the old injection format</li>
|
|
33
|
+
<li>Fix issue where shellTransform limited buffer size of response</li>
|
|
34
|
+
<li>Expanded the list of MIME types mountebank recognizes as binary during HTTP proxying</li>
|
|
35
|
+
</ul>
|
|
36
|
+
|
|
37
|
+
<h2>Contributors</h2>
|
|
38
|
+
<p>Many thanks to the following kind folks for help with this release, either through bug reports,
|
|
39
|
+
suggestions, or direct code contributions:</p>
|
|
40
|
+
|
|
41
|
+
<ul class='bullet-list'>
|
|
42
|
+
<li>George Tseres</li>
|
|
43
|
+
</ul>
|
|
44
|
+
|
|
45
|
+
<h2>Install</h2>
|
|
46
|
+
|
|
47
|
+
<pre><code>npm install -g mountebank@<%= releaseVersion %></code></pre>
|
|
48
|
+
|
|
49
|
+
<p>or:</p>
|
|
50
|
+
|
|
51
|
+
<table>
|
|
52
|
+
<tr>
|
|
53
|
+
<th>Option</th>
|
|
54
|
+
<th>node.js required?</th>
|
|
55
|
+
<th>sudo required?</th>
|
|
56
|
+
<th>links</th>
|
|
57
|
+
<th>Description</th>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td>Self-contained archives</td>
|
|
61
|
+
<td>No</td>
|
|
62
|
+
<td>No</td>
|
|
63
|
+
<td style="min-width: 5em;">
|
|
64
|
+
<ul>
|
|
65
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-darwin-x64.tar.gz">osx</a></li>
|
|
66
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-linux-x86.tar.gz">linux x86</a></li>
|
|
67
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-linux-x64.tar.gz">linux x64</a></li>
|
|
68
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-win-x86.zip">win x86<sup>*</sup></a></li>
|
|
69
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-win-x64.zip">win x64<sup>*</sup></a></li>
|
|
70
|
+
</ul>
|
|
71
|
+
</td>
|
|
72
|
+
<td>Simply unpack and run <code>mb</code> from inside</td>
|
|
73
|
+
</tr>
|
|
74
|
+
<tr>
|
|
75
|
+
<td>OS-specific packages</td>
|
|
76
|
+
<td>No</td>
|
|
77
|
+
<td>Yes</td>
|
|
78
|
+
<td>
|
|
79
|
+
<ul>
|
|
80
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>.pkg">pkg</a></li>
|
|
81
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-<%= releaseVersion %>-1.x86_64.rpm">rpm</a></li>
|
|
82
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank_<%= releaseVersion %>_amd64.deb">deb</a></li>
|
|
83
|
+
</ul>
|
|
84
|
+
</td>
|
|
85
|
+
<td>Puts <code>mb</code> at <code>/usr/local/bin</code>, which is generally in the <code>PATH</code>.</td>
|
|
86
|
+
</tr>
|
|
87
|
+
<tr>
|
|
88
|
+
<td>source tarball</td>
|
|
89
|
+
<td>Yes</td>
|
|
90
|
+
<td>No</td>
|
|
91
|
+
<td>
|
|
92
|
+
<ul>
|
|
93
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-npm.tar.gz">mb</a></li>
|
|
94
|
+
</ul>
|
|
95
|
+
</td>
|
|
96
|
+
<td>source tarball if you roll that way.</td>
|
|
97
|
+
</tr>
|
|
98
|
+
</table>
|
|
99
|
+
|
|
100
|
+
<h2 id='windows-path-limitations'>Windows path limitations</h2>
|
|
101
|
+
|
|
102
|
+
<p><sup>*</sup>mountebank wishes very much for your Windows experience to be hassle-free, but he is simply not qualified to address
|
|
103
|
+
a particular constraint of Windows Explorer. For legacy reasons, some Windows applications, including most notably Windows Explorer,
|
|
104
|
+
have a maximum number of characters allowed in a path of 260 characters. As mountebank writes these words, the longest path he
|
|
105
|
+
includes in the zip files is around 175 characters. The zip file name, which is likely to represent itself as <i>two</i>
|
|
106
|
+
nested directories if you use the defaults to unzip it, will be around 25 characters. That gives you very little wiggle room.
|
|
107
|
+
If you unzip the file in your users directory, you may very likely get an error because of this constraint.</p>
|
|
108
|
+
|
|
109
|
+
<p>The following solutions will all work:</p>
|
|
110
|
+
|
|
111
|
+
<ul class='bullet-list'>
|
|
112
|
+
<li>Unzip to the root of your C: drive (or a similar small path)</li>
|
|
113
|
+
<li>Use <a href='http://www.7-zip.org/'>7zip</a> to unzip the file instead of Windows Explorer</li>
|
|
114
|
+
<li>Use <code>npm</code> to install mountebank instead of the zip file</li>
|
|
115
|
+
</ul>
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
<h1>v<%= releaseVersion %></h1>
|
|
2
|
+
|
|
3
|
+
<p class='info-icon'>Be sure to keep up with the latest releases by subscribing to the
|
|
4
|
+
<a href='http://www.mbtest.dev/feed'>ATOM feed</a>.</p>
|
|
5
|
+
|
|
6
|
+
<p>This is primarily a bug fix release</p>
|
|
7
|
+
|
|
8
|
+
<h2>New Features</h2>
|
|
9
|
+
<ul class='bullet-list'>
|
|
10
|
+
<li>Added ability to <a href='//<%= host %>/docs/api/overview#delete-requests'>delete saved requests</a></li>
|
|
11
|
+
<li>Added <a href='//<%= host %>/docs/api/proxies'>a keepalive option</a> for tcp proxies</li>
|
|
12
|
+
<li>Published Docker image</li>
|
|
13
|
+
</ul>
|
|
14
|
+
|
|
15
|
+
<h2>Bug Fixes</h2>
|
|
16
|
+
<ul class='bullet-list'>
|
|
17
|
+
<li>Fixed a startup race condition when using the <code>--configfile</code> option</li>
|
|
18
|
+
<li>Removed the skeleton UI to create imposters as it was never finished and buggy</li>
|
|
19
|
+
<li>Clarified docs around sharing same volume for --datadir</li>
|
|
20
|
+
<li>Don't require protofile when creating mb server in JavaScript outside the CLI</li>
|
|
21
|
+
</ul>
|
|
22
|
+
|
|
23
|
+
<h2>Contributors</h2>
|
|
24
|
+
<p>Many thanks to the following kind folks for help with this release, either through bug reports,
|
|
25
|
+
suggestions, or direct code contributions:</p>
|
|
26
|
+
|
|
27
|
+
<ul class='bullet-list'>
|
|
28
|
+
<li>Mijail Rondon</li>
|
|
29
|
+
<li>Ansel Rosenberg</li>
|
|
30
|
+
</ul>
|
|
31
|
+
|
|
32
|
+
<h2>Install</h2>
|
|
33
|
+
|
|
34
|
+
<pre><code>npm install -g mountebank@<%= releaseVersion %></code></pre>
|
|
35
|
+
|
|
36
|
+
<p>or:</p>
|
|
37
|
+
|
|
38
|
+
<table>
|
|
39
|
+
<tr>
|
|
40
|
+
<th>Option</th>
|
|
41
|
+
<th>node.js required?</th>
|
|
42
|
+
<th>sudo required?</th>
|
|
43
|
+
<th>links</th>
|
|
44
|
+
<th>Description</th>
|
|
45
|
+
</tr>
|
|
46
|
+
<tr>
|
|
47
|
+
<td>Self-contained archives</td>
|
|
48
|
+
<td>No</td>
|
|
49
|
+
<td>No</td>
|
|
50
|
+
<td style="min-width: 5em;">
|
|
51
|
+
<ul>
|
|
52
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-darwin-x64.tar.gz">osx</a></li>
|
|
53
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-linux-x86.tar.gz">linux x86</a></li>
|
|
54
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-linux-x64.tar.gz">linux x64</a></li>
|
|
55
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-win-x86.zip">win x86<sup>*</sup></a></li>
|
|
56
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-win-x64.zip">win x64<sup>*</sup></a></li>
|
|
57
|
+
</ul>
|
|
58
|
+
</td>
|
|
59
|
+
<td>Simply unpack and run <code>mb</code> from inside</td>
|
|
60
|
+
</tr>
|
|
61
|
+
<tr>
|
|
62
|
+
<td>OS-specific packages</td>
|
|
63
|
+
<td>No</td>
|
|
64
|
+
<td>Yes</td>
|
|
65
|
+
<td>
|
|
66
|
+
<ul>
|
|
67
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>.pkg">pkg</a></li>
|
|
68
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-<%= releaseVersion %>-1.x86_64.rpm">rpm</a></li>
|
|
69
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank_<%= releaseVersion %>_amd64.deb">deb</a></li>
|
|
70
|
+
</ul>
|
|
71
|
+
</td>
|
|
72
|
+
<td>Puts <code>mb</code> at <code>/usr/local/bin</code>, which is generally in the <code>PATH</code>.</td>
|
|
73
|
+
</tr>
|
|
74
|
+
<tr>
|
|
75
|
+
<td>source tarball</td>
|
|
76
|
+
<td>Yes</td>
|
|
77
|
+
<td>No</td>
|
|
78
|
+
<td>
|
|
79
|
+
<ul>
|
|
80
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-npm.tar.gz">mb</a></li>
|
|
81
|
+
</ul>
|
|
82
|
+
</td>
|
|
83
|
+
<td>source tarball if you roll that way.</td>
|
|
84
|
+
</tr>
|
|
85
|
+
</table>
|
|
86
|
+
|
|
87
|
+
<h2 id='windows-path-limitations'>Windows path limitations</h2>
|
|
88
|
+
|
|
89
|
+
<p><sup>*</sup>mountebank wishes very much for your Windows experience to be hassle-free, but he is simply not qualified to address
|
|
90
|
+
a particular constraint of Windows Explorer. For legacy reasons, some Windows applications, including most notably Windows Explorer,
|
|
91
|
+
have a maximum number of characters allowed in a path of 260 characters. As mountebank writes these words, the longest path he
|
|
92
|
+
includes in the zip files is around 175 characters. The zip file name, which is likely to represent itself as <i>two</i>
|
|
93
|
+
nested directories if you use the defaults to unzip it, will be around 25 characters. That gives you very little wiggle room.
|
|
94
|
+
If you unzip the file in your users directory, you may very likely get an error because of this constraint.</p>
|
|
95
|
+
|
|
96
|
+
<p>The following solutions will all work:</p>
|
|
97
|
+
|
|
98
|
+
<ul class='bullet-list'>
|
|
99
|
+
<li>Unzip to the root of your C: drive (or a similar small path)</li>
|
|
100
|
+
<li>Use <a href='http://www.7-zip.org/'>7zip</a> to unzip the file instead of Windows Explorer</li>
|
|
101
|
+
<li>Use <code>npm</code> to install mountebank instead of the zip file</li>
|
|
102
|
+
</ul>
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<h1>v<%= releaseVersion %></h1>
|
|
2
|
+
|
|
3
|
+
<p class='info-icon'>Be sure to keep up with the latest releases by subscribing to the
|
|
4
|
+
<a href='http://www.mbtest.dev/feed'>ATOM feed</a>.</p>
|
|
5
|
+
|
|
6
|
+
<p>The focus of this release is revamping the behaviors pipeline to put more control into
|
|
7
|
+
the hands of the users. See the <a href='//<%= host %>/docs/api/behaviors'>behaviors</a>
|
|
8
|
+
page for the new syntax, which allows complete control over the behaviors pipeline.
|
|
9
|
+
The one previous behavior that doesn't compose into a pipeline of post-processing
|
|
10
|
+
transformations is <code>repeat</code>, which is now treated as a
|
|
11
|
+
<a href='//<%= host %>/docs/api/stubs'>response parameter</a>.</p>
|
|
12
|
+
|
|
13
|
+
<p class='info-icon'>As always, despite being a syntactically breaking change, there are
|
|
14
|
+
strong backwards compatibility enforcements. There is no need for you to upgrade your
|
|
15
|
+
scripts to the new syntax; mountebank will continue respecting the old syntax without change.</p>
|
|
16
|
+
|
|
17
|
+
<h2>New Features</h2>
|
|
18
|
+
<ul class='bullet-list'>
|
|
19
|
+
<li>Changed the <a href='//<%= host %>/docs/api/behaviors'>behaviors pipeline</a> into a
|
|
20
|
+
composable pipeline with the user in complete control of the order of operations. Previously,
|
|
21
|
+
some behaviors (like <code>copy</code> and <code>shellTransform</code>) took arrays, which meant
|
|
22
|
+
that some behaviors supported a pipeline and some didn't, and there was no way to control the
|
|
23
|
+
order of operations, meaning you were unable to reason deterministically about what would happen
|
|
24
|
+
if you had both a <code>shellTransform</code> and <code>decorate</code> behavior. To make this
|
|
25
|
+
work, the <code>repeat</code> behavior has been changed to a
|
|
26
|
+
<a href='//<%= host %>/docs/api/stubs'>response parameter</a>.</li>
|
|
27
|
+
<li>Allow the <a href='//<%= host %>/docs/api/behaviors#behavior-decorate'><code>decorate</code> behavior</a>
|
|
28
|
+
access to the imposter's <code>state</code> variable</li>
|
|
29
|
+
<li>Added a new <a href='//<%= host %>/imposters'>community UI</a> to the options for
|
|
30
|
+
manual use.</li>
|
|
31
|
+
</ul>
|
|
32
|
+
|
|
33
|
+
<h2>Bug Fixes</h2>
|
|
34
|
+
<ul class='bullet-list'>
|
|
35
|
+
<li>Thanks to Robert Cooper, a fair amount of work was done to resolve intermittent file locking issues
|
|
36
|
+
using the <code>--datadir</code> parameter.</li>
|
|
37
|
+
<li>Clarified docs on creating a custom protocol</li>
|
|
38
|
+
<li>Allow <code>--protofile</code> to use relative and absolute paths if included directly in
|
|
39
|
+
JavaScript (rather than called through the CLI)</li>
|
|
40
|
+
</ul>
|
|
41
|
+
|
|
42
|
+
<h2>Contributors</h2>
|
|
43
|
+
<p>Many thanks to the following kind folks for help with this release, either through bug reports,
|
|
44
|
+
suggestions, or direct code contributions:</p>
|
|
45
|
+
|
|
46
|
+
<ul class='bullet-list'>
|
|
47
|
+
<li>Robert Cooper</li>
|
|
48
|
+
<li>cbrz</li>
|
|
49
|
+
</ul>
|
|
50
|
+
|
|
51
|
+
<h2>Install</h2>
|
|
52
|
+
|
|
53
|
+
<pre><code>npm install -g mountebank@<%= releaseVersion %></code></pre>
|
|
54
|
+
|
|
55
|
+
<p>or:</p>
|
|
56
|
+
|
|
57
|
+
<table>
|
|
58
|
+
<tr>
|
|
59
|
+
<th>Option</th>
|
|
60
|
+
<th>node.js required?</th>
|
|
61
|
+
<th>sudo required?</th>
|
|
62
|
+
<th>links</th>
|
|
63
|
+
<th>Description</th>
|
|
64
|
+
</tr>
|
|
65
|
+
<tr>
|
|
66
|
+
<td>Self-contained archives</td>
|
|
67
|
+
<td>No</td>
|
|
68
|
+
<td>No</td>
|
|
69
|
+
<td style="min-width: 5em;">
|
|
70
|
+
<ul>
|
|
71
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-darwin-x64.tar.gz">osx</a></li>
|
|
72
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-linux-x86.tar.gz">linux x86</a></li>
|
|
73
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-linux-x64.tar.gz">linux x64</a></li>
|
|
74
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-win-x86.zip">win x86<sup>*</sup></a></li>
|
|
75
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-win-x64.zip">win x64<sup>*</sup></a></li>
|
|
76
|
+
</ul>
|
|
77
|
+
</td>
|
|
78
|
+
<td>Simply unpack and run <code>mb</code> from inside</td>
|
|
79
|
+
</tr>
|
|
80
|
+
<tr>
|
|
81
|
+
<td>OS-specific packages</td>
|
|
82
|
+
<td>No</td>
|
|
83
|
+
<td>Yes</td>
|
|
84
|
+
<td>
|
|
85
|
+
<ul>
|
|
86
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>.pkg">pkg</a></li>
|
|
87
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-<%= releaseVersion %>-1.x86_64.rpm">rpm</a></li>
|
|
88
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank_<%= releaseVersion %>_amd64.deb">deb</a></li>
|
|
89
|
+
</ul>
|
|
90
|
+
</td>
|
|
91
|
+
<td>Puts <code>mb</code> at <code>/usr/local/bin</code>, which is generally in the <code>PATH</code>.</td>
|
|
92
|
+
</tr>
|
|
93
|
+
<tr>
|
|
94
|
+
<td>source tarball</td>
|
|
95
|
+
<td>Yes</td>
|
|
96
|
+
<td>No</td>
|
|
97
|
+
<td>
|
|
98
|
+
<ul>
|
|
99
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-npm.tar.gz">mb</a></li>
|
|
100
|
+
</ul>
|
|
101
|
+
</td>
|
|
102
|
+
<td>source tarball if you roll that way.</td>
|
|
103
|
+
</tr>
|
|
104
|
+
</table>
|
|
105
|
+
|
|
106
|
+
<h2 id='windows-path-limitations'>Windows path limitations</h2>
|
|
107
|
+
|
|
108
|
+
<p><sup>*</sup>mountebank wishes very much for your Windows experience to be hassle-free, but he is simply not qualified to address
|
|
109
|
+
a particular constraint of Windows Explorer. For legacy reasons, some Windows applications, including most notably Windows Explorer,
|
|
110
|
+
have a maximum number of characters allowed in a path of 260 characters. As mountebank writes these words, the longest path he
|
|
111
|
+
includes in the zip files is around 175 characters. The zip file name, which is likely to represent itself as <i>two</i>
|
|
112
|
+
nested directories if you use the defaults to unzip it, will be around 25 characters. That gives you very little wiggle room.
|
|
113
|
+
If you unzip the file in your users directory, you may very likely get an error because of this constraint.</p>
|
|
114
|
+
|
|
115
|
+
<p>The following solutions will all work:</p>
|
|
116
|
+
|
|
117
|
+
<ul class='bullet-list'>
|
|
118
|
+
<li>Unzip to the root of your C: drive (or a similar small path)</li>
|
|
119
|
+
<li>Use <a href='http://www.7-zip.org/'>7zip</a> to unzip the file instead of Windows Explorer</li>
|
|
120
|
+
<li>Use <code>npm</code> to install mountebank instead of the zip file</li>
|
|
121
|
+
</ul>
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<h1>v<%= releaseVersion %></h1>
|
|
2
|
+
|
|
3
|
+
<p class='info-icon'>Be sure to keep up with the latest releases by subscribing to the
|
|
4
|
+
<a href='http://www.mbtest.dev/feed'>ATOM feed</a>.</p>
|
|
5
|
+
|
|
6
|
+
<p>This patch release resolves a security vulnerability unearthed by <a href='https://github.com/dcRUSTy'>dcRUSTy</a>.</p>
|
|
7
|
+
|
|
8
|
+
<h2>New Features</h2>
|
|
9
|
+
<ul class='bullet-list'>
|
|
10
|
+
<li>Allow overriding the <a href='//<%= host %>/docs/api/proxies'>cipher suite</a> for HTTP proxies</li>
|
|
11
|
+
</ul>
|
|
12
|
+
|
|
13
|
+
<h2>Bug Fixes</h2>
|
|
14
|
+
<ul class='bullet-list'>
|
|
15
|
+
<li>All IP whitelisting CLI parameters (<code>--localOnly</code> and <code>--ipWhiteList</code>)
|
|
16
|
+
were not killing the server end of the socket. In practice, this meant that even though the client
|
|
17
|
+
connection was killed, the server operation (e.g. creating an imposter) would still succeed. This
|
|
18
|
+
release ensures that both ends of the socket are immediately closed if the connection originates
|
|
19
|
+
from an invalid IP address.</li>
|
|
20
|
+
</ul>
|
|
21
|
+
|
|
22
|
+
<h2>Contributors</h2>
|
|
23
|
+
<p>Many thanks to the following kind folks for help with this release, either through bug reports,
|
|
24
|
+
suggestions, or direct code contributions:</p>
|
|
25
|
+
|
|
26
|
+
<ul class='bullet-list'>
|
|
27
|
+
<li>dcRUSTy</li>
|
|
28
|
+
</ul>
|
|
29
|
+
|
|
30
|
+
<h2>Install</h2>
|
|
31
|
+
|
|
32
|
+
<pre><code>npm install -g mountebank@<%= releaseVersion %></code></pre>
|
|
33
|
+
|
|
34
|
+
<p>or:</p>
|
|
35
|
+
|
|
36
|
+
<table>
|
|
37
|
+
<tr>
|
|
38
|
+
<th>Option</th>
|
|
39
|
+
<th>node.js required?</th>
|
|
40
|
+
<th>sudo required?</th>
|
|
41
|
+
<th>links</th>
|
|
42
|
+
<th>Description</th>
|
|
43
|
+
</tr>
|
|
44
|
+
<tr>
|
|
45
|
+
<td>Self-contained archives</td>
|
|
46
|
+
<td>No</td>
|
|
47
|
+
<td>No</td>
|
|
48
|
+
<td style="min-width: 5em;">
|
|
49
|
+
<ul>
|
|
50
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-darwin-x64.tar.gz">osx</a></li>
|
|
51
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-linux-x86.tar.gz">linux x86</a></li>
|
|
52
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-linux-x64.tar.gz">linux x64</a></li>
|
|
53
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-win-x86.zip">win x86<sup>*</sup></a></li>
|
|
54
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-win-x64.zip">win x64<sup>*</sup></a></li>
|
|
55
|
+
</ul>
|
|
56
|
+
</td>
|
|
57
|
+
<td>Simply unpack and run <code>mb</code> from inside</td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td>OS-specific packages</td>
|
|
61
|
+
<td>No</td>
|
|
62
|
+
<td>Yes</td>
|
|
63
|
+
<td>
|
|
64
|
+
<ul>
|
|
65
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>.pkg">pkg</a></li>
|
|
66
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-<%= releaseVersion %>-1.x86_64.rpm">rpm</a></li>
|
|
67
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank_<%= releaseVersion %>_amd64.deb">deb</a></li>
|
|
68
|
+
</ul>
|
|
69
|
+
</td>
|
|
70
|
+
<td>Puts <code>mb</code> at <code>/usr/local/bin</code>, which is generally in the <code>PATH</code>.</td>
|
|
71
|
+
</tr>
|
|
72
|
+
<tr>
|
|
73
|
+
<td>source tarball</td>
|
|
74
|
+
<td>Yes</td>
|
|
75
|
+
<td>No</td>
|
|
76
|
+
<td>
|
|
77
|
+
<ul>
|
|
78
|
+
<li><a href="https://s3.amazonaws.com/mountebank/v<%= releaseMajorMinor %>/mountebank-v<%= releaseVersion %>-npm.tar.gz">mb</a></li>
|
|
79
|
+
</ul>
|
|
80
|
+
</td>
|
|
81
|
+
<td>source tarball if you roll that way.</td>
|
|
82
|
+
</tr>
|
|
83
|
+
</table>
|
|
84
|
+
|
|
85
|
+
<h2 id='windows-path-limitations'>Windows path limitations</h2>
|
|
86
|
+
|
|
87
|
+
<p><sup>*</sup>mountebank wishes very much for your Windows experience to be hassle-free, but he is simply not qualified to address
|
|
88
|
+
a particular constraint of Windows Explorer. For legacy reasons, some Windows applications, including most notably Windows Explorer,
|
|
89
|
+
have a maximum number of characters allowed in a path of 260 characters. As mountebank writes these words, the longest path he
|
|
90
|
+
includes in the zip files is around 175 characters. The zip file name, which is likely to represent itself as <i>two</i>
|
|
91
|
+
nested directories if you use the defaults to unzip it, will be around 25 characters. That gives you very little wiggle room.
|
|
92
|
+
If you unzip the file in your users directory, you may very likely get an error because of this constraint.</p>
|
|
93
|
+
|
|
94
|
+
<p>The following solutions will all work:</p>
|
|
95
|
+
|
|
96
|
+
<ul class='bullet-list'>
|
|
97
|
+
<li>Unzip to the root of your C: drive (or a similar small path)</li>
|
|
98
|
+
<li>Use <a href='http://www.7-zip.org/'>7zip</a> to unzip the file instead of Windows Explorer</li>
|
|
99
|
+
<li>Use <code>npm</code> to install mountebank instead of the zip file</li>
|
|
100
|
+
</ul>
|