summaryrefslogtreecommitdiffstats
path: root/vnf-sdk-function-test/src/main/resources/migrations.xml
diff options
context:
space:
mode:
authorKailun Qin <kailun.qin@intel.com>2018-03-27 18:23:01 +0800
committerKailun Qin <kailun.qin@intel.com>2018-03-28 23:34:40 +0800
commitd4a7658f72decfef05d15973d5cee13910eb47ae (patch)
treee9b872d3e58a8fc3c420b0ee020267a22a8c8136 /vnf-sdk-function-test/src/main/resources/migrations.xml
parent29078dd84779639f98739d508e947db0662473df (diff)
Port nfvo/vnf_functest for framework merge
Merged VNF onboarding test functions and frameworks locating separately in nfvo/vnf_functest and vnfsdk/vnf-sdk-function-test seed code. 1) Reconstructed by aligning with the original interface and sequence design; 2) Replaced Restful calls with local invokes; 3) Implemented DB support (PostgreSQL) for persistent recording; 4) Added unit tests associated; 5) Unified package names to "onap"; 6) Fixed several inherent issues. Issue-ID: VNFSDK-178 Change-Id: I2147c5df8dd400adef71dafca9073b12d992d2df Signed-off-by: Kailun Qin <kailun.qin@intel.com>
Diffstat (limited to 'vnf-sdk-function-test/src/main/resources/migrations.xml')
-rw-r--r--vnf-sdk-function-test/src/main/resources/migrations.xml57
1 files changed, 57 insertions, 0 deletions
diff --git a/vnf-sdk-function-test/src/main/resources/migrations.xml b/vnf-sdk-function-test/src/main/resources/migrations.xml
new file mode 100644
index 0000000..9ec5510
--- /dev/null
+++ b/vnf-sdk-function-test/src/main/resources/migrations.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<databaseChangeLog
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
+ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
+ http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
+
+ <changeSet id="1" author="Kailun Qin">
+ <createTable tableName="TaskRecord">
+ <column name="packageID" type="varchar(255)">
+ <constraints primaryKey="true" nullable="false"/>
+ </column>
+ <column name="taskID" type="varchar(255)">
+ <constraints unique="true" foreignKeyName="CaseRecord.taskID" nullable="false"/>
+ </column>
+ <column name="envID" type="varchar(255)">
+ <constraints nullable="false"/>
+ </column>
+ <column name="uploadID" type="varchar(255)">
+ <constraints nullable="false"/>
+ </column>
+ <column name="operID" type="varchar(255)">
+ <constraints nullable="false"/>
+ </column>
+ <column name="funcID" type="varchar(255)">
+ </column>
+ <column name="status" type="varchar(255)">
+ <constraints nullable="false"/>
+ </column>
+ <column name="operFinished" type="varchar(255)">
+ <constraints nullable="false"/>
+ </column>
+ <column name="operResult" type="varchar(255)">
+ <constraints nullable="false"/>
+ </column>
+ <column name="OperResultMessage" type="varchar(255)">
+ </column>
+ </createTable>
+
+ <createTable tableName="CaseRecord">
+ <column name="taskID" type="varchar(255)">
+ <constraints primaryKey="true" nullable="false"/>
+ </column>
+ <column name="funcID" type="varchar(255)">
+ </column>
+ <column name="testID" type="varchar(255)">
+ </column>
+ <column name="testResult" type="varchar(255)">
+ <constraints nullable="false"/>
+ </column>
+ <column name="testDescription" type="varchar(255)">
+ <constraints nullable="false"/>
+ </column>
+ </createTable>
+ </changeSet>
+</databaseChangeLog>