From fac75fad3992a6e6c8f5a66bac77ea9e762b1eae Mon Sep 17 00:00:00 2001 From: Sirisha_Manchikanti Date: Thu, 1 Apr 2021 08:59:30 +0100 Subject: Add participant for policy-framework This commit adds a Participant for policy-framework, calls APIs createPolicies and createPolicyTypes for creating policies and policy-types in policy-framework when a controlLoopUpdate message is recieved. Issue-ID: POLICY-3038 Signed-off-by: Sirisha_Manchikanti Change-Id: I5ec795bbdd8684e4f6e8c65da1c340b35e7edf68 --- .../resources/parameters/TestParametersStd.json | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 tosca-controlloop/participant/participant-impl/participant-impl-policy/src/test/resources/parameters/TestParametersStd.json (limited to 'tosca-controlloop/participant/participant-impl/participant-impl-policy/src/test/resources/parameters/TestParametersStd.json') diff --git a/tosca-controlloop/participant/participant-impl/participant-impl-policy/src/test/resources/parameters/TestParametersStd.json b/tosca-controlloop/participant/participant-impl/participant-impl-policy/src/test/resources/parameters/TestParametersStd.json new file mode 100644 index 000000000..caca6cff6 --- /dev/null +++ b/tosca-controlloop/participant/participant-impl/participant-impl-policy/src/test/resources/parameters/TestParametersStd.json @@ -0,0 +1,54 @@ +{ + "name": "ControlLoopParticipantGroup", + "intermediaryParameters": { + "name": "Participant parameters", + "reportingTimeInterval": 120000, + "description": "Participant Description", + "participantId": { + "name": "org.onap.PM_Policy", + "version": "0.0.0" + }, + "participantType": { + "name": "org.onap.PM_Policy", + "version": "0.0.0" + }, + "clampControlLoopTopics": { + "topicSources": [ + { + "topic": "POLICY-CLRUNTIME-PARTICIPANT", + "servers": [ + "localhost" + ], + "topicCommInfrastructure": "dmaap", + "fetchTimeout": 15000 + } + ], + "topicSinks": [ + { + "topic": "POLICY-CLRUNTIME-PARTICIPANT", + "servers": [ + "localhost" + ], + "topicCommInfrastructure": "dmaap" + }, + { + "topic": "POLICY-NOTIFICATION", + "servers": [ + "localhost" + ], + "topicCommInfrastructure": "dmaap" + } + ] + } + }, + "databaseProviderParameters": { + "name": "PolicyProviderParameterGroup", + "implementation": "org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl", + "databaseDriver": "org.h2.Driver", + "databaseUrl": "jdbc:h2:mem:testdb", + "databaseUser": "policy", + "databasePassword": "P01icY", + "persistenceUnit": "ToscaConceptTest" + } +} + -- cgit 1.2.3-korg