Fix policy Hosts
[clamp.git] / src / test / resources / application.properties
index 7d6ba51..ecc4033 100644 (file)
@@ -30,7 +30,7 @@ info.build.version=@project.version@
 ### (See below for the parameter 'server.http.port' if you want to have both enabled)\r
 ### To have only HTTP, keep the lines server.ssl.* commented\r
 ### To have only HTTPS enabled, uncomment the server.ssl.* lines and specify a right keystore location\r
-server.port=8080\r
+server.port=${clamp.it.tests.http}\r
 ### Settings for HTTPS (this automatically enables the HTTPS on the port 'server.port')\r
 #server.ssl.key-store=file:/tmp/mykey.jks\r
 #server.ssl.key-store-password=pass\r
@@ -60,9 +60,10 @@ server.port=8080
 ### server.ssl.key-password=mypass\r
 ### server.http-to-https-redirection.port=8090  <-- The HTTP port\r
 \r
-server.contextPath=/\r
+server.servlet.context-path=/\r
 #Modified engine-rest applicationpath\r
-spring.profiles.active=clamp-default,clamp-spring-authentication,clamp-sdc-controller\r
+spring.profiles.active=clamp-default,clamp-default-user\r
+spring.http.converters.preferred-json-mapper=gson\r
 \r
 #The max number of active threads in this pool\r
 server.tomcat.max-threads=200\r
@@ -76,19 +77,21 @@ server.context_parameters.p-name=value #context parameter with p-name as key and
 \r
 camel.springboot.consumer-template-cache-size=1000\r
 camel.springboot.producer-template-cache-size=1000\r
-camel.springboot.jmx-enabled=false\r
+# JMX enabled to have Camel Swagger runtime working\r
+camel.springboot.jmx-enabled=true\r
 camel.defaultthreadpool.poolsize=10\r
 camel.defaultthreadpool.maxpoolsize=20\r
 camel.defaultthreadpool.maxqueuesize=1000\r
 camel.defaultthreadpool.keepaliveTime=60\r
 camel.defaultthreadpool.rejectpolicy=CallerRuns\r
 #camel.springboot.xmlRoutes = false\r
-camel.springboot.xmlRoutes=classpath:/clds/camel/*.xml\r
+camel.springboot.xmlRoutes=classpath:/clds/camel/routes/*.xml\r
+camel.springboot.xmlRests=classpath:/clds/camel/rest/*.xml\r
 #camel.springboot.typeConversion = false\r
 \r
 #clds datasource connection details\r
 spring.datasource.cldsdb.driverClassName=org.mariadb.jdbc.Driver\r
-spring.datasource.cldsdb.url=jdbc:mariadb:sequential://localhost:${docker.mariadb.port.host}/cldsdb4?autoReconnect=true&connectTimeout=10000&socketTimeout=10000&retriesAllDown=3\r
+spring.datasource.cldsdb.url=jdbc:mariadb:sequential://localhost:3306,localhost:${docker.mariadb.port.host}/cldsdb4?autoReconnect=true&connectTimeout=10000&socketTimeout=10000&retriesAllDown=3\r
 spring.datasource.cldsdb.username=clds\r
 spring.datasource.cldsdb.password=4c90a0b48204383f4283448d23e0b885a47237b2a23588e7c4651604f51c1067\r
 spring.datasource.cldsdb.validationQuery=SELECT 1\r
@@ -101,11 +104,29 @@ spring.datasource.cldsdb.initialSize=0
 spring.datasource.cldsdb.testOnBorrow=true\r
 spring.datasource.cldsdb.ignoreExceptionOnPreLoad=true\r
 \r
+spring.jpa.properties.javax.persistence.schema-generation.database.action=drop-and-create
+#spring.jpa.properties.javax.persistence.schema-generation.create-source=metadata
+#spring.jpa.properties.javax.persistence.schema-generation.scripts.action=create
+#spring.jpa.properties.javax.persistence.schema-generation.scripts.create-target=create.sql
+# disable Hibernate DDL generation because the schema will be generated from a sql script
+spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
+spring.jpa.properties.hibernate.ddl-auto=validate
+spring.jpa.properties.hibernate.hbm2ddl.delimiter=;
+spring.jpa.properties.hibernate.format_sql=true
+spring.jpa.properties.hibernate.use-new-id-generator-mappings=true
+
+# Whether to enable logging of SQL statements.
+spring.jpa.show-sql=true
+
 #Async Executor default Parameters\r
 async.core.pool.size=10\r
 async.max.pool.size=20\r
 async.queue.capacity=500\r
 \r
+#For EELF logback file\r
+#com.att.eelf.logging.path=\r
+clamp.config.logback.filename=logback-default.xml\r
+#The log folder that will be used in logback.xml file\r
 clamp.config.log.path=log\r
 clamp.config.files.systemProperties=classpath:/system.properties\r
 clamp.config.files.cldsUsers=classpath:/clds/clds-users.json\r
@@ -116,16 +137,17 @@ clamp.config.files.sdcController=classpath:/clds/sdc-controllers-config.json
 # DCAE request build properties\r
 #\r
 clamp.config.dcae.template=classpath:/clds/templates/dcae-template.json\r
-clamp.config.dcae.decode.service_ids=classpath:/clds/templates/dcae-decode-service_ids.json\r
 clamp.config.dcae.deployment.template=classpath:/clds/templates/dcae-deployment-template.json\r
 #\r
-# SDC request blueprint properties\r
-#\r
-clamp.config.sdc.template=classpath:/clds/templates/sdc-template.json\r
-clamp.config.sdc.decode.service_ids=classpath:/clds/templates/sdc-decode-service_ids.json\r
-#\r
 #\r
 # Configuration Settings for Policy Engine Components\r
+clamp.config.policy.api.url=http4://localhost:${docker.http-cache.port.host}\r
+clamp.config.policy.api.userName=healthcheck\r
+clamp.config.policy.api.password=zb!XztG34\r
+clamp.config.policy.pap.url=http4://localhost:${docker.http-cache.port.host}\r
+clamp.config.policy.pap.userName=healthcheck\r
+clamp.config.policy.pap.password=zb!XztG34\r
+\r
 clamp.config.policy.pdpUrl1=http://localhost:${docker.http-cache.port.host}/pdp/ , testpdp, alpha123\r
 clamp.config.policy.pdpUrl2=http://localhost:${docker.http-cache.port.host}/pdp/ , testpdp, alpha123\r
 clamp.config.policy.papUrl=http://localhost:${docker.http-cache.port.host}/pap/ , testpap, alpha123\r
@@ -149,6 +171,10 @@ clamp.config.policy.op.policyNamePrefix=Config_BRMS_Param_
 clamp.config.policy.base.policyNamePrefix=Config_\r
 clamp.config.policy.op.type=BRMS_Param\r
 \r
+clamp.config.import.tosca.model=false\r
+clamp.config.tosca.policyTypes=tca\r
+clamp.config.tosca.filePath=/tmp/tosca-models\r
+\r
 # TCA MicroService Policy request build properties\r
 #\r
 clamp.config.tca.policyid.prefix=DCAE.Config_\r
@@ -169,24 +195,11 @@ clamp.config.op.controller=amsterdam
 clamp.config.op.policy.appc=APPC\r
 #\r
 # Sdc service properties\r
-clamp.config.sdc.catalog.url=http://localhost:${docker.http-cache.port.host}/sdc/v1/catalog/\r
-clamp.config.sdc.hostUrl=http://localhost:${docker.http-cache.port.host}\r
-clamp.config.sdc.serviceUrl=http://localhost:${docker.http-cache.port.host}/sdc/v1/catalog/services\r
-clamp.config.sdc.serviceUsername=clamp\r
-clamp.config.sdc.servicePassword=b7acccda32b98c5bb7acccda32b98c5b05D511BD6D93626E90D18E9D24D9B78CD34C7EE8012F0A189A28763E82271E50A5D4EC10C7D93E06E0A2D27CAE66B981\r
-clamp.config.sdc.artifactLabel=blueprintclampcockpit\r
-clamp.config.sdc.sdcX-InstanceID=CLAMP\r
-clamp.config.sdc.artifactType=DCAE_INVENTORY_BLUEPRINT\r
-clamp.config.sdc.locationArtifactLabel=locationclampcockpit\r
-clamp.config.sdc.locationArtifactType=DCAE_INVENTORY_JSON\r
-clamp.config.sdc.InstanceID=X-ECOMP-InstanceID\r
-clamp.config.sdc.header.requestId = X-ECOMP-RequestID\r
 #\r
-clamp.config.sdc.csarFolder = /tmp/sdc-tests\r
+clamp.config.sdc.csarFolder = ${project.build.directory}/sdc-tests\r
 clamp.config.sdc.blueprint.parser.mapping = classpath:/clds/blueprint-parser-mapping.json\r
 #\r
 clamp.config.ui.location.default=classpath:/clds/templates/ui-location-default.json\r
-clamp.config.ui.alarm.default=classpath:/clds/templates/ui-alarm-default.json\r
 #\r
 # if action.test.override is true, then any action will be marked as test=true (even if incoming action request had test=false); otherwise, test flag will be unchanged on the action request\r
 clamp.config.action.test.override=false\r
@@ -196,14 +209,13 @@ clamp.config.clds.service.cache.invalidate.after.seconds=120
 \r
 #DCAE Inventory Url Properties\r
 clamp.config.dcae.inventory.url=http://localhost:${docker.http-cache.port.host}\r
-clamp.config.dcae.intentory.retry.interval=10000\r
-clamp.config.dcae.intentory.retry.limit=3\r
+clamp.config.dcae.intentory.retry.interval=100\r
+clamp.config.dcae.intentory.retry.limit=1\r
 \r
 #DCAE Dispatcher Url Properties\r
 clamp.config.dcae.dispatcher.url=http://localhost:${docker.http-cache.port.host}\r
-clamp.config.dcae.dispatcher.retry.interval=10000\r
-clamp.config.dcae.dispatcher.retry.limit=10\r
-clamp.config.dcae.header.requestId = X-ECOMP-RequestID\r
+clamp.config.dcae.dispatcher.retry.interval=100\r
+clamp.config.dcae.dispatcher.retry.limit=1\r
 \r
 #Define user permission related parameters, the permission type can be changed but MUST be redefined in clds-users.properties in that case !\r
 clamp.config.security.permission.type.cl=permission-type-cl\r
@@ -211,5 +223,7 @@ clamp.config.security.permission.type.cl.manage=permission-type-cl-manage
 clamp.config.security.permission.type.cl.event=permission-type-cl-event\r
 clamp.config.security.permission.type.filter.vf=permission-type-filter-vf\r
 clamp.config.security.permission.type.template=permission-type-template\r
+clamp.config.security.permission.type.tosca=permission-type-tosca\r
 #This one indicates the type of instances (dev|prod|perf...), this must be set accordingly in clds-users.properties\r
-clamp.config.security.permission.instance=dev
\ No newline at end of file
+clamp.config.security.permission.instance=dev\r
+clamp.config.security.authentication.class=org.onap.aaf.cadi.principal.X509Principal
\ No newline at end of file