Update graphadmin to use schema ingest changes for 45/84445/3
authorKajur, Harish (vk250x) <vk250x@att.com>
Sun, 7 Apr 2019 23:15:23 +0000 (19:15 -0400)
committerKajur, Harish (vk250x) <vk250x@att.com>
Tue, 9 Apr 2019 19:23:08 +0000 (15:23 -0400)
the application to not start if it doesn't start properly

Issue-ID: AAI-2329
Change-Id: Ie6b87de99e1a52eccd2762ec19661f1f42c8e083
Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
pom.xml
src/main/java/org/onap/aai/datagrooming/DataGrooming.java
src/main/java/org/onap/aai/db/schema/ScriptDriver.java
src/test/java/org/onap/aai/AAISetup.java

diff --git a/pom.xml b/pom.xml
index acb6a60..24ef98f 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -99,7 +99,7 @@
         <gson.version>2.7</gson.version>
         <json.version>20090211</json.version>
 
-        <aai.core.version>1.4.1</aai.core.version>
+        <aai.core.version>1.4.2</aai.core.version>
         <aai.schema.version>1.0.1</aai.schema.version>
 
         <netty.handler.version>4.1.9.Final</netty.handler.version>
index e222228..7e667f4 100644 (file)
@@ -316,7 +316,7 @@ public class DataGrooming {
                        throw aai;
                }
                LoaderFactory loaderFactory = ctx.getBean(LoaderFactory.class);
-               SchemaVersions schemaVersions = ctx.getBean(SchemaVersions.class);
+               SchemaVersions schemaVersions = (SchemaVersions) ctx.getBean("schemaVersions");
                DataGrooming dataGrooming = new DataGrooming(loaderFactory, schemaVersions);
                dataGrooming.execute(args);
        }
index c45ad28..6b36adc 100644 (file)
@@ -90,7 +90,7 @@ public class ScriptDriver {
                        throw aai;
                }
                AuditorFactory auditorFactory = ctx.getBean(AuditorFactory.class);
-               SchemaVersions schemaVersions = ctx.getBean(SchemaVersions.class);
+               SchemaVersions schemaVersions = (SchemaVersions) ctx.getBean("schemaVersions");
                EdgeIngestor edgeIngestor     = ctx.getBean(EdgeIngestor.class);
 
                String config = cArgs.config;
@@ -136,4 +136,4 @@ class CommandLineArgs {
        public String type = "graph";
        
 
-}
\ No newline at end of file
+}
index 5ceafa7..25e011b 100644 (file)
@@ -50,9 +50,8 @@ import org.springframework.test.context.junit4.rules.SpringClassRule;
 import org.springframework.test.context.junit4.rules.SpringMethodRule;
 
 @ContextConfiguration(classes = {
-        SchemaLocationsBean.class,
+        ConfigConfiguration.class,
         AAIConfigTranslator.class,
-        SchemaVersions.class,
         NodeIngestor.class,
         EdgeIngestor.class,
         EdgeSerializer.class,
@@ -135,4 +134,4 @@ public abstract class AAISetup {
         String resource = IOUtils.toString(inputStream);
         return resource;
     }
-}
\ No newline at end of file
+}