Open gerrynelson63 opened 2 years ago
@mjerick25
Added what we talked about Friday for doc purposes:
Create an option --generate-tests
The option generates a JSON file, which includes the default tests, but allows the user to edit the file and change the tests.
Potential changes that could be made with the JSON:
Add an option that allows the tool to run the tests in the test file --test-file
Possible format of JSON file to include tests:
{ "tests" : [ { "id": "01", "name" : "CAS Servers", "parameters" : ["cas-shared-default","cas-gelcorp"] }, {"id" :"02", "name" : "Cas libraries", "parameters" : ["systemdata","sales","public"] }, {"id" :"03", "name" : "Folders", "parameters" : ["/Public","/gelcontent/gelcorp"] } ] }
@mjerick25 one small issue with validateviya. It errors out if the output directory does not exist:
Problem creating report
Traceback (most recent call last):
File "./validateviya.py", line 450, in
Would you mind having it create the directory if it doesn't exist. This would be consistent with some of the other tools:
create directory if it doesn't exist if not os.path.exists(path): os.makedirs(path)
Thanks, contact me on teams if you have any questions.
Add a tool that will do an initial validation of a Viya environment. Tool Suggested tests:
Need to decide the format of the output.
Can we build it so that additional tests can be added?