summaryrefslogtreecommitdiffstats
path: root/datarouter-prov/src/test
diff options
context:
space:
mode:
authorEmmettCox <emmett.cox@est.tech>2019-02-05 16:16:40 +0000
committerEmmettCox <emmett.cox@est.tech>2019-02-05 16:16:40 +0000
commit5da50e90e6c78700d48d7468849d4a1599a249b3 (patch)
treeb39a8c24044de6eb0aafe511e21c252e1764f836 /datarouter-prov/src/test
parent14b8d9552808063686e0c22760cec6e35b960b59 (diff)
adding FILENAME value to LOG_RECORDS table.
Change-Id: Iea49d196f324b3a03a18d3d2084e5f6c7ad226ea Issue-ID: DMAAP-1022 Signed-off-by: EmmettCox <emmett.cox@est.tech>
Diffstat (limited to 'datarouter-prov/src/test')
-rw-r--r--datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/beans/PublishRecordTest.java2
-rwxr-xr-xdatarouter-prov/src/test/resources/create.sql1
2 files changed, 3 insertions, 0 deletions
diff --git a/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/beans/PublishRecordTest.java b/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/beans/PublishRecordTest.java
index eaeb91cc..373839ca 100644
--- a/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/beans/PublishRecordTest.java
+++ b/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/beans/PublishRecordTest.java
@@ -56,6 +56,7 @@ public class PublishRecordTest {
publishRecord.setRemoteAddr("172.100.0.4");
publishRecord.setStatus(201);
publishRecord.setUser("user2");
+ publishRecord.setFileName("fileName");
LOGJSONObject publishRecordJson = createPublishRecordJson();
Assert.assertEquals(publishRecordJson.toString(), publishRecord.asJSONObject().toString());
}
@@ -72,6 +73,7 @@ public class PublishRecordTest {
publishRecordMap.put("type", "pub");
publishRecordMap.put("date", "2018-08-29T10:10:10.543Z");
publishRecordMap.put("contentLength", 285);
+ publishRecordMap.put("fileName", "fileName");
return new LOGJSONObject(publishRecordMap);
}
}
diff --git a/datarouter-prov/src/test/resources/create.sql b/datarouter-prov/src/test/resources/create.sql
index cd87dde0..b2906035 100755
--- a/datarouter-prov/src/test/resources/create.sql
+++ b/datarouter-prov/src/test/resources/create.sql
@@ -75,6 +75,7 @@ CREATE TABLE LOG_RECORDS (
RECORD_ID BIGINT UNSIGNED NOT NULL PRIMARY KEY, /* unique ID for this record */
CONTENT_LENGTH_2 BIGINT,
+ FILENAME VARCHAR(256), /* Name of the file being published on DR */
INDEX (FEEDID) USING BTREE,
INDEX (DELIVERY_SUBID) USING BTREE,