{"id":51087107,"url":"https://github.com/zatosource/zato-testing-demo","last_synced_at":"2026-06-23T22:33:20.093Z","repository":{"id":348586329,"uuid":"1198814163","full_name":"zatosource/zato-testing-demo","owner":"zatosource","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-01T20:28:47.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-02T07:31:49.018Z","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":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zatosource.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-01T19:33:45.000Z","updated_at":"2026-04-01T20:28:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zatosource/zato-testing-demo","commit_stats":null,"previous_names":["zatosource/zato-testing-demo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zatosource/zato-testing-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zatosource%2Fzato-testing-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zatosource%2Fzato-testing-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zatosource%2Fzato-testing-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zatosource%2Fzato-testing-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zatosource","download_url":"https://codeload.github.com/zatosource/zato-testing-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zatosource%2Fzato-testing-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34709804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-06-23T22:33:19.204Z","updated_at":"2026-06-23T22:33:20.085Z","avatar_url":"https://github.com/zatosource.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zato Testing Demo\n\nThis project demonstrates how to test Zato services using the [zato-testing](https://pypi.org/project/zato-testing/) framework.\n\n## Quick Start\n\n```bash\ngit clone https://github.com/zatosource/zato-testing-demo.git\ncd zato-testing-demo\nmake test\n```\n\n## What's Inside\n\nA sample service that calls an external CRM API:\n\n```python\nclass GetCustomer(Service):\n    name = 'crm.customer.get'\n\n    input = 'customer_id'\n    output = 'name', 'email'\n\n    def handle(self):\n        conn = self.out.rest['crm.api'].conn\n        response = conn.get(self.cid, params={'id': self.request.input.customer_id})\n\n        self.response.payload.name = response.data['name']\n        self.response.payload.email = response.data['email']\n```\n\nAnd a test that simulates the API response:\n\n```python\nclass TestGetCustomer(ServiceTestCase):\n\n    def test_returns_customer_details(self):\n\n        self.set_response('crm.api', {\n            'name': 'Alice Johnson',\n            'email': 'alice@acme.com',\n        })\n\n        service = self.invoke(GetCustomer, {'customer_id': 'CUST-001'})\n\n        self.assertEqual(service.response.payload.name, 'Alice Johnson')\n        self.assertEqual(service.response.payload.email, 'alice@acme.com')\n```\n\n## Learn More\n\n- [Zato Testing Documentation](https://zato.io/en/docs/4.1/api-testing/index.html)\n- [Zato Homepage](https://zato.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzatosource%2Fzato-testing-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzatosource%2Fzato-testing-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzatosource%2Fzato-testing-demo/lists"}