Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Intention is to test the CKAN API after deployment.
Current tests include:
pulls package from https://pypi.org/project/bcdc-apitests/ new OC build triggered by github actions on commit to master branch
how to create new build from build config
oc create -f https://raw.githubusercontent.com/bcgov/bcdc-test/master/k8s/bcdc-test-buildconfig.yaml
start build
oc start-build bcdc-test -n databcdc
example how to run job from template
oc 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 -"
Required parameters to override in template
BCDC_URL_CONFIG_NAME = <Config Name in OCP to get URL of ckan instance to run against>
BCDC_API_SECRET_NAME = <Secret Name in OCP to get ckan api key>
ENV = <App Env to run in>
pulls from https://pypi.org/project/bcdc-apitests-dev/ new OC build triggered by github actions on push to dev branch
oc create -f https://raw.githubusercontent.com/bcgov/bcdc-test/master/k8s/bcdc-test-buildconfig-dev.yaml
oc 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 -"
Required parameters to override in template
BCDC_URL_CONFIG_NAME = BCDC_API_SECRET_NAME = ENV =
# OC Job Cleanup
* to be performed on a regular basis to cleanup old pods created by jobs
to view all jobs
oc get job
to delete all jobs by label
oc delete job -l name=ckan-api-test
# Run Tests locally
pip install pypandoc pip install bcdc_apitests export BCDC_API_KEY= export BCDC_URL= pytest --pyargs bcdc_apitests
# Packaging
### disable teardown
`--df` Include this switch if you want to disable teardown that deletes the test
data that gets generated by the test suite. The various options basically tell the
test suite not to delete a particular type of data that are generated by the tests.
Options include:
* *orgs*
* *groups*
* *packages*
* *resources*
* *users*
* *other*
* *ALL*
# Packaging
Packaging is currently configured to be built automatically by github actions when
a pull request on master has been successfully merged.
## packaging version numbers
When a new package is built it will automatically check what the last version
is in PYPI for the package and increment that number.
Example if the version in pypi is 7.3.45, the next time the github action triggers
it will be 7.3.46. If you want the change either the major or the minor number
set the number in packages __init__.py file, for example to increment the major
version number to 8.
... version=8.0.0 ...
FAQs
API testing for BC Data Catalog
We found that bcdc-apitests demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.