{"id":18573158,"url":"https://github.com/localstack-samples/basic-pod-integration-test","last_synced_at":"2025-04-10T07:31:53.795Z","repository":{"id":192942177,"uuid":"687743014","full_name":"localstack-samples/basic-pod-integration-test","owner":"localstack-samples","description":"Basic LocalStack integration test using LocalStack Pods","archived":true,"fork":false,"pushed_at":"2023-09-06T02:08:35.000Z","size":55,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-02-17T14:44:42.747Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/localstack-samples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-05T23:18:01.000Z","updated_at":"2024-07-10T09:24:18.000Z","dependencies_parsed_at":"2023-09-06T03:23:34.933Z","dependency_job_id":null,"html_url":"https://github.com/localstack-samples/basic-pod-integration-test","commit_stats":null,"previous_names":["localstack-samples/basic-pod-integration-test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localstack-samples%2Fbasic-pod-integration-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localstack-samples%2Fbasic-pod-integration-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localstack-samples%2Fbasic-pod-integration-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localstack-samples%2Fbasic-pod-integration-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localstack-samples","download_url":"https://codeload.github.com/localstack-samples/basic-pod-integration-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248176395,"owners_count":21060059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T23:08:14.773Z","updated_at":"2025-04-10T07:31:53.552Z","avatar_url":"https://github.com/localstack-samples.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# basic-pod-integration-test\nBasic LocalStack integration test using LocalStack Pods.\nThis is a basic example of how LocalStack CloudPods can be used to inject state into\nyour AWS services for integration testing.\nYou can find the test in [test_pod.py](./auto_tests/python/test_pod.py).\n\n![Solution Overview](./docs/img/solution-diags.drawio.png)\n\n## Setup\n1. From the working directory:\nSet your LocalStack pro key. Add this line of code to a file named `.env-gdc-local` at the root of this project.\nSet your actual LocalStack key.\n\n```bash\nexport LOCALSTACK_API_KEY=\u003cyour key\u003e\n```\n\n2. Setup an AWS_PROFILE for LocalStack\n\n#### Add this to your `~/.aws/config` file\n\n```text\n[profile localstack]\nregion=us-east-1\noutput=json\nendpoint_url = http://localhost:4566\n```\n\n#### Add this to your `~/.aws/credentials` file\n\n```text\n[localstack]\naws_access_key_id=test\naws_secret_access_key=test\n```\n\n# Test Setup\nWe need to generate a CloudPod with state in it for the test.\n\nWith LocalStack running\n```shell\nmake test-setup\n```\nNow restart LocalStack\n```shell\nmake stop-localstack\nmake start-localstack\n```\n\n## Run Python Integration Test\n\n```shell\nmake test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalstack-samples%2Fbasic-pod-integration-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocalstack-samples%2Fbasic-pod-integration-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalstack-samples%2Fbasic-pod-integration-test/lists"}