Migrate sal-clusering-commons tests Migrate most users of deprecated Builders/ImmutableNodes. Change-Id: I676f248cc524ebc51120352951e93e8539b1dd88 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Bump upstreams Adopt: - yangtools-13.0.1 - mdsal-13.0.0 Also adopts AbstractDOMDataBroker from mdsal-dom-spi, so that we have less code duplication and maintenance. UTs mocking NormalizedNode are updated to ContainerNode, as mocking sealed classes does not work with Mockito (out of the box). Change-Id: I6d3d3c8ced297b6850aea951040d16437df9e3f0 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Clean up SerializationUtilsTest Migrate to using xmlunit-core and modernize the logic. Change-Id: I8f116f18abcca8e20d104bd71e1b14e59f1778fd Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Bump upstreams Adopt: - odlparent-13.0.1 - yangtools-11.0.0-SNAPSHOT - mdsal-12-0.0-SNAPSHOT Since the format of NormalizedNode tree is updated to not include AugmentationNode (and AugmentationIdentifier), we must force an incompatible update, as we do not have enough information to produce compatible payload. Change-Id: Ibf444540ed052b49651ba66ca7b93c806a6c8a97 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Migrate users of Optional.get() We have an incoming enforcement patch, prepare to adopt it. Change-Id: If73abd4ceaea71a216a4bc3a3968b400b508ec38 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Bump odlparent/yangtools/mdsal Adopt latest versions, namely; - odlparent-9.0.1 - yangtools-7.0.1 - mdsal-8.0.0-SNAPSHOT There are a few adjustments needed, which mostly deal with the interface to NormalizedNode. Change-Id: I918fb885a6df62e16e17119a7e04ba1672ef7c39 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Bump yangtools to 4.0.1 This bumps yangtools to 4.0.1 as part of Magnesium MRI. Change-Id: I1ac7d3f856af310f4e8015875223d30eac3a8276 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Switch default stream output to Sodium SR1 This flips the switch and uses Sodium SR1 format for all unversioned users. Also updates tests to reflect new expected stream sizes. JIRA: CONTROLLER-1919 Change-Id: I9973bb93f469c1b59533ce580c795cd30c9edda4 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Add an explicit namespace sharing test This adds a test to target QName/QNameModule/String reference differentiation. JIRA: CONTROLLER-1919 Change-Id: Iad736a81f627da4a04753b380acb530ccc8ba219 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Migrate from YangInstanceIdentifier.EMPTY This migrates to the replacement empty() method. Change-Id: I32ca026a33835edb16f8e1e6142e9192c880076b Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Add encoding size asserts There is a number of places where we check serialize/deserialize operations through ByteArrayOutputStream. In order to check stability (and evolution) of our serialization formats, it is useful to check the sizes of the intermediate bytes. JIRA: CONTROLLER-1919 Change-Id: I171894ba3791245a53fe39c2d3238d2341d8ffc4 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Remove use of thread-local input All callers are only called from top-level constructs, thus not having a relationship with the context in which they are deserialized. JIRA: CONTROLLER-1888 Change-Id: I856f9109480fb83475a20ce4430d02a1dd055522 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Do not use NodeIdentifierWithPredicates constructors This class will transition into a value-based object for memory efficiency reasons. Switch to using its static factory methods. Change-Id: I7e21a6ccf1ad999d2d0427769b26dffeac166274 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Remove use of thread-local output All callers can be safely migrated to using a non-shared writer, as they all are expected to be apex implementations. JIRA: CONTROLLER-1888 Change-Id: I87cfa1d3ec415b79c40c29a91ccbd8da2869b27a Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Move byte-based serialization method This is only used in testing, move the method out to testing class. JIRA: CONTROLLER-1888 Change-Id: Ib18be55467561a2471a74285b062b40d4e9e08c8 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Remove unused exceptions This drops exception declarations which are never used. Change-Id: Icc8938b9c3b437a0d5961ec1b481fd06c52d47f2 Signed-off-by: Stephen Kitt <skitt@redhat.com>
Add SerializationUtils unit test Change-Id: I7e8533c8c54c6d2cab234e9ad7db6037a97bdbdc Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>