Change-Id: Id7afff65de1a4c32c95da8ea359d7f97b025cf63
Signed-off-by: dglFromAtt <dgl@research.att.com>
Issue-ID: DMAAP-656
#
# MR Topic Factory Namespace
#
#
# MR Topic Factory Namespace
#
-MR.TopicFactoryNS: org.onap.dcae.dmaap.topicFactory
+MR.TopicFactoryNS: org.onap.dmaap.mr.topicFactory
-MR.TopicMgrRole: org.onap.dmaapBC.TopicMgr
+MR.TopicMgrRole: org.onap.dmaap-bc.TopicMgr
# MR topic name style
MR.topicStyle: FQTN_LEGACY_FORMAT
# MR topic ProjectID
MR.projectID: 23456
# MR topic name style
MR.topicStyle: FQTN_LEGACY_FORMAT
# MR topic ProjectID
MR.projectID: 23456
#
# end of MR Related Properties
################################################################################
#
# end of MR Related Properties
################################################################################
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
- <version>1.2.0</version>
+ <version>1.2.3</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
- <version>1.2.0</version>
+ <version>1.2.3</version>
</dependency>
<!-- DMAAP-656:
- override this dependency because it utilized a third party
</dependency>
<!-- DMAAP-656:
- override this dependency because it utilized a third party
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
- <version>9.4.1208.jre7</version>
+ <version>42.2.5</version>
</dependency>
<dependency>
<groupId>com.att.eelf</groupId>
</dependency>
<dependency>
<groupId>com.att.eelf</groupId>
import org.junit.Before;
import org.junit.Test;
import org.onap.dmaap.dbcapi.model.DcaeLocation;
import org.junit.Before;
import org.junit.Test;
import org.onap.dmaap.dbcapi.model.DcaeLocation;
+import org.onap.dmaap.dbcapi.model.Dmaap;
import org.onap.dmaap.dbcapi.model.MR_Cluster;
import org.onap.dmaap.dbcapi.model.Topic;
import org.onap.dmaap.dbcapi.testframework.DmaapObjectFactory;
import org.onap.dmaap.dbcapi.model.MR_Cluster;
import org.onap.dmaap.dbcapi.model.Topic;
import org.onap.dmaap.dbcapi.testframework.DmaapObjectFactory;
return new ResourceConfig()
.register( TopicResource.class )
.register( MR_ClusterResource.class )
return new ResourceConfig()
.register( TopicResource.class )
.register( MR_ClusterResource.class )
- .register( DcaeLocationResource.class );
+ .register( DcaeLocationResource.class )
+ .register( DmaapResource.class );
}
private static final String fmt = "%24s: %s%n";
}
private static final String fmt = "%24s: %s%n";
@Before
public void preTest() throws Exception {
@Before
public void preTest() throws Exception {
+ try {
+
+ Dmaap dmaap = factory.genDmaap();
+ Entity<Dmaap> reqEntity = Entity.entity( dmaap, MediaType.APPLICATION_JSON );
+ Response resp = target( "dmaap").request().post( reqEntity, Response.class );
+ System.out.println( resp.getStatus() );
+ assertTrue( resp.getStatus() == 200 );
+ }catch (Exception e ) {
+ }
try {
DcaeLocation loc = factory.genDcaeLocation( "central" );
Entity<DcaeLocation> reqEntity = Entity.entity( loc, MediaType.APPLICATION_JSON );
try {
DcaeLocation loc = factory.genDcaeLocation( "central" );
Entity<DcaeLocation> reqEntity = Entity.entity( loc, MediaType.APPLICATION_JSON );
Response resp = target( "mr_clusters").request().post( reqEntity, Response.class );
System.out.println( "POST MR_Cluster resp=" + resp.getStatus() + " " + resp.readEntity( String.class ) );
if (resp.getStatus() != 409 ) {
Response resp = target( "mr_clusters").request().post( reqEntity, Response.class );
System.out.println( "POST MR_Cluster resp=" + resp.getStatus() + " " + resp.readEntity( String.class ) );
if (resp.getStatus() != 409 ) {
- assertTrue( resp.getStatus() == 200);
+ assertTrue( resp.getStatus() == 201);
}
} catch (Exception e ) {
}
} catch (Exception e ) {
assertTrue( resp.getStatus() == 200 );
}
assertTrue( resp.getStatus() == 200 );
}
@Test
public void PostTest() {
Topic topic = factory.genSimpleTopic( "test1" );
@Test
public void PostTest() {
Topic topic = factory.genSimpleTopic( "test1" );
@Test
public void PutTest() {
@Test
public void PutTest() {