{"id":19368460,"url":"https://github.com/anchore/test-infra","last_synced_at":"2025-08-31T03:36:54.362Z","repository":{"id":37052114,"uuid":"179129985","full_name":"anchore/test-infra","owner":"anchore","description":"Contains infrastructure for running functional tests using Helm chart deployments","archived":false,"fork":false,"pushed_at":"2024-08-19T21:32:19.000Z","size":26277,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-02T16:50:39.491Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anchore.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":"2019-04-02T17:50:19.000Z","updated_at":"2024-08-19T21:32:19.000Z","dependencies_parsed_at":"2024-08-20T01:19:47.362Z","dependency_job_id":"08f58a5a-01d1-4748-8c2a-a47d4d34ef26","html_url":"https://github.com/anchore/test-infra","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/anchore%2Ftest-infra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchore%2Ftest-infra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchore%2Ftest-infra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchore%2Ftest-infra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anchore","download_url":"https://codeload.github.com/anchore/test-infra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250460243,"owners_count":21434229,"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-10T08:06:28.545Z","updated_at":"2025-04-23T15:30:43.682Z","avatar_url":"https://github.com/anchore.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Anchore CI/Test Harness\n\nThis repository provides an entry point and set of shared tasks for testing and CI.  It allows any provided task to be easily overridden.  Currently this is for use with Python.\n\n## Usage Example\n\nTo use the provided task `clean`, clone this repo into your project's root directory, and create the following variables and targets in your makefile:\n\n```\nTEST_IMAGE_NAME := my_image:latest\nTEST_HARNESS_REPO := https://github.com/anchore/test-infra.git\nCI_CMD := anchore-ci/ci_harness\n\nanchore-ci: ## Fetch test artifacts for the CI harness\n  rm -rf /tmp/test-infra; git clone $(TEST_HARNESS_REPO) /tmp/test-infra\n  mv ./anchore-ci ./anchore-ci-`date +%F-%H-%M-%S`; mv /tmp/test-infra/anchore-ci .\n\n.PHONY: clean\nclean: anchore-ci ## Clean up the project directory and delete dev image\n  @$(CI_CMD) clean $(TEST_IMAGE_NAME)\n```\n\nTo override the provided task with your own `clean`, provide an executable in `./scripts/ci/clean`, and the test harness entry point will invoke your task instead.\n\nAdd the following to your .gitignore file so you don't pull in the test harness artifacts (unless you want to):\n\n```\n# CI scripts\nanchore-ci*/\n```\n\nThe following tasks are provided (run `./anchore-ci/ci_harness` to see a current list in case this has changed):\n\n```\nclean\ncluster-down\ncluster-up\ninstall-cluster-deps\nlint\npush-dev-image\npush-prod-image-rebuild\npush-prod-image-release\npush-rc-image\ntest-functional\ntest-unit\n```\n## Provided Task Required Parameters\n\nMost of the provided tasks require some parameters to execute; some also require a virtual environment to be activated already - otherwise, your local/system Python is required to be configured 'correctly'.  These are listed below.  Please see the sample makefile provided in this repo for a full example.\n\nTask | Required Parameters | Virtual environment activation required\n---- | --------- | --------\nclean | TEST_IMAGE_NAME | No\nlint | None | Yes\ntest-unit | None | Yes\ntest-functional | None | Yes\ninstall-cluster-deps | VENV | No\ncluster-up | CLUSTER_NAME, CLUSTER_CONFIG,\u003cbr/\u003eKUBERNETES_VERSION | Yes\ncluster-down | CLUSTER_NAME  | Yes\npush-dev-image | COMMIT_SHA, DEV_IMAGE_REPO,\u003cbr/\u003eGIT_BRANCH, TEST_IMAGE_NAME | No\npush-rc-image | COMMIT_SHA, DEV_IMAGE_REPO,\u003cbr/\u003eGIT_TAG | No\npush-prod-image-rebuild | DEV_IMAGE_REPO, GIT_BRANCH,\u003cbr/\u003eGIT_TAG, PROD_IMAGE_REPO | No\npush-prod-image-reelase | DEV_IMAGE_REPO, GIT_BRANCH,\u003cbr/\u003eGIT_TAG, PROD_IMAGE_REPO | No\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanchore%2Ftest-infra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanchore%2Ftest-infra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanchore%2Ftest-infra/lists"}