{"id":36480534,"url":"https://github.com/prozz/snstesting","last_synced_at":"2026-01-12T01:01:07.809Z","repository":{"id":37966370,"uuid":"479353323","full_name":"prozz/snstesting","owner":"prozz","description":"Package snstesting simplifies checking what messages arrive at any SNS topic from the inside of your integration tests.","archived":false,"fork":false,"pushed_at":"2023-08-28T11:49:26.000Z","size":51,"stargazers_count":4,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T00:33:04.968Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prozz.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}},"created_at":"2022-04-08T10:53:07.000Z","updated_at":"2024-04-21T21:46:34.000Z","dependencies_parsed_at":"2024-06-20T00:13:02.528Z","dependency_job_id":"3ae574c8-b753-4ba7-ad52-5b1d9cb02e45","html_url":"https://github.com/prozz/snstesting","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/prozz/snstesting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prozz%2Fsnstesting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prozz%2Fsnstesting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prozz%2Fsnstesting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prozz%2Fsnstesting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prozz","download_url":"https://codeload.github.com/prozz/snstesting/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prozz%2Fsnstesting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28330148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-01-12T01:00:37.144Z","updated_at":"2026-01-12T01:01:07.748Z","avatar_url":"https://github.com/prozz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snstesting\n\n![test](https://github.com/prozz/snstesting/workflows/test/badge.svg?branch=main)\n![golangci-lint](https://github.com/prozz/snstesting/workflows/lint/badge.svg?branch=main)\n\nPackage `snstesting` simplifies checking what messages arrive at any SNS topic from the inside of your integration tests.\nIt does it by subscribing to SNS via ad-hoc SQS queue that is cleaned-up after the test.\n\n## Installation\n\n```shell\ngo get github.com/prozz/snstesting\n```\n\n## Usage\n\n```go\n// make sure you can access AWS\ncfg, err := config.LoadDefaultConfig(ctx)\nif err != nil {\n    t.Fatalf(\"configuration error: %v \", err)\n}\n\n// subscribe to SNS, all resources created here will be cleaned up at the end of the test\nreceive := snstesting.New(t, cfg, topicName)\n\n// fire your process here, whatever it is ;)\n\n// get single message from SNS and examine it, repeat if needed\nmsg := receive()\nassert.NotEmpty(t, msg)\n```\n\nIn case you need more control over error handling, context or long polling settings, please use `snstesting.NewSubscriber` directly.\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\nPlease make sure to update tests.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprozz%2Fsnstesting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprozz%2Fsnstesting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprozz%2Fsnstesting/lists"}