Use pytest for test framework and fix for "show ip ospf neighbor" #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current template for Cisco IOS with the reference data doesn't work and the old tests using Ansible doesn't pick this up. I've added done a small change to the template and added a new pair of files for reference and parsed data. These won't be run with the old tests but the py.test one loads all of the files.
I'm not actually sure about the validity of the data in the old reference file with two spaces after
/
here:FULL/ -
. I just left that part as it was. Instead I edited the parsed reference which didn't have the extra space. It could be that the reference data was edited before it was submitted. Let me know if you want me to change the reference data instead.Ps. As a next step I would vote for removing the Ansible tests as it's easier to see what's going wrong with the new tests, it's possible to test more reference files and they run much quicker.