{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "mockdock\n========\n[![Build Status](https://travis-ci.org/jensstein/mockdock.svg?branch=master)](https://travis-ci.org/jensstein/mockdock)\n\n```mockdock``` is a dns resolver and http server usable for testing\ncontainers.\n\n```mockdock``` can be used with the ```--dns``` argument for ```docker\nrun```. It can be set to resolve all dns requests to itself, thereby\nconstituting a mock server for all dns-based http requests of the\ncontainer under test.\n\nThe ```integration_test``` module under the tests directory serves as\npractical documentation of how ```mockdock``` can be used in a test\nscenario with a docker container.\n\nformat\n------\n\nResponses to http requests are specified as json in the format\n```json\n{\n\t\"domain.tld/path\": {\n\t\t\"data\": \"response data\",\n\t\t\"content-type\": \"text/plain\",\n\t\t\"code\": 200\n\t},\n\t\"domain.tld/path2\": {\n\t\t\"code\": 500\n\t}\n}\n```\nAll elements in the structure are optional with the missing elements\ndefaulting to the values set by the HttpResponse class in the\nmockdock.server module.\nThe response data can be passed to the server directly in the\n```CONFIG_DATA``` variable or in a file with the path passed in\nthe ```CONFIG_PATH``` variable. The two variables are mutually\nexclusive, so they cannot both be specified at the same time.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jensstein/mockdock", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "mockdock", "package_url": "https://pypi.org/project/mockdock/", "platform": "", "project_url": "https://pypi.org/project/mockdock/", "project_urls": { "Homepage": "https://github.com/jensstein/mockdock" }, "release_url": "https://pypi.org/project/mockdock/0.8.1/", "requires_dist": [ "conu", "mypy ; extra == 'dev'" ], "requires_python": "", "summary": "mockdock is a dns resolver and http server usable for testing containers", "version": "0.8.1" }, "last_serial": 4774449, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "811712f1a87b9a7424dbc7e8180887e2", "sha256": "23415b6f0318635af6bce6c0380f33d34dafad0f2e80f452dbfa7774001c3752" }, "downloads": -1, "filename": "mockdock-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "811712f1a87b9a7424dbc7e8180887e2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6176, "upload_time": "2019-02-03T10:30:02", "url": "https://files.pythonhosted.org/packages/40/b4/22aacee44605e1eeaf319432583efc87c6c4ede6e10390a709b6591062b0/mockdock-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "aa6f24682db120df1ab996373d1e80ec", "sha256": "26470772f5f47d29e66b66b98c221402b1d5d722f9cebae0ff76a4ece68f794e" }, "downloads": -1, "filename": "mockdock-0.1.0.tar.gz", "has_sig": false, "md5_digest": "aa6f24682db120df1ab996373d1e80ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4853, "upload_time": "2019-02-03T10:30:06", "url": "https://files.pythonhosted.org/packages/1b/5c/13b69a25d6153952f62526f644c059b27f751fd954cd2c9ffc46e6e58b70/mockdock-0.1.0.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "34525aff0e68ca13fcd6a55d209317ae", "sha256": "f14298c81564e2a1921fb4774e2adeca0c0be20328c733c6bd9ae6fd294fb5ba" }, "downloads": -1, "filename": "mockdock-0.8.0-py3-none-any.whl", "has_sig": false, "md5_digest": "34525aff0e68ca13fcd6a55d209317ae", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6178, "upload_time": "2019-02-03T10:30:04", "url": "https://files.pythonhosted.org/packages/6b/2d/8cd34ae1dff153c18f53250cfb5513c67f43f7dc45fce82cde2f7284b6ab/mockdock-0.8.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c1a3ea7e9f271d92cb99333527d65bd3", "sha256": "27e5c75f11726e4ecdd3bc8d2a4871e052b3661440f0c2718cdc7725eb055729" }, "downloads": -1, "filename": "mockdock-0.8.0.tar.gz", "has_sig": false, "md5_digest": "c1a3ea7e9f271d92cb99333527d65bd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4849, "upload_time": "2019-02-03T10:30:07", "url": "https://files.pythonhosted.org/packages/07/f8/24f9076be7e2f959273cf27cef015a4a4fa84869fe4835b0ba23a098d9b6/mockdock-0.8.0.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "b41b9ec05affa1b766d8ecd6f4cd9fd4", "sha256": "23796c6c1dc702446037d3e7a3102dcfa03bba8db38d05803a4203f3d87e9b55" }, "downloads": -1, "filename": "mockdock-0.8.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b41b9ec05affa1b766d8ecd6f4cd9fd4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6811, "upload_time": "2019-02-03T10:53:43", "url": "https://files.pythonhosted.org/packages/c8/95/3443a5567ae0f01466fd819898f342478938d35eef33cfa72a1cb4758fda/mockdock-0.8.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d12e882a96b3c999ebc03933c37f7ed", "sha256": "f8866a4a9e0fb0b9f083498b0d6b74216d4973ae8196382aa0e4ee4703db0f67" }, "downloads": -1, "filename": "mockdock-0.8.1.tar.gz", "has_sig": false, "md5_digest": "4d12e882a96b3c999ebc03933c37f7ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5080, "upload_time": "2019-02-03T10:53:45", "url": "https://files.pythonhosted.org/packages/c3/fc/aa082ede618f8b2dba761078dcbb2283fb3bb3d60adb759cf66d76af4dfa/mockdock-0.8.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b41b9ec05affa1b766d8ecd6f4cd9fd4", "sha256": "23796c6c1dc702446037d3e7a3102dcfa03bba8db38d05803a4203f3d87e9b55" }, "downloads": -1, "filename": "mockdock-0.8.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b41b9ec05affa1b766d8ecd6f4cd9fd4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6811, "upload_time": "2019-02-03T10:53:43", "url": "https://files.pythonhosted.org/packages/c8/95/3443a5567ae0f01466fd819898f342478938d35eef33cfa72a1cb4758fda/mockdock-0.8.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d12e882a96b3c999ebc03933c37f7ed", "sha256": "f8866a4a9e0fb0b9f083498b0d6b74216d4973ae8196382aa0e4ee4703db0f67" }, "downloads": -1, "filename": "mockdock-0.8.1.tar.gz", "has_sig": false, "md5_digest": "4d12e882a96b3c999ebc03933c37f7ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5080, "upload_time": "2019-02-03T10:53:45", "url": "https://files.pythonhosted.org/packages/c3/fc/aa082ede618f8b2dba761078dcbb2283fb3bb3d60adb759cf66d76af4dfa/mockdock-0.8.1.tar.gz" } ] }