{"id":294767,"date":"2019-11-18T09:00:26","date_gmt":"2019-11-18T09:00:26","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=294767"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=294767","title":{"rendered":"\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0432 rpm WireMock \u2014 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0437\u0430\u0433\u043b\u0443\u0448\u0435\u043a \u043d\u0430\u0434 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438 \u0432 Fedora COPR \u0430\u043d\u0430\u043b\u043e\u0433\u0435 PPA \u0432 Ubuntu"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\">\n<p><a href=\"https:\/\/github.com\/tomakehurst\/wiremock\">WireMock<\/a> \u2014 \u0443\u0442\u0438\u043b\u0438\u0442\u0430, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0430 java \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0437\u0430\u0433\u043b\u0443\u0448\u0435\u043a \u043d\u0430\u0434 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438. \u041e\u043d \u0441\u043e\u0437\u0434\u0430\u0435\u0442 HTTP-\u0441\u0435\u0440\u0432\u0435\u0440, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f, \u043a\u0430\u043a \u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u0443.<\/p>\n<p>  <\/p>\n<p><a href=\"http:\/\/copr.fedorainfracloud.org\">Fedora COPR<\/a> \u2014 \u044d\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 (\u0430\u043d\u0430\u043b\u043e\u0433 AUR \u0432 Arch Linux \u0438\u043b\u0438 PPA \u0432 Ubuntu). \u0418\u0437 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c rpm \u043f\u0430\u043a\u0435\u0442\u044b \u0443\u043a\u0430\u0437\u0430\u0432 \u0438\u043c\u044f PIP \u0438 RubyGems.<\/p>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u043d\u0430\u043f\u0438\u0448\u0443 \u043a\u0430\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c rpm \u0438\u0437 \u0432\u0430\u0448\u0435\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043f\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u0443 \u0432 <a href=\"http:\/\/copr.fedorainfracloud.org\">Fedora COPR<\/a>.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 <strong><a href=\"https:\/\/github.com\/patsevanton\/wiremock-rpm\">wiremock-rpm<\/a><\/strong>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u0444\u0430\u0439\u043b\u044b spec \u0438 systemd unit. \u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0437\u044f\u0442\u044c <strong><a href=\"https:\/\/github.com\/patsevanton\/wiremock-rpm\">wiremock-rpm<\/a><\/strong> \u0437\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0438 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0442\u043e \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e. \u041d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 spec \u0438 systemd unit \u044f \u043e\u043f\u0443\u0441\u043a\u0430\u044e. \u0414\u0443\u043c\u0430\u044e \u0447\u0442\u043e \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435.<\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 <a href=\"http:\/\/copr.fedorainfracloud.org\">Fedora COPR<\/a><\/p>\n<p>  <\/p>\n<p>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 <a href=\"http:\/\/copr.fedorainfracloud.org\">Fedora COPR<\/a>.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/4w\/lt\/dz\/4wltdzsujvnqe4veuclvm69_5y0.png\"><\/p>\n<p>  <\/p>\n<p><strong>Project Name<\/strong>: \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u0430. \u041e\u0431\u044b\u0447\u043d\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u0432\u0430\u0448\u0435\u0433\u043e git \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f.<\/p>\n<p>  <\/p>\n<p><strong>Description<\/strong>: \u041a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p>  <\/p>\n<p><strong>Instructions<\/strong>: \u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0430\u0448 \u043f\u0430\u043a\u0435\u0442. \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">yum -y install yum-plugin-copr  yum copr enable \u0432\u0430\u0448\u0430-\u0443\u0447\u0435\u0442\u043a\u0430-\u0432-fedora-copr\/\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435-\u043f\u0440\u043e\u0435\u043a\u0442\u0430  yum -y install \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435-\u043f\u0430\u043a\u0435\u0442\u0430  systemctl start \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435-\u043f\u0430\u043a\u0435\u0442\u0430<\/code><\/pre>\n<p>  <\/p>\n<p><strong>Homepage<\/strong>: \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0434\u043e\u043c\u0430\u0448\u043d\u044e\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0442\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u043b\u0438 \u0432\u0430\u0448 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zp\/yz\/sy\/zpyzsylltgccvcevdclqrcyu1mo.png\"><\/p>\n<p>  <\/p>\n<p><strong>Build options<\/strong>: \u0412 Chroots \u0443\u043a\u0430\u0437\u044b\u0432\u0435\u043c \u043f\u043e\u0434 \u043a\u0430\u043a\u0443\u044e \u043e\u043f\u0435\u0440\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/nd\/zt\/o6\/ndzto6phhvt-ff6wm9xlg53a8g4.png\"><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/bv\/1u\/xe\/bv1uxe-xlqq9m5sguv45qnhqll8.png\"><\/p>\n<p>  <\/p>\n<p><strong>Other options<\/strong>: \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u0442\u043e \u0432 Booleans \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0433\u0430\u043b\u043e\u0447\u043a\u0443 <em>Enable internet access during builds<\/em> <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/us\/wz\/5t\/uswz5tg0asbs-g2lviqwvykfade.png\"><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 <strong>Packages<\/strong>.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/da\/vi\/jp\/davijpuooqd2feuchcnip3ws10i.png\"><\/p>\n<p>  <\/p>\n<p><strong>Package name:<\/strong> \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u043c\u044f \u043f\u0430\u043a\u0435\u0442\u0430.<\/p>\n<p>  <\/p>\n<p><strong>Clone url:<\/strong> \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c git \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439.<\/p>\n<p>  <\/p>\n<p><strong>Subdirectory:<\/strong> \u042d\u0442\u0438\u043c \u043f\u0443\u043d\u043a\u0442\u043e\u043c \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0438 spec \u0444\u0430\u0439\u043b \u0432 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0432 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u0430 spec \u0444\u0430\u0439\u043b \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435.<\/p>\n<p>  <\/p>\n<p><strong>Spec File:<\/strong> \u041f\u0443\u0442\u044c \u0434\u043e spec \u0444\u0430\u0439\u043b\u0430.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/h9\/tx\/bg\/h9txbg-vbfze1rqec4sreunzi2u.png\"><\/p>\n<p>  <\/p>\n<p><strong>Generic package setup<\/strong>: \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0433\u0430\u043b\u043e\u0447\u043a\u0443 <em>Auto-rebuild<\/em><\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/xk\/h2\/f2\/xkh2f24aegiiazzr1ym73i3tswk.png\"><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043f\u0430\u043a\u0435\u0442 \u0438\u0434\u0435\u043c \u0432 <em>Settings<\/em>, \u0434\u0430\u043b\u0435\u0435 \u0432 Integrations. \u041d\u0438\u0436\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c webhook \u0442\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0433\u0434\u0435 \u0443 \u0432\u0430\u0441 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0432\u0430\u0448 git \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/f0\/0g\/es\/f00gest0bm1kk-6gttm42aqsphm.png\"><\/p>\n<p>  <\/p>\n<p>\u0418\u0434\u0435\u043c \u0432 Settings \u0433\u0434\u0435 \u0443 \u0432\u0430\u0441 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0432\u0430\u0448 git \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439. \u0414\u0430\u043b\u0435\u0435 \u0434\u043b\u044f github \u0438\u0434\u0435\u043c \u0432 webhook. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c webhook. \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c Payload URL, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c Content type <em>application\/json<\/em><\/p>\n<p>  <\/p>\n<p><strong>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e WireMock.<\/strong><\/p>\n<p>  <\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c wiremock \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438. \u0420\u0430\u0431\u043e\u0447\u0430\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f wiremock \u0432 \u043c\u043e\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u2014 <code>\/usr\/lib\/wiremock<\/code>\/. \u0412 \u044d\u0442\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043b\u0435\u0436\u0438\u0442 wiremock.jar \u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f mappings. \u0412 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 mappings \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f json \u0444\u0430\u0439\u043b\u044b \u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u043a wiremock \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043e\u0442\u0432\u0435\u0442\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 <a href=\"http:\/\/wiremock.org\/docs\/running-standalone\/\">http:\/\/wiremock.org\/docs\/running-standalone\/<\/a>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">{     \"request\": {         \"method\": \"GET\",         \"url\": \"\/api\/mytest\"     },     \"response\": {         \"status\": 200,         \"body\": \"More content\\n\"     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \/api\/mytest \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">curl http:\/\/localhost:8080\/api\/mytest More content<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 \u043c\u043e\u0438\u0445 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 json:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">{     \"request\": {         \"method\": \"GET\",         \"url\": \"\/503\"     },     \"response\": {         \"status\": 503,         \"body\": \"503 Service Unavailable\\n\"     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u0434\u0435\u043b\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \/503<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">curl -i -v 172.26.9.123:8080\/503 * About to connect() to 172.26.9.123 port 8080 (#0) *   Trying 172.26.9.123... * Connected to 172.26.9.123 (172.26.9.123) port 8080 (#0) &gt; GET \/503 HTTP\/1.1 &gt; User-Agent: curl\/7.29.0 &gt; Host: 172.26.9.123:8080 &gt; Accept: *\/* &gt;  &lt; HTTP\/1.1 503 Service Unavailable HTTP\/1.1 503 Service Unavailable &lt; Matched-Stub-Id: d8b419e1-7e33-4f04-889e-2428f849dc7d Matched-Stub-Id: d8b419e1-7e33-4f04-889e-2428f849dc7d &lt; Transfer-Encoding: chunked Transfer-Encoding: chunked &lt; Server: Jetty(9.2.z-SNAPSHOT) Server: Jetty(9.2.z-SNAPSHOT)  &lt;  503 Service Unavailable<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 rpm wiremock \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 http \u043a\u043e\u0434\u044b. <a href=\"https:\/\/github.com\/patsevanton\/wiremock-rpm\">\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0442\u0443\u0442<\/a>.<\/p>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d() } } }t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>      <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/476260\/\"> https:\/\/habr.com\/ru\/post\/476260\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\">\n<p><a href=\"https:\/\/github.com\/tomakehurst\/wiremock\">WireMock<\/a> \u2014 \u0443\u0442\u0438\u043b\u0438\u0442\u0430, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0430 java \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0437\u0430\u0433\u043b\u0443\u0448\u0435\u043a \u043d\u0430\u0434 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438. \u041e\u043d \u0441\u043e\u0437\u0434\u0430\u0435\u0442 HTTP-\u0441\u0435\u0440\u0432\u0435\u0440, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f, \u043a\u0430\u043a \u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u0443.<\/p>\n<p>  <\/p>\n<p><a href=\"http:\/\/copr.fedorainfracloud.org\">Fedora COPR<\/a> \u2014 \u044d\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 (\u0430\u043d\u0430\u043b\u043e\u0433 AUR \u0432 Arch Linux \u0438\u043b\u0438 PPA \u0432 Ubuntu). \u0418\u0437 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c rpm \u043f\u0430\u043a\u0435\u0442\u044b \u0443\u043a\u0430\u0437\u0430\u0432 \u0438\u043c\u044f PIP \u0438 RubyGems.<\/p>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u043d\u0430\u043f\u0438\u0448\u0443 \u043a\u0430\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c rpm \u0438\u0437 \u0432\u0430\u0448\u0435\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043f\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u0443 \u0432 <a href=\"http:\/\/copr.fedorainfracloud.org\">Fedora COPR<\/a>.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-294767","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/294767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=294767"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/294767\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=294767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=294767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=294767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}