{"id":20494144,"url":"https://github.com/jaystack/corp-check-test","last_synced_at":"2026-04-16T21:03:56.133Z","repository":{"id":146252930,"uuid":"108525687","full_name":"jaystack/corp-check-test","owner":"jaystack","description":"e2e tests for corp-check","archived":false,"fork":false,"pushed_at":"2018-06-12T09:07:51.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-16T05:55:56.672Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/jaystack.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":"2017-10-27T09:19:10.000Z","updated_at":"2018-06-12T09:07:52.000Z","dependencies_parsed_at":"2024-07-17T06:06:57.782Z","dependency_job_id":null,"html_url":"https://github.com/jaystack/corp-check-test","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/jaystack%2Fcorp-check-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaystack%2Fcorp-check-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaystack%2Fcorp-check-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaystack%2Fcorp-check-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaystack","download_url":"https://codeload.github.com/jaystack/corp-check-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242075714,"owners_count":20068229,"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-15T17:38:25.111Z","updated_at":"2026-04-16T21:03:51.083Z","avatar_url":"https://github.com/jaystack.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# corp-check-test\ne2e tests for Corp-Check services\n\n## Architecture\n\nThe e2e tests binding point is the restful api: `corp-check-rest`. Tests are running in composed dokcer containers. The e2e test contains the following services:\n\n- **MongoDB**: It is a basic MongoDB image.\n- **RabbitMQ**: It is a basic RabbitMQ image with management tool.\n- **Local npm registry**: That mocks the npm registry. Before running tests the test process publishes mock packages into this registry. They are in `registry/packages`. It is not possible to use a package name twice with the same version, because publishing runs only once before running the tests.\n- **Search service for npm registry**: That mocks the npm's search service. To define mock scores for a package you should describe a `scores` property into its `package.json`. Examples in `registry/packages/...`\n- **Corp-Check rest service**: This image is pulled from the Corp-Check docker registry in aws. The docker tag is provided from the `ENV` parameter (see below).\n- **Corp-Check worker service**: This image is pulled from the Corp-Check docker registry in aws. The docker tag is provided from the `ENV` parameter (see below).\n- **test process**: This process runs the tests with `jest`. This process consists of two parts: the registry initialization and the jest running. The registry initialization is defined in `registry/init.sh`\n\nEvery service is defined in `docker-compose.tpl.yml`. This template is manifested by the parameters.\n\n## Parameters\n\n- `ENV`: Value set: `dev`, `stage`, `prod`. That determines that which images should use for `corp-check-rest` and `corp-check-worker`.\n- `AWS_CRED_SOURCE`: The `.aws` folder path on the host machine. It is necessary for docker login to pulling the Corp-Check service images.\n\n## How to run\n\nThe e2e tests also can run as a compact job for CI tools, and they can run in watch mode for developing.\n\n### CI mode\n\n```\nsh test.sh\n```\n\n### Watch mode\n\n```\nsh test.sh watch\n```\n\nWatch mode does not run the `test` process in docker. Instead of that it runs on your local machine in `--watch` mode with jest.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaystack%2Fcorp-check-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaystack%2Fcorp-check-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaystack%2Fcorp-check-test/lists"}