{"id":19082933,"url":"https://github.com/floscha/blockchain-end2end-test","last_synced_at":"2025-08-10T19:17:08.317Z","repository":{"id":50207453,"uuid":"108635645","full_name":"floscha/blockchain-end2end-test","owner":"floscha","description":"End-to-end test script for the blockchain using Docker containers.","archived":false,"fork":false,"pushed_at":"2022-12-08T01:28:06.000Z","size":16,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-02T20:42:20.943Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/floscha.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}},"created_at":"2017-10-28T09:16:03.000Z","updated_at":"2021-05-04T05:52:15.000Z","dependencies_parsed_at":"2023-01-24T03:05:12.323Z","dependency_job_id":null,"html_url":"https://github.com/floscha/blockchain-end2end-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/floscha%2Fblockchain-end2end-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Fblockchain-end2end-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Fblockchain-end2end-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Fblockchain-end2end-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floscha","download_url":"https://codeload.github.com/floscha/blockchain-end2end-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240133134,"owners_count":19752993,"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-09T02:45:04.692Z","updated_at":"2025-02-22T06:21:41.283Z","avatar_url":"https://github.com/floscha.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blockchain End-to-End Test\nEnd-to-end test script for simple blockchain implementations using Docker containers.\n\n\n## Run\nFirst make sure that Python 3 (including pip) and Docker are installed.\nThen build the Docker image as described [here](https://github.com/dvf/blockchain/blob/master/README.md#docker).\nFinally navigate into the project folder and run the following:\n\n1. `pip3 install -r requirements.txt`\nto make sure all requirements are installed.\n2. `python3 end2end_test.py --nodes 10 --tasks clean setup connect sync-test`\nto run the full test cycle with 10 blockchain nodes.\n\n\n## Options\nRun the *end2end_test.py* script with the following arguments:\n\n- `--image`: The Docker image to be run. Defaults to *blockchain*.\n- `--nodes`: The number of Docker containers to be run. Defaults to 2.\n- `--port`: The port exposed by the Docker image. Defaults to 5000.\n- `--net`: The Docker network in which nodes communicate. Defaults to *blockchain*.\n- `--tasks`: Takes a number of tasks as strings, including:\n  - `clean`: Stops and removes all existing blockchain containers to start from a clean slate.\n  - `setup`: Runs the specified number of blockchain nodes as Docker containers.\n  - `connect`: Connect all nodes for implementations where nodes cannot find each other automatically.\n  - `sync-test`: Test if the synchronization mechanism between nodes works.\n- `--keepalive`: Keeps the containers running after the script finishes.\n\nWhile the first four arguments can be left at their defaults for [Learn Blockchains by Building One](https://github.com/dvf/blockchain), the `--tasks` argument always has to be set.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloscha%2Fblockchain-end2end-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloscha%2Fblockchain-end2end-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloscha%2Fblockchain-end2end-test/lists"}