UW Tools Test Cases #166
Replies: 14 comments 12 replies
-
|
Link to comment on testing Templater on Unix: |
Beta Was this translation helpful? Give feedback.
-
|
Link to comment on testing Templater on Mac: |
Beta Was this translation helpful? Give feedback.
-
|
Release Acceptance Testing Summary - copied from Jira, was a table, reformatting Date: 3/22/23 Description Tester. Platform Status (OPEN/PASS/FAIL) Fill in a template from an INI file VH Unix/Hera FAIL - issue UW-273 Have the tool provide the required fields for any Jinja2 template VH Unix/Hera PASS Source a bash configure file and fill in a template (choose any from the weather model) VH Unix/Hera
Try to fill in a template without providing enough information (observe failure) VH Unix/Hera
It might be good to do more validation of the input and the output. Also, I can put a config file in the directory with the programs without passing a path, but the input jinja template file must have the path specified even if it's in the same directory. Otherwise it gets a TemplateNotFound error. |
Beta Was this translation helpful? Give feedback.
-
|
Release Acceptance Testing on Mac Date: 3/22/23 For these tests, I kept the sample files in a separate directory. All results were still the same as the tests on Unix. |
Beta Was this translation helpful? Give feedback.
-
|
Release Acceptance Testing of set_config.py on Unix/Hera Load a namelist and change values given a bash/ini configure file.
python src/uwtools/set_config.py -i ../samples/list_nml.nml -c ../samples/update_ini_match_hdr.ini -o ../samples/output_nml_ini_match_hdr.nml ../samples/list_nml.nml ../samples/update_ini_match_hdr.ini ../samples/output_nml_ini_match_hdr.nml
python src/uwtools/set_config.py -i ../samples/list_nml.nml -c ../samples/update_ini_random_hdr.ini -o ../samples/output_nml_ini_nomatch_hdr.nml cat ../samples/update_ini_random_hdr.ini cat ../samples/output_nml_ini_nomatch_hdr.nml &sec_hdr
python src/uwtools/set_config.py -i ../samples/list_nml.nml -c ../samples/update_ini_nohdr.ini -o ../samples/output_nml_ini_nohdr.nml Traceback (most recent call last): cat ../samples/update_ini_nohdr.ini cat ../samples/output_nml_ini_nohdr.nml &chksum_debug
python src/uwtools/set_config.py -i ../samples/list_nml_nohdr.nml -c ../samples/update_ini_nohdr.ini -o ../samples/output_nml_ini_nohdr2.nml Traceback (most recent call last): cat ../samples/list_nml_nohdr.nml cat ../samples/output_nml_ini_nohdr2.nml
python src/uwtools/set_config.py -i ../samples/list_nml_nohdr.nml -c ../samples/update_ini_random_hdr.ini -o ../samples/output_nml_ini_nohdr3.nml cat ../samples/output_nml_ini_nohdr3.nml |
Beta Was this translation helpful? Give feedback.
-
|
Release Acceptance Testing of set_config.py on Unix/Hera I'm not going to go into as much detail, because I'm sensing a theme here.
python src/uwtools/set_config.py -i ../samples/list_nml.nml -c ../samples/update_yaml_match_hdr.yaml -o ../samples/output_nml_yaml_match_hdr.nml cat ../samples/update_yaml_match_hdr.yaml cat ../samples/update_yaml_random_hdr.yaml The other 2 things, and I don't know whether they matter, are that:
|
Beta Was this translation helpful? Give feedback.
-
|
I think configparser requires that an INI file have 1 or more section headers |
Beta Was this translation helpful? Give feedback.
-
|
Release Acceptance Testing of set_config.py on Unix/Hera 4 tests done with an ini file having the same header and key-value pairs as list_nml.nml, and using same config yaml files. Also tested with a namelist extension on output file.
python src/uwtools/set_config.py -i ../samples/list_ini.ini -c ../samples/update_yaml_match_hdr.yaml -o ../samples/output_ini_yaml_match_hdr.ini cat ../samples/list_ini.ini cat ../samples/output_ini_yaml_match_hdr.ini
python src/uwtools/set_config.py -i ../samples/list_ini.ini -c ../samples/update_yaml_random_hdr.yaml -o ../samples/output_ini_yaml_random_hdr.ini cat ../samples/output_ini_yaml_random_hdr.ini [sec_hdr]
python src/uwtools/set_config.py -i ../samples/list_ini.ini -c ../samples/update_yaml_match_hdr.yaml -o ../samples/output_ini_match_hdr.nml cat ../samples/output_ini_match_hdr.nml
python src/uwtools/set_config.py -i ../samples/list_ini.ini -c ../samples/update_yaml_random_hdr.yaml -o ../samples/output_ini_random_hdr.nml cat ../samples/output_ini_random_hdr.nml &sec_hdr |
Beta Was this translation helpful? Give feedback.
-
|
Release Acceptance Testing of set_config.py on Unix/Hera
python src/uwtools/set_config.py -i ../samples/list_nml.nml -c ../samples/output_ini_match_hdr.nml --compare - /scratch1/BMC/zrtrr/uw/samples/list_nml.nml
|
Beta Was this translation helpful? Give feedback.
-
|
Release Acceptance Testing of set_config.py on Unix/Hera
python src/uwtools/set_config.py -i ../samples/update_yaml_match_hdr.yaml -c ../samples/update_yaml_match_rev_hdr.yaml --compare - /scratch1/BMC/zrtrr/uw/samples/update_yaml_match_hdr.yaml
|
Beta Was this translation helpful? Give feedback.
-
|
Release Acceptance Testing of set_config.py on Unix/Hera
python src/uwtools/set_config.py -i ../samples/list_ini.ini -c ../samples/update_ini_match_hdr.ini --compare - /scratch1/BMC/zrtrr/uw/samples/list_ini.ini
|
Beta Was this translation helpful? Give feedback.
-
|
Release Acceptance Testing of atparse_to_jinja2.py on Unix/Hera Jumping back to atparse_to_jinja2.py. Read in file with 9 instances of @[var] and replaced all instances with {{var}}. SUCCESS |
Beta Was this translation helpful? Give feedback.
-
|
Release Acceptance Testing of sset_config.py on Unix/Hera
python workflow-tools/scripts/set_config.py -i samples/config_defaults.yaml -c samples/update_config_defaults.yaml -o samples/output_config_defaults.yaml python workflow-tools/scripts/set_config.py -i samples/output_config_defaults.yaml --values_needed > samples/output_updated_config.yaml First 4 issues:
workflow: When run this way, program errors out. Then took out the punctuation, and it set the simplified value. Traceback (most recent call last): 2-4. Problems with three longer values that have single ticks, double ticks, percents, and curly braces. Set to blank, shown as not set by values_needed on updated file platform: global: |
Beta Was this translation helpful? Give feedback.
-
|
This is good, I think. I do have questions/coments, though.
2-4. In the global example, I see that there is Jinja2 filter ( What other problems am I missing here? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
UW Tools Test Cases
External Testing Instructions
For each line in the table, the External Tester listed should:Copy/paste the following template into your ISSUE COMMENT:
The
External Testeris set toNAfor any issues that do not require external acceptance testing.atparse_to_jinja2
set_config
Templater
Beta Was this translation helpful? Give feedback.
All reactions