{"id":34065928,"url":"https://github.com/bcgov/bcdc-test","last_synced_at":"2026-03-10T11:32:13.713Z","repository":{"id":57414285,"uuid":"186508471","full_name":"bcgov/bcdc-test","owner":"bcgov","description":"Automated testing for BC Data Catalogue","archived":false,"fork":false,"pushed_at":"2022-12-26T20:56:10.000Z","size":579,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":10,"default_branch":"dev","last_synced_at":"2026-01-03T03:04:00.977Z","etag":null,"topics":["bcdc","bcdc-test","bcdc-test-framework","citz"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bcgov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":"code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-13T23:13:22.000Z","updated_at":"2020-07-21T22:12:36.000Z","dependencies_parsed_at":"2023-01-31T01:30:28.213Z","dependency_job_id":null,"html_url":"https://github.com/bcgov/bcdc-test","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bcgov/bcdc-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fbcdc-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fbcdc-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fbcdc-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fbcdc-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcgov","download_url":"https://codeload.github.com/bcgov/bcdc-test/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fbcdc-test/sbom","scorecard":{"id":228354,"data":{"date":"2025-08-11","repo":{"name":"github.com/bcgov/bcdc-test","commit":"7c2280e2e1dc8b6c1314638c1839985c26cbb082"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/2 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/dev.yml:1","Warn: no topLevel permission defined: .github/workflows/pythonpackage.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dev.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/bcgov/bcdc-test/dev.yml/dev?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dev.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/bcgov/bcdc-test/dev.yml/dev?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpackage.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/bcgov/bcdc-test/pythonpackage.yml/dev?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpackage.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/bcgov/bcdc-test/pythonpackage.yml/dev?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpackage.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/bcgov/bcdc-test/pythonpackage.yml/dev?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/dev.yml:31","Warn: pipCommand not pinned by hash: .github/workflows/dev.yml:32","Warn: pipCommand not pinned by hash: .github/workflows/pythonpackage.yml:55","Warn: pipCommand not pinned by hash: .github/workflows/pythonpackage.yml:56","Warn: pipCommand not pinned by hash: .github/workflows/pythonpackage.yml:75","Warn: pipCommand not pinned by hash: .github/workflows/pythonpackage.yml:76","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'dev'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T04:17:48.580Z","repository_id":57414285,"created_at":"2025-08-17T04:17:48.580Z","updated_at":"2025-08-17T04:17:48.580Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bcdc","bcdc-test","bcdc-test-framework","citz"],"created_at":"2025-12-14T06:04:02.624Z","updated_at":"2026-03-10T11:32:13.690Z","avatar_url":"https://github.com/bcgov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automated BCDC API Testing \n\nIntention is to test the CKAN API after deployment.\n\nCurrent tests include:\n - verification of preconfigured orgs required for testing\n - CRUD tests for packages.\n \n# OCP Build for BCDC-TEST\n\npulls package from https://pypi.org/project/bcdc-apitests/\nnew OC build triggered by github actions on commit to master branch\n\nhow to create new build from build config\n  \n```\noc create -f https://raw.githubusercontent.com/bcgov/bcdc-test/master/k8s/bcdc-test-buildconfig.yaml\n```\n\nstart build \n\n```\noc start-build bcdc-test -n databcdc\n```\n\n# OCP Job Template for BCDC-TEST\n\nexample how to run job from template\n\n```\noc process -f https://raw.githubusercontent.com/bcgov/bcdc-test/master/k8s/bcdc-api-test-job-template.yaml -p BCDC_URL_CONFIG_NAME='cadi-bcdc-url' -p BCDC_API_SECRET_NAME='cadi-bcdc-api-key' -p ENV=dev | oc create -f -\"\n\n```\nRequired parameters to override in template\n```\nBCDC_URL_CONFIG_NAME = \u003cConfig Name in OCP to get URL of ckan instance to run against\u003e\nBCDC_API_SECRET_NAME = \u003cSecret Name in OCP to get ckan api key\u003e\nENV = \u003cApp Env to run in\u003e\n```\n\n# OCP Build for BCDC-TEST-DEV\n\npulls from https://pypi.org/project/bcdc-apitests-dev/\nnew OC build triggered by github actions on push to dev branch\n\n```\noc create -f https://raw.githubusercontent.com/bcgov/bcdc-test/master/k8s/bcdc-test-buildconfig-dev.yaml\n```\n\n# OC Job Template for BCDC-TEST-DEV\n\n```\noc process -f https://raw.githubusercontent.com/bcgov/bcdc-test/master/k8s/bcdc-api-test-job-template-development.yaml -p BCDC_URL_CONFIG_NAME='cadi-bcdc-url' -p BCDC_API_SECRET_NAME='cadi-bcdc-api-key' -p ENV=dev | oc create -f -\"\n```\n```\nRequired parameters to override in template\n```\nBCDC_URL_CONFIG_NAME = \u003cConfig Name in OCP to get URL of ckan instance to run against\u003e\nBCDC_API_SECRET_NAME = \u003cSecret Name in OCP to get ckan api key\u003e\nENV = \u003cApp Env to run in\u003e\n```\n\n# OC Job Cleanup \n* to be performed on a regular basis to cleanup old pods created by jobs\n\nto view all jobs\n```\noc get job\n```\nto delete all jobs by label\n```\noc delete job -l name=ckan-api-test\n```\n# Run Tests locally\n\n```\npip install pypandoc \npip install bcdc_apitests\nexport BCDC_API_KEY=\u003capi-key\u003e\nexport BCDC_URL=\u003curl-to-ckan\u003e\npytest --pyargs bcdc_apitests\n```\n  \n# Packaging\n\n### disable teardown\n`--df` Include this switch if you want to disable teardown that deletes the test \ndata that gets generated by the test suite.  The various options basically tell the \ntest suite not to delete a particular type of data that are generated by the tests.\n\nOptions include:\n* *orgs*\n* *groups*\n* *packages*\n* *resources*\n* *users*\n* *other*\n* *ALL*\n\n# Packaging\n\nPackaging is currently configured to be built automatically by github actions when \na pull request on master has been successfully merged.  \n\n## packaging version numbers\n\nWhen a new package is built it will automatically check what the last version \nis in PYPI for the package and increment that number.  \n\nExample if the version in pypi is 7.3.45, the next time the github action triggers\nit will be 7.3.46.  If you want the change either the major or the minor number\nset the number in packages __init__.py file, for example to increment the major\nversion number to 8.\n\n```\n...\nversion=8.0.0\n...\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcgov%2Fbcdc-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcgov%2Fbcdc-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcgov%2Fbcdc-test/lists"}