{"id":19745169,"url":"https://github.com/castle/zsh-test-suite","last_synced_at":"2026-05-09T23:45:46.337Z","repository":{"id":137330002,"uuid":"233969279","full_name":"castle/zsh-test-suite","owner":"castle","description":"zsh scripts for testing out the Castle API functionality","archived":false,"fork":false,"pushed_at":"2020-08-18T14:30:41.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-01-10T20:44:28.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/castle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-01-15T01:14:38.000Z","updated_at":"2020-08-18T14:31:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"36aaac0e-ef39-4972-8cf5-b41b3329163f","html_url":"https://github.com/castle/zsh-test-suite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castle%2Fzsh-test-suite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castle%2Fzsh-test-suite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castle%2Fzsh-test-suite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castle%2Fzsh-test-suite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/castle","download_url":"https://codeload.github.com/castle/zsh-test-suite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241077134,"owners_count":19905725,"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-12T02:04:32.427Z","updated_at":"2026-05-09T23:45:46.269Z","avatar_url":"https://github.com/castle.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Castle Test Cases\n\nThis repository contains scripts to showcase Castle via various scenario tests using cURL. \n\nThey are intended to be run with zsh.\n\n## Make the Dependencies Executable\n\nThere are several scripts in the `helpers` folder which must be made executable in order to be run as dependencies of the test case scripts:\n\n```\nchmod a+x ./helpers/*\n```\n\n## Running the Test Cases\n\nFirst, set your CASTLE_API_SECRET in your local environment:\n\n```\nexport CASTLE_API_SECRET={your api secret}\n```\n\nRun the test cases individually with zsh:\n\n```\nzsh ./forgetful_user.sh\n```\n\n### Usage of `/helpers` Scripts and Flags\n\nThe `authenticate.sh` and `track.sh` scripts in the `helpers` folder have flags that allow specifying event context data:\n\n```\n-e  Event Name\n-u  User ID\n-i  Context IP Address\n-b  Context User Agent (b for Browser)\n-h  Context Headers\n```\n\nExample Use:\n```\nzsh ./helpers/track.sh -e '$login.failed' -u '1234' -i '11.11.11.11' -b 'Chrome_v1.11' -h '{\"Accept\": \"text/html\",\"Accept-Language\":\"en-us,en;q=0.5\"}'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcastle%2Fzsh-test-suite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcastle%2Fzsh-test-suite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcastle%2Fzsh-test-suite/lists"}