{"id":19251233,"url":"https://github.com/rexops/rex-testcluster","last_synced_at":"2026-06-23T09:31:31.201Z","repository":{"id":138908067,"uuid":"61143178","full_name":"RexOps/rex-testcluster","owner":"RexOps","description":"A module to run a testsuite across a cluster","archived":false,"fork":false,"pushed_at":"2016-06-14T17:57:21.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-23T16:48:40.525Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/RexOps.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":"2016-06-14T17:42:20.000Z","updated_at":"2016-06-14T17:53:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c4adbf5-96b9-4d6e-8d8a-5c9bbb025030","html_url":"https://github.com/RexOps/rex-testcluster","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RexOps/rex-testcluster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-testcluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-testcluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-testcluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-testcluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RexOps","download_url":"https://codeload.github.com/RexOps/rex-testcluster/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-testcluster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34684671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-09T18:21:12.634Z","updated_at":"2026-06-23T09:31:31.173Z","avatar_url":"https://github.com/RexOps.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TestCluster\n\nThis is a module to run integration test suites across multiple test hosts to\ntest cluster deployment code.\n\n## EXAMPLE\n\nFile: t/01.t\n\n```perl\n# vim: set syn=perl:\n\nuse Rex -base;\nuse TestCluster;\n\n# mock rex logging functions so that they don't output anything\nsub Rex::Logger::info {}\nsub Rex::Logger::debug {}\n\ntask \"test\", sub {\n  # run task code\n};\n\nmy $test_cluster = TestCluster-\u003enew(cluster_def =\u003e \"t/01.yml\");\n$test_cluster-\u003einitialize;\nmy $t01 = $test_cluster-\u003evm(\"test01\");\nmy $t02 = $test_cluster-\u003evm(\"test02\");\n\n$t01-\u003erun_task(\"test\");\n$t02-\u003erun_task(\"test\");\n\n$t01-\u003ehas_output_matching(\"id\", qr/uid=0\\(root\\) gid=0\\((root|wheel)\\)/);\n$t02-\u003ehas_output_matching(\"id\", qr/uid=0\\(root\\) gid=0\\((root|wheel)\\)/);\n\n$test_cluster-\u003efinish;\n\n1;\n```\n\nt/01.yml\n```yaml\ntype: VBox\nvms:\n  test01:\n    url: http://box.rexify.org/box/ubuntu-server-12.10-amd64.ova\n    forward_port:\n      ssh:\n        - 2222\n        - 22\n    auth:\n      user: root\n      password: box\n      auth_type: pass\n\n  test02:\n    url: http://box.rexify.org/box/ubuntu-server-12.10-amd64.ova\n    forward_port:\n      ssh:\n        - 2223\n        - 22\n    auth:\n      user: root\n      password: box\n      auth_type: pass\n```\n\nRun the tests:\n```\nprove -r t\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexops%2Frex-testcluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frexops%2Frex-testcluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexops%2Frex-testcluster/lists"}