Fix creds issue with AAF
[clamp.git] / src / test / resources / application.properties
1 ###
2 # ============LICENSE_START=======================================================
3 # ONAP CLAMP
4 # ================================================================================
5 # Copyright (C) 2017-2018 AT&T Intellectual Property. All rights
6 #                             reserved.
7 # ================================================================================
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 # http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 # ============LICENSE_END============================================
20 # ===================================================================
21 #
22 ###
23
24 ### Set the port for HTTP or HTTPS protocol (Controlled by Spring framework, only one at a time).
25 ### (See below for the parameter 'server.http.port' if you want to have both enabled)
26 ### To have only HTTP, keep the lines server.ssl.* commented
27 ### To have only HTTPS enabled, uncomment the server.ssl.* lines and specify a right keystore location
28 server.port=${clamp.it.tests.http}
29 ### Settings for HTTPS (this automatically enables the HTTPS on the port 'server.port')
30 #server.ssl.key-store=file:/tmp/mykey.jks
31 #server.ssl.key-store-password=pass
32 #server.ssl.key-password=pass
33
34 ### In order to be user friendly when HTTPS is enabled,
35 ### you can add another HTTP port that will be automatically redirected to HTTPS
36 ### by enabling this parameter (server.http.port) and set it to another port (80 or 8080, 8090, etc ...)
37 #server.http-to-https-redirection.port=8090
38
39 ### HTTP Example:
40 ###--------------
41 ### server.port=8080
42
43 ### HTTPS Example:
44 ### --------------
45 ### server.port=8443
46 ### server.ssl.key-store=file:/tmp/mykey.jks
47 ### server.ssl.key-store-password=mypass
48 ### server.ssl.key-password=mypass
49
50 ### HTTP (Redirected to HTTPS) and HTTPS Example:
51 ### --------------------------------------------
52 ### server.port=8443           <-- The HTTPS port
53 ### server.ssl.key-store=file:/tmp/mykey.jks
54 ### server.ssl.key-store-password=mypass
55 ### server.ssl.key-password=mypass
56 ### server.http-to-https-redirection.port=8090  <-- The HTTP port
57
58 server.servlet.context-path=/
59 #Modified engine-rest applicationpath
60 spring.profiles.active=clamp-default,clamp-default-user
61 spring.http.converters.preferred-json-mapper=gson
62
63 #The max number of active threads in this pool
64 server.tomcat.max-threads=200
65 #The minimum number of threads always kept alive
66 server.tomcat.min-Spare-Threads=25
67 #The number of milliseconds before an idle thread shutsdown, unless the number of active threads are less or equal to minSpareThreads
68 server.tomcat.max-idle-time=60000
69
70 #Servlet context parameters
71 server.context_parameters.p-name=value #context parameter with p-name as key and value as value.
72
73 camel.springboot.consumer-template-cache-size=1000
74 camel.springboot.producer-template-cache-size=1000
75 # JMX enabled to have Camel Swagger runtime working
76 camel.springboot.jmx-enabled=true
77 camel.defaultthreadpool.poolsize=10
78 camel.defaultthreadpool.maxpoolsize=20
79 camel.defaultthreadpool.maxqueuesize=1000
80 camel.defaultthreadpool.keepaliveTime=60
81 camel.defaultthreadpool.rejectpolicy=CallerRuns
82 #camel.springboot.xmlRoutes = false
83 camel.springboot.xmlRoutes=classpath:/clds/camel/routes/*.xml
84 camel.springboot.xmlRests=classpath:/clds/camel/rest/*.xml
85 #camel.springboot.typeConversion = false
86
87 #clds datasource connection details
88 spring.datasource.driverClassName=org.mariadb.jdbc.Driver
89 spring.datasource.url=jdbc:mariadb:sequential://localhost:3306,localhost:${docker.mariadb.port.host}/cldsdb4?autoReconnect=true&connectTimeout=10000&socketTimeout=10000&retriesAllDown=3
90 spring.datasource.username=clds
91 spring.datasource.password=sidnnd83K
92 spring.datasource.validationQuery=SELECT 1
93 spring.datasource.validationQueryTimeout=20000
94 spring.datasource.validationInterval=30000
95 spring.datasource.testWhileIdle = true
96 spring.datasource.minIdle = 0
97 spring.datasource.initialSize=0
98 # Automatically test whether a connection provided is good or not
99 spring.datasource.testOnBorrow=true
100 spring.datasource.ignoreExceptionOnPreLoad=true
101
102 spring.jpa.properties.javax.persistence.schema-generation.database.action=none
103 #spring.jpa.properties.javax.persistence.schema-generation.create-source=metadata
104 #spring.jpa.properties.javax.persistence.schema-generation.scripts.action=create
105 #spring.jpa.properties.javax.persistence.schema-generation.scripts.create-target=create.sql
106 # disable Hibernate DDL generation because the schema will be generated from a sql script
107 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
108 spring.jpa.properties.hibernate.ddl-auto=validate
109 spring.jpa.properties.hibernate.hbm2ddl.delimiter=;
110 spring.jpa.properties.hibernate.format_sql=true
111 spring.jpa.properties.hibernate.use-new-id-generator-mappings=true
112
113 # Whether to enable logging of SQL statements.
114 #spring.jpa.show-sql=true
115
116 #Async Executor default Parameters
117 async.core.pool.size=10
118 async.max.pool.size=20
119 async.queue.capacity=500
120
121 #For EELF logback file
122 #com.att.eelf.logging.path=
123 clamp.config.logback.filename=logback-default.xml
124 #The log folder that will be used in logback.xml file
125 clamp.config.log.path=log
126 clamp.config.files.systemProperties=classpath:/system.properties
127 clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
128 clamp.config.files.globalProperties=classpath:/clds/templates/globalProperties.json
129 clamp.config.files.sdcController=classpath:/clds/sdc-controllers-config.json
130
131 #
132 # Configuration Settings for Policy Engine Components
133 clamp.config.policy.api.url=http4://localhost:${docker.http-cache.port.host}
134 clamp.config.policy.api.userName=healthcheck
135 clamp.config.policy.api.password=zb!XztG34
136 clamp.config.policy.pap.url=http4://localhost:${docker.http-cache.port.host}
137 clamp.config.policy.pap.userName=healthcheck
138 clamp.config.policy.pap.password=zb!XztG34
139
140 # Sdc service properties
141 #
142 clamp.config.sdc.csarFolder = ${project.build.directory}/sdc-tests
143
144 #DCAE Inventory Url Properties
145 clamp.config.dcae.inventory.url=http4://localhost:${docker.http-cache.port.host}
146 clamp.config.dcae.intentory.retry.interval=100
147 clamp.config.dcae.intentory.retry.limit=1
148
149 #DCAE Deployment Url Properties
150 clamp.config.dcae.deployment.url=http4://localhost:${docker.http-cache.port.host}
151 clamp.config.dcae.deployment.userName=test
152 clamp.config.dcae.deployment.password=test
153
154 #Define user permission related parameters, the permission type can be changed but MUST be redefined in clds-users.properties in that case !
155 clamp.config.security.permission.type.cl=permission-type-cl
156 clamp.config.security.permission.type.cl.manage=permission-type-cl-manage
157 clamp.config.security.permission.type.cl.event=permission-type-cl-event
158 clamp.config.security.permission.type.filter.vf=permission-type-filter-vf
159 clamp.config.security.permission.type.template=permission-type-template
160 clamp.config.security.permission.type.tosca=permission-type-tosca
161 #This one indicates the type of instances (dev|prod|perf...), this must be set accordingly in clds-users.properties
162 clamp.config.security.permission.instance=dev
163 clamp.config.security.authentication.class=org.onap.aaf.cadi.principal.X509Principal, org.onap.aaf.cadi.principal.CachedBasicPrincipal
164 # Configuration settings for CDS
165 clamp.config.cds.url=http4://localhost:${docker.http-cache.port.host}
166 clamp.config.cds.userName=ccsdkapps
167 clamp.config.cds.password=ccsdkapps
168
169 ## Tosca converter
170 clamp.config.tosca.converter.json.schema.templates=classpath:/clds/tosca-converter/templates.json
171 clamp.config.tosca.converter.default.datatypes=classpath:/clds/tosca-converter/default-tosca-types.yaml
172 clamp.config.tosca.converter.dictionary.support.enabled=true