Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@cds-au/testdata
Advanced tools
Tools for the creation of manufactured test data for the Australian Consumer Data Right regime
The CDR testdata CLI can be used to generate manufactured test data for the Consumer Data Right standards. This CLI allows the configuration, through an option file, of a variety of data factories
that can be used to generate test files with different characteristics. This project is also designed to allow for additional factories
to be added via Pull Request to accommodate different scenarios.
This tool has been created by the Data Standards Body to support participants implementing of the technical standards developed for the Australian Consumer Data Right regime.
The goal of the testdata CLI is to provide support for CDR participants seeking to test their implementations to ensure confidence that they have covered a wide range of possible scenarios liked to be encountered in production scenarios.
To install the testdata command line tool (testdata
) you need to have npm installed. With npm installed run the following command:
npm install @cds-au/testdata -g
This will make the CLI available globally.
data-schema
Print out the test data schema currently in use to stdout. This will be the full JSON schema file and allows for the schema to be reused in your own tools or workflow.
None
Options | Description |
---|---|
--vonly | Output only the version of the schema that the CLI is currently using |
testdata data-schema
Output the current test data schema to stdout
testdata data-schema --vonly
Output the version of test data schema to stdout
factories
List the factories that are currently implemented with a short description of each factory describing its purpose.
None
None
testdata factories
List the factories implemented in this version of the CLI
factory <factory-id>
Give detailed documentation for a specific factory including the purpose of the factory, the data that it generates or modifies and the options that it consumes.
Argument | Description |
---|---|
<factory-id> | The ID of the factory that documentation is requested for. |
None
testdata factory load-static-data
Output the detailed documentation for the load-static-data
factory.
generate <opts> <dst>
Read in the specified options file and generate a data file in the file specified as the destination. The resulting file will contain JSON consistent with the test data schema supported by the CLI.
Argument | Description |
---|---|
<opts> | The options file indicating the factories to execute, in what order and with what options specified. |
<dst> | The destination file for the generated output. The contents will always be JSON consistent with the test data schema. |
None
testdata generate options.json data.json
Generate test data using the options in the options.json
file and output the resulting data to the data.json
file.
Enhancement and bug fix pull requests are welcome in accordance with the contribution policy for the repository.
For additional contribution please ensure that pull requests are fully tested and include updates to documentation.
To build the repository run the following scripts from a bash compliant command prompt or terminal window:
npm install
npm run sync-schema
npm run build
To publish the repository to npm (needs permission)
npm run build-prod
npm publish --access public
The following are a list of features that are intended but yet to be added to this capability (contributions welcome):
FAQs
Tools for the creation of manufactured test data for the Australian Consumer Data Right regime
The npm package @cds-au/testdata receives a total of 0 weekly downloads. As such, @cds-au/testdata popularity was classified as not popular.
We found that @cds-au/testdata demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.