Skip to content

Configuring with NETCONF say ok even if config validation fails #1250

@mattiaswal

Description

@mattiaswal

Current Behavior

The test continues and fail on something else, in this case, no configuration has been done. But the problem is if you configure multiple snippets of configuration and one fail. You may get the wrong test.

# Connecting to mgmt IP fe80::2a0:85ff:fe00:401%d4a:830 ...
# YANG models downloaded.
ok 1 - Set up topology and attach to target DUTs
ok 2 - Generate WireGuard keys
# Failed sending edit-config RPC: Missing mandatory choice.  Retrying ...
# Failed sending edit-config RPC: Missing mandatory choice.  Retrying ...
# Failed sending edit-config RPC: Missing mandatory choice.  Retrying ...
ok 3 - Configure WireGuard tunnel on left DUT
# Failed sending edit-config RPC: Missing mandatory choice.  Retrying ...
# Failed sending edit-config RPC: Missing mandatory choice.  Retrying ...
# Failed sending edit-config RPC: Missing mandatory choice.  Retrying ...
ok 4 - Configure WireGuard tunnel on right DUT

Expected Behavior

Fail, test stop. When configuration failed.

Steps To Reproduce

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtestRegression test related

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions