Skip to content

Commit

Permalink
Test: regression for show compare default values
Browse files Browse the repository at this point in the history
  • Loading branch information
olofhagsand committed Jan 24, 2025
1 parent ccda986 commit c304067
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test-cli-edit-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,18 @@ function testrun()

new "Delete interface"
expectpart "$($clixon_cli -1 -f $CFG -E $CFD -m configure delete devices device openconfig1 config interfaces interface xintf)" 0 ""

new "Rollback"
expectpart "$($clixon_cli -1 -f $CFG -E $CFD -m configure rollback)" 0 ""

# check no default values for show compare
new "Set new interface kaka"
expectpart "$($clixon_cli -1 -f $CFG -E $CFD -m configure set devices device openconfig1 config interfaces interface kaka)" 0 ""

new "show compare no defaults"
expectpart "$($clixon_cli -1 -f $CFG -E $CFD -m configure show compare)" 0 "<name>kaka</name>" --not-- "<loopback-mode>NONE</loopback-mode>"
exit

}

if $BE; then
Expand Down

0 comments on commit c304067

Please sign in to comment.