zowe / zowe-install-packaging

Packaging repository for the Zowe install scripts and files
Eclipse Public License 2.0
26 stars 52 forks source link

pswi schema validation tests #3746

Open MarkAckert opened 4 months ago

MarkAckert commented 4 months ago

PR type

This PR adds tests which attempt to detect desync between the zowe.yaml schema files and the zowe.yaml which is embedded and configured as part of the z/OSMF workflows.

This PR adds tests which cover the following cases:

In both schema validation cases, we are using a popular JSON schema validator, ajv. This is not the same schema validation happening in the zwe configMgr tool, but a few manual tests show their results look to be the same. I think these schema tests are very high confidence, but if we want perfect confidence results, we need new server-side configMgr-driven schema validation tests.

To run these tests: npm install and npx mocha or npm run test. No server-side dependencies required.

Relevant issues