- CPS-950Getting issue details... STATUS
Refactor existing model sync code into separate package and classes so it can be used by both sync(current) service and new watchdog process.
Keep all sync method(s) in a separate class so that it can be tested easily.
Method name that need to be refactored > Class name : org.onap.cps.ncmp.api.impl.NetworkCmProxyDataServiceImpl > Method name : syncAndCreateSchemaSet
- Created new package(s) for synchronization code
- org.onap.cps.ncmp.api.impl.sync.model
- org.onap.cps.ncmp.api.impl.sync.data
- Break down syncAndCreateSchemaSet method into separate / multiple methods
- syncAndCreateSchemaSet(yangModelCmHandle);
- createAnchor(yangModelCmHandle);
3. Take out common code at one place so that it can be resued.
Currently test is in : org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImplModelSyncSpec.groovy
Note :
During our scheduled metting we decided to discuss refactoring with inventory prospective with @Toine in tomorrow's daily call.
Suggestions :
- org.onap.cps.ncmp.inventory.sync.model