<artifactId>epsdk-fw</artifactId>
<version>${portal.sdk.version}</version>
</dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>2.17.0</version>
+ </dependency>
</dependencies>
</dependencyManagement>
<parent>
<groupId>org.onap.aai</groupId>
<artifactId>sparky-be</artifactId>
- <version>2.0.5-SNAPSHOT</version>
+ <version>2.0.6-SNAPSHOT</version>
</parent>
<groupId>org.onap.aai.sparky-be</groupId>
<artifactId>sparkybe-onap-application</artifactId>
- <version>2.0.5-SNAPSHOT</version>
+ <version>2.0.6-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
- <version>26.0-jre</version>
+ <version>33.3.1-jre</version>
</dependency>
<dependency>
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
-import java.util.Map;
import static org.onap.aai.sparky.logging.AaiUiMsgs.INFO_GENERIC;
package org.onap.aai.sparky.exception;
-import java.util.Date;
-
public class ProxyErrorDetails {
private String message;
private String details;
import org.onap.aai.sparky.sync.config.ElasticSearchSchemaConfig;
import org.onap.aai.sparky.sync.config.NetworkStatisticsConfig;
import org.onap.aai.sparky.sync.config.SyncControllerConfig;
-import org.springframework.beans.factory.annotation.Autowired;
public class AutoSuggestionSyncController extends SyncControllerImpl implements SyncControllerRegistrar {
import java.util.List;
import javax.json.JsonObject;
-import javax.ws.rs.core.MediaType;
import org.json.JSONArray;
import org.json.JSONObject;
import org.onap.portalsdk.core.onboarding.listener.PortalTimeoutHandler;
import org.onap.portalsdk.core.onboarding.util.PortalApiConstants;
import org.onap.portalsdk.core.onboarding.util.PortalApiProperties;
-import org.onap.portalsdk.core.onboarding.util.SSOUtil;
/**
* This filter checks every request for proper ECOMP Portal single sign on initialization. The
*/
package org.onap.aai.sparky.sync;
-import javax.ws.rs.core.MediaType;
-
import org.onap.aai.cl.api.Logger;
import org.onap.aai.cl.eelf.LoggerFactory;
import org.onap.aai.restclient.client.OperationResult;
import org.onap.aai.sparky.sync.enumeration.OperationState;
import org.onap.aai.sparky.sync.enumeration.SynchronizerState;
import org.onap.aai.sparky.util.NodeUtils;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
/**
* The Class SyncController.
package org.onap.aai.sparky.sync.entity;
import java.util.ArrayList;
-import java.util.Arrays;
import org.onap.aai.sparky.util.NodeUtils;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
-import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import org.onap.aai.sparky.dal.rest.RestClientConstructionException;
import org.onap.aai.sparky.dal.rest.RestClientFactory;
import org.onap.aai.sparky.dal.rest.config.RestEndpointConfig;
-import org.onap.aai.sparky.util.Encryptor;
-import org.onap.aai.sparky.viewandinspect.config.SparkyConstants;
import org.onap.aai.sparky.exception.ProxyServiceException;
import org.slf4j.MDC;
import javax.ws.rs.core.MediaType;
-import javax.ws.rs.core.MultivaluedMap;
import javax.servlet.http.HttpServletRequest;
import java.io.BufferedReader;
import java.io.IOException;
import org.onap.aai.cl.api.Logger;
import org.onap.aai.cl.eelf.LoggerFactory;
-import org.onap.aai.sparky.aggregatevnf.search.AggregateSummaryProcessor;
import org.onap.aai.sparky.logging.AaiUiMsgs;
import org.onap.aai.sparky.subscription.config.SubscriptionConfig;
import org.onap.aai.sparky.subscription.payload.entity.ObjectInspectorPayload;
import static org.junit.Assert.assertNotNull;
-import javax.ws.rs.core.MediaType;
-
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
-import org.onap.aai.sparky.analytics.AveragingRingBuffer;
/**
* The Class AveragingRingBufferTest.
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
-import org.onap.aai.sparky.analytics.HistogramSampler;
/**
* The Class HistogramSamplerTest.
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.analytics.HistoricalCounter;
public class HistoricalCounterTest {
import org.onap.aai.sparky.config.oxm.GeoEntityLookup;
import org.onap.aai.sparky.config.oxm.OxmEntityDescriptor;
import org.onap.aai.sparky.config.oxm.OxmEntityLookup;
-import org.onap.aai.sparky.config.oxm.OxmModelLoader;
import org.onap.aai.sparky.config.oxm.OxmModelProcessor;
import org.onap.aai.sparky.config.oxm.SuggestionEntityDescriptor;
import org.onap.aai.sparky.dal.ActiveInventoryAdapter;
package org.onap.aai.sparky.common.search;
-import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
package org.onap.aai.sparky.dal;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-
-import java.util.ArrayList;
import org.junit.Before;
import org.junit.Test;
package org.onap.aai.sparky.dal.sas.config;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-
import org.junit.Before;
import org.junit.Test;
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.logging.util.LoggingUtils;
public class LoggingUtilsTest {
import org.apache.camel.Exchange;
import org.apache.camel.Message;
import org.junit.Before;
-import org.junit.Test;
import org.mockito.Mockito;
import org.onap.aai.sparky.personalization.config.PersonalizationConfig;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-
-import java.util.ArrayList;
import org.junit.Before;
import org.junit.Test;
package org.onap.aai.sparky.search.config;
-import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.HashMap;
import org.mockito.Mockito;
import org.onap.aai.restclient.enums.RestAuthenticationMode;
import org.onap.aai.sparky.config.SparkyResourceLoader;
-import org.onap.aai.sparky.dal.rest.RestClientConstructionException;
import org.onap.aai.sparky.dal.rest.config.RestEndpointConfig;
import org.onap.aai.sparky.search.SearchServiceAdapter;
import org.onap.aai.sparky.search.filters.config.FiltersConfig;
*/
package org.onap.aai.sparky.search.filters;
-
-import static org.junit.Assert.assertEquals;
-
-import java.io.IOException;
-
-import org.junit.BeforeClass;
-import org.junit.Test;
-import org.onap.aai.sparky.search.filters.FilteredSearchHelper;
-import org.onap.aai.sparky.search.filters.config.FiltersConfig;
/*
public class FilteredSearchHelperTest {
package org.onap.aai.sparky.search.filters.config;
-import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-
-import java.util.ArrayList;
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.viewandinspect.config.VisualizationConfigs;
public class FiltersConfigTest {
package org.onap.aai.sparky.search.filters.config;
-import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.viewandinspect.config.VisualizationConfigs;
public class FiltersDetailsConfigTest {
package org.onap.aai.sparky.search.filters.config;
-import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.viewandinspect.config.VisualizationConfigs;
public class FiltersForViewsConfigTest {
package org.onap.aai.sparky.search.filters.config;
import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
import java.util.ArrayList;
package org.onap.aai.sparky.search.filters.config;
-import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-
-import java.util.ArrayList;
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.viewandinspect.config.VisualizationConfigs;
public class UiFilterDataSourceConfigTest {
import java.util.ArrayList;
import static org.junit.Assert.*;
-import static org.junit.Assert.assertNull;
public class EcompSsoTest {
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
-import org.onap.aai.sparky.security.portal.UserManager;
import org.onap.aai.sparky.util.NodeUtils;
import org.onap.portalsdk.core.restful.domain.EcompUser;
import org.slf4j.Logger;
package org.onap.aai.sparky.subscription.payload.entity;
import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
import java.io.IOException;
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.subscription.config.SubscriptionConfig;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.MediaType;
-
import org.junit.Before;
import org.junit.Test;
import org.mockito.Matchers;
package org.onap.aai.sparky.sync;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
-import org.onap.aai.sparky.sync.IndexCleaner;
-import org.onap.aai.sparky.sync.IndexSynchronizer;
-import org.onap.aai.sparky.sync.IndexValidator;
-import org.onap.aai.sparky.sync.SyncControllerImpl;
import org.onap.aai.sparky.sync.SyncControllerImpl.SyncActions;
import org.onap.aai.sparky.sync.config.SyncControllerConfig;
import org.onap.aai.sparky.sync.enumeration.SynchronizerState;
package org.onap.aai.sparky.sync.config;
-import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.onap.aai.cl.eelf.LoggerFactory;
import org.onap.aai.restclient.client.OperationResult;
import org.onap.aai.restclient.enums.RestAuthenticationMode;
-import org.onap.aai.setup.SchemaVersion;
import org.onap.aai.sparky.config.oxm.OxmModelLoader;
import org.onap.aai.sparky.dal.GizmoAdapter;
import org.onap.aai.sparky.dal.exception.ElasticSearchOperationException;
*/
package org.onap.aai.sparky.synchronizer.task;
-
-import org.junit.BeforeClass;
-import org.onap.aai.sparky.sync.task.PerformActiveInventoryRetrieval;
/*
*
* TODO-> RestClientBuilder is no longer being use neither is RestAuthenticationMode class
import org.junit.Before;
import org.junit.Test;
-import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import java.util.List;
import org.junit.Test;
-import org.onap.aai.sparky.util.SuggestionsPermutation;
public class SuggestionsPermutationTest {
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.util.NodeUtils;
-import org.onap.aai.sparky.util.TreeWalker;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
-import org.onap.aai.sparky.viewandinspect.entity.EntityEntry;
/**
* The Class EntityEntryTest.
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.viewandinspect.entity.GraphRequest;
public class GraphRequestTest {
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.viewandinspect.entity.NodeDebug;
public class NodeDebugTest {
package org.onap.aai.sparky.viewandinspect.entity;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.viewandinspect.entity.QueryParams;
public class QueryParamsTest {
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.viewandinspect.entity.QueryRequest;
public class QueryRequestTest {
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.viewandinspect.entity.RelatedToProperty;
public class RelatedToPropertyTest {
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.viewandinspect.entity.RelationshipData;
public class RelationshipDataTest {
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sparky.viewandinspect.entity.SparkyGraphLink;
public class SparkyGraphLinkTest {
import org.onap.aai.restclient.client.OperationResult;
import org.onap.aai.sparky.config.oxm.OxmEntityDescriptor;
import org.onap.aai.sparky.config.oxm.OxmEntityLookup;
-import org.onap.aai.sparky.config.oxm.OxmModelLoader;
import org.onap.aai.sparky.config.oxm.OxmModelProcessor;
import org.onap.aai.sparky.config.oxm.SearchableEntityLookup;
import org.onap.aai.sparky.config.oxm.SuggestionEntityDescriptor;