Fix Mandatory Attribute Validation#393
Conversation
|
@markafarrell yes this seems valid and correct. |
I wanted to add a test case to validate the change before I set the PR to ready. |
a988d12 to
ec35eb4
Compare
|
@steiler This is ready for review now |
|
@markafarrell can you take a look at the ygot struct... it contains an ipv6 container, which is not present in the yang definition. |
It is from https://github.com/sdcio/data-server/blob/main/tests%2Fschema%2Fsdcio_model_static_route.yang which was added 3 months ago. I guess when it was added the ygot make target wasn't run. I couldn't figure out an elegant way of excluding it. |
Alright, yes sorry, I see. |
@steiler Do I need to worry about failing CI? |
No, the ci is not to be trusted atm. We've encountered issues with the deviation processing, which was finally revealed by the failing integration tests, so we're changing that processing atm. Having a multi repo project with config-server and data-server in separate repos as well as the integration tests also adds some glitches in this case. |
|
OK, so I took a closer look and discovered, that even the unittests where failing which should not have happened. |
|
Thanks @markafarrell |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
What?
Choiceif it actually is a choiceWhy?
s.schema.GetContainer().GetChoiceInfo()returnsnull) then we will have a null pointer dereference error when runningGetChoiceByName(c.Name)