Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError upon running odevalidator with good_AltValPercent.json file #42

Open
dmccoystephenson opened this issue Dec 27, 2023 · 0 comments

Comments

@dmccoystephenson
Copy link
Contributor

Upon running the good_AltValPercent.json file through the odevalidator, the check is interrupted by a KeyError.

Command:

python -m odevalidator --data-file tests/test-files/good_AltValPercent.json --config odevalidator/configs/config.ini

Output:

Running test on tests/testfiles/good_altValPercent.json
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "(redacted)/ode-output-validator-library/odevalidator/main.py", line 29, in
results = TestCase(args.config_file_path).validate_queue(msg_queue)
File "(redacted)/ode-output-validator-library/odevalidator/validator.py", line 445, in validate_queue
sorted_list = sorted(msg_list, key=lambda msg: msg['metadata']['serialId']['serialNumber'])
File "(redacted)/ode-output-validator-library/odevalidator/validator.py", line 445, in
sorted_list = sorted(msg_list, key=lambda msg: msg['metadata']['serialId']['serialNumber'])
KeyError: 'metadata'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant