Skip to content

Fix List Leaf Delete#422

Open
ScottS-Syd wants to merge 1 commit intosdcio:mainfrom
ScottS-Syd:fixListLeafDelete
Open

Fix List Leaf Delete#422
ScottS-Syd wants to merge 1 commit intosdcio:mainfrom
ScottS-Syd:fixListLeafDelete

Conversation

@ScottS-Syd
Copy link
Copy Markdown

list-leaf delete is not creating the xml in expected format.

  • the value of the key node is missing
  • the operation is placed on leaf

go test -count=1 -v ./pkg/tree/ops -run TestToXML_KeyLeafDeleteUpgradesToListEntryDelete === RUN TestToXML_KeyLeafDeleteUpgradesToListEntryDelete time="2026-05-01T10:57:27+10:00" level=info msg="schema testschema@sdcio@v0.0.0 building references" time="2026-05-01T10:57:27+10:00" level=info msg="schema testschema@sdcio@v0.0.0 parsed in 3.596709ms" xml_test.go:716: ToXML() mismatch (-want +got)   (    """ -  <network-instance operation="delete"> -  <name>default</name> +  <network-instance> +  <name operation="delete"/>    </network-instance>    """   ) --- FAIL: TestToXML_KeyLeafDeleteUpgradesToListEntryDelete (0.01s) FAIL FAIL github.com/sdcio/data-server/pkg/tree/ops 1.217s FAIL

@ScottS-Syd ScottS-Syd requested a review from a team as a code owner May 1, 2026 01:08
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

Successfully merging this pull request may close these issues.

2 participants