{ "info": { "author": "Kazuki Iwata", "author_email": "kazu.0516.k0n0f@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Pytest", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Testing" ], "description": "pytest-terraform-fixture\n================\n\n\ud83d\ude80 Description\n-----------\n\n`--terraform-dir` \u3067\u6307\u5b9a\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b Terraform \u3067\u4f5c\u6210\u3055\u308c\u308b\u30ea\u30bd\u30fc\u30b9\u3092\u52d5\u7684\u306b pytest \u306e fixture \u3068\u3057\u3066\u81ea\u52d5\u3067\u5b9a\u7fa9\u3057\u3066\u304f\u308c\u308b plugin\u3067\u3059\n\n\ud83d\ude80 Install\n-------\n\ngithub \u304b\u3089\u5f15\u3063\u5f35\u3063\u3066\u304d\u3066\u3002\n\n```sh\npip install pytest-terraform-fixture\n```\n\n\n\ud83d\ude80 Usage\n-----\n\nTerraform \u3067\u4f5c\u6210\u3057\u305f\u3044\u30ea\u30bd\u30fc\u30b9\u3092\u8a18\u8ff0\u3059\u308b (\u3053\u3053\u3067\u306f `instance_a` \u306e\u30ea\u30bd\u30fc\u30b9\u3092\u5b9a\u7fa9\u3057\u305f\u3068\u3059\u308b)\n```terraform\nprovider \"nifcloud\" {\n access_key = \"xxxxx\"\n secret_key = \"yyyyy\"\n region = \"jp-east-1\"\n endpoint = \"jp-east-1.conputing.api.nifcloud.com\"\n}\n\nresource \"nifcloud_instance\" \"instance_a\" {\n instance_id = \"hogehogea\"\n image_id = \"89\"\n key_name = \"ssh_key\"\n instance_type = \"large\"\n description = \"pytest-terraform\"\n availability_zone = \"east-11\"\n disable_api_termination = \"false\"\n ip_type = \"none\"\n}\n```\n\npytest \u3067 `instance_a` \u3092\u30ea\u30bd\u30fc\u30b9\u3092\u4f7f\u3046\u30c6\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059 (\u81ea\u52d5\u7684\u306b `instance_a` \u3092fixutre\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u3066\u304f\u308c\u308b)\n\n```python\nimport pytest\nfrom python_terraform import Terraform\n\ndef test_terraform_fixture(instance_a):\n # instance_a \u3092\u4f5c\u6210\u3059\u308b\u30c6\u30b9\u30c8\n assert True\n```\n\n\u5f8c\u306f\u3001 `*.tf` \u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\n```sh\npytest --terraform-dir={\u5b9f\u65bd\u3057\u305f\u3044 *.tf \u3092\u3082\u3064\u30c7\u30a3\u30ec\u30af\u30c8\u30ea}\n```\n\n\ud83d\ude80 Requirements\n------------\n\n\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u304c\u5fc5\u8981\u3067\u3059:\n\n* [python](https://www.python.org/) 3.4.+\n* [terraform](https://www.terraform.io) 0.11.+\n\n\ud83d\ude80 Contributing\n------------\n\nPR\u6b53\u8fce\u3057\u3066\u307e\u3059\n\n\ud83d\ude80 Support and Migration\n---------------------\n\n\u7279\u306b\u7121\u3057\n\n\ud83d\ude80 License\n-------\n\n- [MIT License](http://petitviolet.mit-license.org/)", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kzmake/pytest-terraform-fixture", "keywords": "", "license": "MIT", "maintainer": "Kazuki Iwata", "maintainer_email": "kazu.0516.k0n0f@gmail.com", "name": "pytest-terraform-fixture", "package_url": "https://pypi.org/project/pytest-terraform-fixture/", "platform": "", "project_url": "https://pypi.org/project/pytest-terraform-fixture/", "project_urls": { "Homepage": "https://github.com/kzmake/pytest-terraform-fixture" }, "release_url": "https://pypi.org/project/pytest-terraform-fixture/0.1.2/", "requires_dist": null, "requires_python": ">=3.4", "summary": "generate terraform resources to use with pytest", "version": "0.1.2" }, "last_serial": 4484316, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a0c44724019bcb067ca5e6a812c64953", "sha256": "591260e39a6ad3832c3504c266c1ca78b44b8320db4f93cbb5ce2e58af947ad5" }, "downloads": -1, "filename": "pytest_terraform_fixture-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a0c44724019bcb067ca5e6a812c64953", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 3488, "upload_time": "2018-11-08T15:41:54", "url": "https://files.pythonhosted.org/packages/ea/08/51efd9942e9cfdfc63d347b4d61eaa237b2023a2fc194d012836bbedff3f/pytest_terraform_fixture-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "166225ee5a021c2d4581e1a10a488268", "sha256": "300205b46228c1aa3e5a34f97f18643fce12f4cb4370c338cbe245af2eb8d85a" }, "downloads": -1, "filename": "pytest-terraform-fixture-0.1.0.tar.gz", "has_sig": false, "md5_digest": "166225ee5a021c2d4581e1a10a488268", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 2795, "upload_time": "2018-11-08T15:41:56", "url": "https://files.pythonhosted.org/packages/72/e1/a4ae149e0676a51fd488c80036c473a38fcb6b697c13e67ae0afd523b9db/pytest-terraform-fixture-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "995eafa0a74e73ce84ef9c5f56c21b72", "sha256": "283fd90e6428250df13cec24ff53ca2b5737262d867f57d2c138f7e09d3fd88f" }, "downloads": -1, "filename": "pytest-terraform-fixture-0.1.1.tar.gz", "has_sig": false, "md5_digest": "995eafa0a74e73ce84ef9c5f56c21b72", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 2781, "upload_time": "2018-11-08T17:09:17", "url": "https://files.pythonhosted.org/packages/51/71/29c22ca7381603e283b03aa5425c6cc61ff7624317887d868df072bea967/pytest-terraform-fixture-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "3a124bd885b425dc679ae525a602ab53", "sha256": "7edfc00257874f5a364f0b363f146f7ff1c2798108ce7fd1fbc4be6d4def6397" }, "downloads": -1, "filename": "pytest_terraform_fixture-0.1.2-py3.6.egg", "has_sig": false, "md5_digest": "3a124bd885b425dc679ae525a602ab53", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": ">=3.4", "size": 6217, "upload_time": "2018-11-14T05:40:10", "url": "https://files.pythonhosted.org/packages/7c/73/2fcee367e71b6fd18603105710098ffd9ea809c890fb4187e7a9d7014ad1/pytest_terraform_fixture-0.1.2-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "6b2bb076bfb12b4cfdc6f812f423b7a7", "sha256": "9349947173bb96f54b9b9f15f6be6d38ef51f52dfa7deabc66e4d6663e486a0d" }, "downloads": -1, "filename": "pytest-terraform-fixture-0.1.2.tar.gz", "has_sig": false, "md5_digest": "6b2bb076bfb12b4cfdc6f812f423b7a7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 4117, "upload_time": "2018-11-14T05:40:11", "url": "https://files.pythonhosted.org/packages/da/c9/3ffd69cd3135127a01feb4b3538bab7de135d3120a6a5a6fde65c1d571bc/pytest-terraform-fixture-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3a124bd885b425dc679ae525a602ab53", "sha256": "7edfc00257874f5a364f0b363f146f7ff1c2798108ce7fd1fbc4be6d4def6397" }, "downloads": -1, "filename": "pytest_terraform_fixture-0.1.2-py3.6.egg", "has_sig": false, "md5_digest": "3a124bd885b425dc679ae525a602ab53", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": ">=3.4", "size": 6217, "upload_time": "2018-11-14T05:40:10", "url": "https://files.pythonhosted.org/packages/7c/73/2fcee367e71b6fd18603105710098ffd9ea809c890fb4187e7a9d7014ad1/pytest_terraform_fixture-0.1.2-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "6b2bb076bfb12b4cfdc6f812f423b7a7", "sha256": "9349947173bb96f54b9b9f15f6be6d38ef51f52dfa7deabc66e4d6663e486a0d" }, "downloads": -1, "filename": "pytest-terraform-fixture-0.1.2.tar.gz", "has_sig": false, "md5_digest": "6b2bb076bfb12b4cfdc6f812f423b7a7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 4117, "upload_time": "2018-11-14T05:40:11", "url": "https://files.pythonhosted.org/packages/da/c9/3ffd69cd3135127a01feb4b3538bab7de135d3120a6a5a6fde65c1d571bc/pytest-terraform-fixture-0.1.2.tar.gz" } ] }