Remove deprecated MD-SAL APIs The APIs in controller have been deprecated for removal and cannot sustain an upgrade to Guava-28+. Remove them along with all supporting implementations. JIRA: CONTROLLER-1903 Change-Id: I213797b7045cfd7bef744e249614e2b1f6169c1c Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Cache reflection operations in AbstractSchemaAwareTest The design of AbstractSchemaAwareTest requires reflection-based loading of SchemaContext for each test case, which is slow. Instantiate weak caches to speed up tests which are co-located on the same class loader. Change-Id: I1a79d7e99f6efcccab37445f3de25a74cb6f02b6 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Use moved BindingReflections BindingReflections are being evacuated from yang-binding, use them from their new location. Change-Id: Ib14971102980688227f1f761c17a22362d4e7e3c Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Fixup Augmentable and Identifiable methods changing This is a fixup of the change in binding codegen, adjusting: - getKey() -> key() - setKey() -> withKey() - getAugmentation() -> augmentation() As a drive-by cleanup, some more references to CheckedFuture are gone. Change-Id: Ifa573f93d1776ab2db98524df4da63259e811767 Signed-off-by: Robert Varga <robert.varga@pantheon.tech> Signed-off-by: Claudio D. Gasparini <claudio.gasparini@pantheon.tech>
Convert DCL tests to use DTCL Change-Id: I05bd3a9b42e1ab3d9a1e682aaacb585aee313e7a Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
Adjust to yangtools-2.0.0 changes Change-Id: Ib86747e5ed19c0c00bb46b8d7e4936f4d90c4364 Signed-off-by: Robert Varga <robert.varga@pantheon.tech> Signed-off-by: Stephen Kitt <skitt@redhat.com>
Bug 8568: Convert sal-binding-dom-it tests to use DataBroker Converted the tests in sal-binding-dom-it to use the DataBroker API instead of the deprecated DataProviderService. Change-Id: I6d4a3442d3c5cf5ddf34806b6a71454c48e3b54a Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
Remove deprecation suppression Suppressed deprecation leads to false sense of completeness. This patch removes suppression in tests, so we see how muchh of the code relies on deprecated APIs. Change-Id: I01d56f3ef4fe385806a8fbebdbe96fd6af63828c Signed-off-by: Robert Varga <rovarga@cisco.com>
Bug 2682 - Switch sal-binding-dom-it to sal-test-model * Migration to sal-test-model Change-Id: If46014ec4cc8b3311a7766bcb2cb9a61b9e71592 Signed-off-by: Jan Hajnar <jhajnar@cisco.com> Signed-off-by: Martin Bobak <mbobak@cisco.com> Signed-off-by: Michal Rehak <mirehak@cisco.com>
Minor cleanup of test suites in MD-SAL - Added SuppressWarning("deprecation") to test suites which test backwards compatibility with Hydrogen APIs - Marked test which needs to be rewritten for new DataBroker API - Removed superflous version for test dependencies Change-Id: I6e8805e1895bc2171aa5c653d8d87fd8b5c9055b Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Bug 949: Fixed support for DataChangeListeners listening directly on Augmentation Used InstanceIdentifier codec does not support AugmentIdentifier, since it is designed for CompositeNode format (serialization as defined by YANG Spec). Instance Identifier for NormalizedNode format allows to directly reference augmentation, for which support was missing. Added a special case handling of Instance Identifiers which targets augmentation directly, since Binding-Aware API and NormalizedNode API allows it. Change-Id: I6371a54dae0e32cac4e1c9b9ab309e91ec3192d9 Signed-off-by: Tony Tkacik <ttkacik@cisco.com>