{"id":49341325,"url":"https://github.com/redborder/redborder-serverspec-manager","last_synced_at":"2026-04-27T04:03:57.901Z","repository":{"id":208224312,"uuid":"721095550","full_name":"redBorder/redborder-serverspec-manager","owner":"redBorder","description":"Infrastructure integration testing for redborder-manager","archived":false,"fork":false,"pushed_at":"2026-01-22T12:22:52.000Z","size":280,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-23T04:11:21.057Z","etag":null,"topics":["redborder-ng","testing"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redBorder.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":"2023-11-20T10:50:36.000Z","updated_at":"2025-11-12T17:47:09.000Z","dependencies_parsed_at":"2024-01-17T17:42:37.057Z","dependency_job_id":"25e874ae-7d2e-4a47-820a-9a4dc2b3cc98","html_url":"https://github.com/redBorder/redborder-serverspec-manager","commit_stats":null,"previous_names":["redborder/redborder-serverspec-manager"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/redBorder/redborder-serverspec-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Fredborder-serverspec-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Fredborder-serverspec-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Fredborder-serverspec-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Fredborder-serverspec-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redBorder","download_url":"https://codeload.github.com/redBorder/redborder-serverspec-manager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Fredborder-serverspec-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32321945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["redborder-ng","testing"],"created_at":"2026-04-27T04:03:56.877Z","updated_at":"2026-04-27T04:03:57.881Z","avatar_url":"https://github.com/redBorder.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## redborder-serverspec-manager\n\nInfrastructure integration testing for a redborder manager machine. The idea is to run the tests in a machine that is the validator local machine, so the target machine is affected by the tests.\n\n## Installation\n\nFirst, clone this repository on your workstation. Then install the gemes by executing this:\n\n```cmd\nbundle install\n```\n\nSometimes you need to make sure that you share your public ssh key to target machine:\n\n```cmd\nssh-copy-id root@\u003ctarget_ip\u003e\n```\n\n## Running Tests\n\nTo run all tests, use the following command:\n\n```cmd\nrake spec\n```\n\nOptional parameters:\n\n- **TARGET_HOST**: Machine where the tests will run via SSH.\n- **LOGIN_USERNAME**: Username for SSH connection to the test machine.\n- **LOGIN_PASSWORD**: Password for SSH connection to the test machine.\n- **IS_CLUSTER**: Boolean to indicate if the target machine is a cluster.\n- **-j 10 -m**: To run tests in pararell\n  Example with optional parameters:\n\n```cmd\nIS_CLUSTER=\"false\" TARGET_HOST=\"10.1.209.50\" LOGIN_USERNAME=\"root\" LOGIN_PASSWORD=\"redborder\" rake spec\n```\n\nTo run a specific test type, use the following command:\n\n```cmd\nrake spec:configuration\n```\n\nTo run a specific test in a spec file, better use tags:\n\n```cmd\nrspec --tag tag_name\n```\n\nTo run a specific script test, use the following command:\n\n```cmd\nrspec spec/services/cgroup_spec.rb\n```\n\nList of Available Rake Tasks:\n\n```cmd\nrake -T\n```\n\n## Developing tests\n\nWhen creating a new test, it is important to follow the directory structure outlined in the Rakefile. This structure helps maintain organization and clarity within the test suite.\n\nDirectory structure:\n\n```conf\nspec/\n├── spec_helper.rb\n├── services/\n│   ├── ...  # Place your service-related tests here\n├── configuration/\n│   ├── ...  # Place your configuration-related tests here\n├── modules/\n│   ├── monitor/\n│   ├── ...  # Place your module-related tests here\n└── helpers/\n    ├── ...  # Place your helper-related tests here\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredborder%2Fredborder-serverspec-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredborder%2Fredborder-serverspec-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredborder%2Fredborder-serverspec-manager/lists"}