aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/java
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2021-02-25 20:30:39 +0000
committerChristophe Closset <christophe.closset@intl.att.com>2021-02-26 13:18:29 +0000
commit0a254eb756da8407ecf3aabc6dc15013aeb7f9be (patch)
tree1af48a4b6ef6fc717db576ffa5d19d7ac4342857 /catalog-be/src/main/java
parentd673cb77453ba5f8e269d2b919e3a5a1d577bf53 (diff)
Improve test coverage
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3490 Change-Id: Idb71d433834a8612a5434c84c7f0fdef5573cea2
Diffstat (limited to 'catalog-be/src/main/java')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/IDistributionEngine.java43
1 files changed, 31 insertions, 12 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/IDistributionEngine.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/IDistributionEngine.java
index 1c58112293..2136463f79 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/IDistributionEngine.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/IDistributionEngine.java
@@ -20,38 +20,57 @@
package org.openecomp.sdc.be.components.distribution.engine;
+import java.util.List;
import org.openecomp.sdc.be.dao.api.ActionStatus;
import org.openecomp.sdc.be.model.Service;
import org.openecomp.sdc.be.model.User;
import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;
import org.openecomp.sdc.be.resources.data.OperationalEnvironmentEntry;
-import java.util.List;
-
public interface IDistributionEngine {
- boolean isActive();
+ default boolean isActive() {
+ return false;
+ }
- ActionStatus notifyService(String distributionId, Service service, INotificationData notificationData, String envName, User modifier);
+ default ActionStatus notifyService(String distributionId, Service service, INotificationData notificationData, String envName, User modifier) {
+ return null;
+ }
- ActionStatus notifyService(String distributionId, Service service, INotificationData notificationData, String envId, String envName, User modifier);
+ default ActionStatus notifyService(String distributionId, Service service, INotificationData notificationData, String envId, String envName,
+ User modifier) {
+ return null;
+ }
- StorageOperationStatus isEnvironmentAvailable(String envName);
+ default StorageOperationStatus isEnvironmentAvailable(String envName) {
+ return null;
+ }
- StorageOperationStatus isEnvironmentAvailable();
+ default StorageOperationStatus isEnvironmentAvailable() {
+ return null;
+ }
/**
* Currently, it used for tests. For real implementation we need cancel the initialization task and the polling task.
*
* @param envName
*/
- void disableEnvironment(String envName);
+ default void disableEnvironment(String envName) {
+ }
- StorageOperationStatus isReadyForDistribution(String envName);
+ default StorageOperationStatus isReadyForDistribution(String envName) {
+ return null;
+ }
- INotificationData buildServiceForDistribution(Service service, String distributionId, String workloadContext);
+ default INotificationData buildServiceForDistribution(Service service, String distributionId, String workloadContext) {
+ return null;
+ }
- OperationalEnvironmentEntry getEnvironmentById(String opEnvId);
+ default OperationalEnvironmentEntry getEnvironmentById(String opEnvId) {
+ return null;
+ }
- OperationalEnvironmentEntry getEnvironmentByDmaapUebAddress(List<String> dmaapUebAddress);
+ default OperationalEnvironmentEntry getEnvironmentByDmaapUebAddress(List<String> dmaapUebAddress) {
+ return null;
+ }
}