diff options
author | kaixiliu <liukaixi@chinamobile.com> | 2023-05-29 17:22:16 +0800 |
---|---|---|
committer | kaixiliu <liukaixi@chinamobile.com> | 2023-05-29 17:22:41 +0800 |
commit | f89877a479fd7c4ca1257f4137bd1132bbf0e631 (patch) | |
tree | 452e4e5b003154daac8322e075fa4d59f2c755b6 /intentanalysis/src/test/resources | |
parent | efb0c85f42c653d183c8fb4b7ce969405ba95023 (diff) |
Add scheduled generation of intention report
Issue-ID: USECASEUI-812
Signed-off-by: kaixiliu <liukaixi@chinamobile.com>
Change-Id: I0e8d6d7d2e20a1be9f3ea2b0b1cfc66338c1e927
Diffstat (limited to 'intentanalysis/src/test/resources')
-rw-r--r-- | intentanalysis/src/test/resources/intent.json | 104 | ||||
-rw-r--r-- | intentanalysis/src/test/resources/intentdb-test-init.sql | 12 | ||||
-rw-r--r-- | intentanalysis/src/test/resources/logback-test.xml | 6 |
3 files changed, 113 insertions, 9 deletions
diff --git a/intentanalysis/src/test/resources/intent.json b/intentanalysis/src/test/resources/intent.json new file mode 100644 index 0000000..66ebb21 --- /dev/null +++ b/intentanalysis/src/test/resources/intent.json @@ -0,0 +1,104 @@ +{ + "intentId":"testIntentId111", + "intentName":"CLLBusiness intent", + "intentExpectations":[ + { + "expectationId":"expectationId111", + "expectationName":"CLL Delivery Expectation", + "expectationType":"DELIVERY", + "expectationObject":{ + "objectType":"CCVPN", + "objectInstance":"" + }, + "expectationTargets":[ + { + "targetId":"target111-1", + "targetName":"source", + "targetConditions":[ + { + "conditionId":"condition111-1", + "conditionName":"condition of the cll service source", + "operator":"EQUALTO", + "conditionValue":"tranportEp_src_ID_111_1(onu-1(companyA))", + "conditionList":null + } + ] + }, + { + "targetId":"target111-2", + "targetName":"destination", + "targetConditions":[ + { + "conditionId":"condition111-2", + "conditionName":"condition of the cll service destination", + "operator":"EQUALTO", + "conditionValue":"tranportEp_dst_ID_212_1(cloud-pop-1(cloud 1))", + "conditionList":null + } + ] + }, + { + "targetId":"target111-3", + "targetName":"bandwidth", + "targetConditions":[ + { + "conditionId":"condition111-3", + "conditionName":"condition of the cll service bandwidth", + "operator":"EQUALTO", + "conditionValue":"1000", + "conditionList":null + } + ] + } + ] + }, + { + "expectationId":"expectationId222", + "expectationName":"CLL Assurance Expectation", + "expectationType":"ASSURANCE", + "expectationObject":{ + "objectType":"CCVPN", + "objectInstance":"" + }, + "expectationTargets":[ + { + "targetId":"target222-1", + "targetName":"bandwidthAssurance", + "targetConditions":[ + { + "conditionId":"condition222-1", + "conditionName":"condition of the cll service bandwidth assurance", + "operator":"EQUALTO", + "conditionValue":"true", + "conditionList":null + } + ] + } + ] + }, + { + "expectationId":"expectationId333", + "expectationName":"CLL Report Expectation", + "expectationType":"REPORT", + "expectationObject":{ + "objectType":"CCVPN", + "objectInstance":"" + }, + "expectationTargets":[ + { + "targetId":"target333-1", + "targetName":"bandwidthAssurance", + "targetConditions":[ + { + "conditionId":"condition333-1", + "conditionName":"condition of the cll service bandwidth assurance", + "operator":"EQUALTO", + "conditionValue":"10", + "conditionList":null + } + ] + } + ] + } + ] +} diff --git a/intentanalysis/src/test/resources/intentdb-test-init.sql b/intentanalysis/src/test/resources/intentdb-test-init.sql index 25dc9ba..c3abda1 100644 --- a/intentanalysis/src/test/resources/intentdb-test-init.sql +++ b/intentanalysis/src/test/resources/intentdb-test-init.sql @@ -90,12 +90,12 @@ create table if not exists intent_management_function_reg_info( intent_function_type varchar(255) ); -create table if not exists intent_Event_Record( - id varchar(255) DEFAULT random_uuid(), - intentId varchar(255), - intentName varchar(255), - intentStatus varchar (225), - operateType varchar (225), +create table if not exists intent_event_record( + id varchar(255) DEFAULT random_uuid (), + intent_id varchar(255), + intent_name varchar(255), + intent_status varchar (225), + operate_type varchar (225), parent_id varchar(255) ); diff --git a/intentanalysis/src/test/resources/logback-test.xml b/intentanalysis/src/test/resources/logback-test.xml index ed1faf9..2d81180 100644 --- a/intentanalysis/src/test/resources/logback-test.xml +++ b/intentanalysis/src/test/resources/logback-test.xml @@ -20,7 +20,7 @@ <!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> <encoder> - <pattern>%d{yyyy-MM-dd HH:mm:ss:SSS} %5p ${PID} --- [%15.15t] %-40.40c{40} : %m%n</pattern> + <pattern>%d{yyyy-MM-dd HH:mm:ss:SSS} %5p ${PID} --- [%15.15t] %-40.40c{40}[%L] : %m%n</pattern> </encoder> </appender> @@ -35,7 +35,7 @@ <!-- set immediateFlush to false for much higher logging throughput --> <immediateFlush>true</immediateFlush> <encoder> - <pattern>%d{yyyy-MM-dd HH:mm:ss:SSS} %5p ${PID} --- [%15.15t] %-40.40c{40} : %m%n</pattern> + <pattern>%d{yyyy-MM-dd HH:mm:ss:SSS} %5p ${PID} --- [%15.15t] %-40.40c{40}[%L] : %m%n</pattern> </encoder> </appender> @@ -51,7 +51,7 @@ <totalSizeCap>3GB</totalSizeCap> </rollingPolicy> <encoder> - <pattern>>%d{yyyy-MM-dd HH:mm:ss:SSS} %5p ${PID} --- [%15.15t] %-40.40c{40} : %m%n</pattern> + <pattern>>%d{yyyy-MM-dd HH:mm:ss:SSS} %5p ${PID} --- [%15.15t] %-40.40c{40}[%L] : %m%n</pattern> </encoder> </appender> |