Fix policy Hosts
[clamp.git] / src / test / resources / application.properties
index 8d6cd38..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
@@ -62,7 +62,8 @@ server.port=8080
 \r
 server.servlet.context-path=/\r
 #Modified engine-rest applicationpath\r
-spring.profiles.active=clamp-default,clamp-default-user,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
@@ -90,7 +91,7 @@ camel.springboot.xmlRests=classpath:/clds/camel/rest/*.xml
 \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
@@ -103,6 +104,20 @@ 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
@@ -124,13 +139,15 @@ clamp.config.files.sdcController=classpath:/clds/sdc-controllers-config.json
 clamp.config.dcae.template=classpath:/clds/templates/dcae-template.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
@@ -178,20 +195,8 @@ 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
@@ -211,7 +216,6 @@ clamp.config.dcae.intentory.retry.limit=1
 clamp.config.dcae.dispatcher.url=http://localhost:${docker.http-cache.port.host}\r
 clamp.config.dcae.dispatcher.retry.interval=100\r
 clamp.config.dcae.dispatcher.retry.limit=1\r
-clamp.config.dcae.header.requestId = X-ECOMP-RequestID\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
@@ -221,4 +225,5 @@ clamp.config.security.permission.type.filter.vf=permission-type-filter-vf
 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