aboutsummaryrefslogtreecommitdiffstats
path: root/compose/config/drools-applications
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2024-05-01 14:08:35 +0100
committeradheli.tavares <adheli.tavares@est.tech>2024-05-14 11:33:11 +0100
commit80e382eaac6fa812ea0c242c4a0c3a0390a4c130 (patch)
treefa984ad999edefa4f3affba4070415e94fffbb5f /compose/config/drools-applications
parentaed46b6a5bfe0680043a2fd2239f642aee5902d7 (diff)
Restructure of CSIT scripts
- CSIT robot test suits are now compiled into a docker image - dependencies are now installed as part of Dockerfile build Issue-ID: POLICY-4987 Change-Id: I5ae4e9f58471a6038c25548d9392ece78b20e67a Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'compose/config/drools-applications')
-rw-r--r--compose/config/drools-applications/custom/feature-lifecycle.properties11
-rw-r--r--compose/config/drools-applications/env/base.conf8
-rw-r--r--compose/config/drools-applications/env/feature-pooling-messages.conf2
3 files changed, 14 insertions, 7 deletions
diff --git a/compose/config/drools-applications/custom/feature-lifecycle.properties b/compose/config/drools-applications/custom/feature-lifecycle.properties
index 053cd066..a68fb5ca 100644
--- a/compose/config/drools-applications/custom/feature-lifecycle.properties
+++ b/compose/config/drools-applications/custom/feature-lifecycle.properties
@@ -23,17 +23,18 @@ lifecycle.pdp.type=${envd:POLICY_PDP_PAP_TYPE:drools}
# Mandatory policy types that this PDP-D must support at a minimum
lifecycle.pdp.policytypes=${envd:POLICY_PDP_PAP_POLICYTYPES}
-kafka.source.topics=policy-pdp-pap
-kafka.sink.topics=policy-pdp-pap
-kafka.source.topics.fetchTimeout=15000
+kafka.source.topics=${envd:POLICY_PDP_PAP_TOPIC}
+kafka.sink.topics=${envd:POLICY_PDP_PAP_TOPIC}
kafka.source.topics.policy-pdp-pap.fetchTimeout=15000
-kafka.source.topics.policy-pdp-pap.servers=kafka:9092
+kafka.source.topics.policy-pdp-pap.servers=${envd:KAFKA_SERVERS}
kafka.source.topics.policy-pdp-pap.effectiveTopic=${envd:POLICY_PDP_PAP_TOPIC}
kafka.source.topics.policy-pdp-pap.apiKey=${envd:POLICY_PDP_PAP_API_KEY}
kafka.source.topics.policy-pdp-pap.apiSecret=${envd:POLICY_PDP_PAP_API_SECRET}
+kafka.source.topics.policy-pdp-pap.https=${envd:KAFKA_HTTPS:false}
-kafka.sink.topics.policy-pdp-pap.servers=kafka:9092
+kafka.sink.topics.policy-pdp-pap.servers=${envd:KAFKA_SERVERS}
kafka.sink.topics.policy-pdp-pap.effectiveTopic=${envd:POLICY_PDP_PAP_TOPIC}
kafka.sink.topics.policy-pdp-pap.apiKey=${envd:POLICY_PDP_PAP_API_KEY}
kafka.sink.topics.policy-pdp-pap.apiSecret=${envd:POLICY_PDP_PAP_API_SECRET}
+kafka.sink.topics.policy-pdp-pap.https=${envd:KAFKA_HTTPS:false}
diff --git a/compose/config/drools-applications/env/base.conf b/compose/config/drools-applications/env/base.conf
index 7f213ead..0f677239 100644
--- a/compose/config/drools-applications/env/base.conf
+++ b/compose/config/drools-applications/env/base.conf
@@ -60,6 +60,11 @@ MYSQL_CMD=
HTTP_SERVER_HTTPS=false
PROMETHEUS=true
+# kafka server
+
+KAFKA_SERVERS=kafka:9092
+KAFKA_HTTPS=false
+
# LIVENESS Checks
LIVENESS_CONTROLLERS=*
@@ -67,6 +72,7 @@ LIVENESS_CONTROLLERS=*
# PDP-D Kafka configuration channel
PDPD_CONFIGURATION_TOPIC=pdpd-configuration
+PDPD_CONFIGURATION_SERVERS=kafka:9092
PDPD_CONFIGURATION_API_KEY=
PDPD_CONFIGURATION_API_SECRET=
PDPD_CONFIGURATION_CONSUMER_GROUP=
@@ -78,6 +84,7 @@ PDPD_CONFIGURATION_PARTITION_KEY=
POLICY_PDP_PAP_TOPIC=policy-pdp-pap
POLICY_PDP_PAP_API_KEY=
POLICY_PDP_PAP_API_SECRET=
+POLICY_PDP_PAP_POLICYTYPES=onap.policies.controlloop.operational.common.Drools
# PAP
@@ -101,7 +108,6 @@ DCAE_TOPIC=unauthenticated.dcae_cl_output
DCAE_SERVERS=kafka:9092
DCAE_CONSUMER_GROUP=dcae.policy.shared
-
# AAI
AAI_HOST=aai-sim
diff --git a/compose/config/drools-applications/env/feature-pooling-messages.conf b/compose/config/drools-applications/env/feature-pooling-messages.conf
index f90a9f04..967ae7bf 100644
--- a/compose/config/drools-applications/env/feature-pooling-messages.conf
+++ b/compose/config/drools-applications/env/feature-pooling-messages.conf
@@ -15,4 +15,4 @@
# limitations under the License.
# ============LICENSE_END=========================================================
-POOLING_TOPIC=pooling
+POOLING_TOPIC=policy-pdp-pooling
ack.server'); const webpackCommonConfig = require('./webpack.common'); const {BaseHrefWebpackPlugin} = require('@angular/cli/plugins/webpack'); const CopyWebpackPlugin = require('copy-webpack-plugin'); // Print server configuration //process.stdout.write('webpack.server: ' + JSON.stringify(ServerConfig) + '\n'); //process.stdout.write('webpack.common: ' + JSON.stringify(webpackCommonConfig) + '\n'); var currentTime = new Date().getTime(); const params = { // entryPoints: [ // '/scripts/inline', // '/scripts/polyfills', // '/scripts/vendor', // '/scripts/main', // '/scripts/sw-register', // '/scripts/scripts', // '/scripts/styles' // ] }; module.exports = function (env) { const webpackDevConfig = { devtool: "source-map", devServer: ServerConfig(env), module: { rules: [ {test: /\.(eot|svg)$/, loader: "file-loader?name=scripts/fonts/[name].[hash:20].[ext]"}, { test: /\.(jpg|png|gif|otf|ttf|woff|woff2|cur|ani)$/, loader: "url-loader?name=scripts/images/[name].[hash:20].[ext]&limit=10000" } ] }, output: { path: path.join(process.cwd(), "dist"), filename: "[name]." + currentTime + ".bundle.js", chunkFilename: "[id].chunk.js" //publicPath: "/" }, plugins: [ // Replace /sdc1 inside index.html with '' (because /sdc1 is used only in production). new CopyWebpackPlugin([ { from: './src/index.html', transform: function (content, path) { content = (content + '').replace(/\/sdc1/g, ''); content = (content + '').replace(/\.bundle/g, '.' + currentTime + '.bundle'); return content; } } ]), new webpack.DefinePlugin({ __DEBUG__: JSON.stringify(true), __ENV__: JSON.stringify('dev'), __HMR__: JSON.stringify('HMR') }), new webpack.HotModuleReplacementPlugin() ] }; return merge(webpackDevConfig, webpackCommonConfig(params)); }