{"id":19294597,"url":"https://github.com/web3-storage/pickup-e2e-tests","last_synced_at":"2025-11-14T17:12:16.084Z","repository":{"id":66220437,"uuid":"575478918","full_name":"web3-storage/pickup-e2e-tests","owner":"web3-storage","description":"A e2e test for the pickup project","archived":false,"fork":false,"pushed_at":"2022-12-14T17:25:46.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-05T21:10:53.220Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/web3-storage.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":"2022-12-07T15:51:58.000Z","updated_at":"2022-12-07T16:41:14.000Z","dependencies_parsed_at":"2023-03-17T12:00:18.530Z","dependency_job_id":null,"html_url":"https://github.com/web3-storage/pickup-e2e-tests","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/web3-storage%2Fpickup-e2e-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3-storage%2Fpickup-e2e-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3-storage%2Fpickup-e2e-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3-storage%2Fpickup-e2e-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web3-storage","download_url":"https://codeload.github.com/web3-storage/pickup-e2e-tests/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240397589,"owners_count":19794889,"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-09T22:38:51.380Z","updated_at":"2025-11-14T17:12:15.847Z","avatar_url":"https://github.com/web3-storage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pickup e2e test suite\n\nThe `Pickup` e2e test suite provides a set of tools for e2e testing.\n\n## e2e testing `pickup` service\n\nThere is 1 test for `pickaup`: `smoke`.  \n\n### Configure the services\n\nThe `helpers/contexts.js` contains the configuration for the environemnts.\n\nIt's currently configured only the `staging` env.\n\n```\nregion: 'us-west-2',\ndynamoDbEndpoint: 'https://dynamodb.us-west-2.amazonaws.com',\ndynamoDbTable: 'staging-pickup-BasicV2',\ns3Bucket: 'staging-pickup-basicapistack-carbucketdae1e77a-1l11iof62g79t',\ns3BucketEndpoint: 'staging-pickup-basicapistack-carbucketdae1e77a-1l11iof62g79t.s3.us-east-2.amazonaws.com',\napiUrl: 'https://staging.pickup.dag.haus',\ntimeoutRetry: 1000,\nmaxRetries: 20,\n```\n\nThe required values:\n* apiUrl: The api endpoint. Eg. 'https://staging.pickup.dag.haus',\n* timeoutRetry: The time in ms between the retry. Eg. 1000,\n* maxRetries: The check max retry before fail. Eg. 20,\n\nThe following values are required only to cleanup the bucket and dynamo before the smoke test:\n* region: The AWS region. Eg. 'us-west-2'\n* dynamoDbEndpoint: The dynamoDb endpoint. Eg.  'https://dynamodb.us-west-2.amazonaws.com'\n* dynamoDbTable: The dynamoDb table. Eg. 'staging-pickup-BasicV2'\n* s3Bucket: The S3 bucket. Eg. 'staging-pickup-basicapistack-carbucketdae1e77a-1l11iof62g79t',\n* s3BucketEndpoint: The S3 endpoint. Eg. 'staging-pickup-basicapistack-carbucketdae1e77a-1l11iof62g79t.s3.us-east-2.amazonaws.com',\n\n\n### How to run tests\n\nInstall node deps, please note node `v18` is required.\n\n```bash\nnpm i\n```\n\nCopy the file `.env.tpl` to `.env` and add the `PICKUP_BASIC_AUTH_TOKEN` \n\n```dotenv\n# Base64 encoded user:pass string\nPICKUP_BASIC_AUTH_TOKEN=\"add-the-auth-token-here\"\n```\n\n- run smoke test\n\n```bash\nTARGET_ENV=staging npm run test:smoke -- --verbose -c bafybeigbtmkd72kgeaqikcf4fb3xaz2gmkrivji6nyxzbcxmds256ctad4\n```\n\nIt's possbile to run the test with a cleanup. Before the `addPin` is called, the dynamoDb entry is removed and the S3 file is deleted.\nIn the long term this function will probably removed.\n\n```bash\nAWS_PROFILE=your-profile TARGET_ENV=staging npm run test:smoke -- --verbose -c bafybeigbtmkd72kgeaqikcf4fb3xaz2gmkrivji6nyxzbcxmds256ctad4 --cleanup\n```\n\nNote: the AWS profile should have access to the dynamoDb table and the S3 bucket. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3-storage%2Fpickup-e2e-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb3-storage%2Fpickup-e2e-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3-storage%2Fpickup-e2e-tests/lists"}