Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
d14859a4
Commit
d14859a4
authored
Jan 26, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename property
parent
aae715af
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
application.properties
drip-commons/src/main/resources/application.properties
+1
-1
ToscaHelperTest.java
...t/java/nl/uva/sne/drip/commons/utils/ToscaHelperTest.java
+1
-1
application.properties
drip-commons/src/test/resources/application.properties
+1
-1
Dockerfile
drip-manager/Dockerfile
+1
-1
ToscaHelperConfig.java
...java/nl/uva/sne/drip/configuration/ToscaHelperConfig.java
+1
-1
CloudStormService.java
...n/java/nl/uva/sne/drip/provisioner/CloudStormService.java
+1
-1
No files found.
drip-commons/src/main/resources/application.properties
View file @
d14859a4
...
...
@@ -5,4 +5,4 @@ message.broker.queue.provisioner=provisioner
message.broker.queue.planner
=
planner
message.broker.queue.deployer
=
deployer
sure
-
tosca.base.path
=
http://localhost:8081/tosca-sure/1.0.0
sure
_
tosca.base.path
=
http://localhost:8081/tosca-sure/1.0.0
drip-commons/src/test/java/nl/uva/sne/drip/commons/utils/ToscaHelperTest.java
View file @
d14859a4
...
...
@@ -74,7 +74,7 @@ public class ToscaHelperTest {
objectMapper
.
setSerializationInclusion
(
JsonInclude
.
Include
.
NON_NULL
);
toscaTemplate
=
objectMapper
.
readValue
(
ymlStr
,
ToscaTemplate
.
class
);
String
serviceBasePath
=
prop
.
getProperty
(
"sure
-
tosca.base.path"
);
String
serviceBasePath
=
prop
.
getProperty
(
"sure
_
tosca.base.path"
);
serviceUp
=
isServiceUp
(
serviceBasePath
);
if
(
serviceUp
)
{
instance
=
new
ToscaHelper
(
serviceBasePath
);
...
...
drip-commons/src/test/resources/application.properties
View file @
d14859a4
...
...
@@ -5,4 +5,4 @@ message.broker.queue.provisioner=provisioner
message.broker.queue.planner
=
planner
message.broker.queue.deployer
=
deployer
sure
-
tosca.base.path
=
http://localhost:8081/tosca-sure/1.0.0
sure
_
tosca.base.path
=
http://localhost:8081/tosca-sure/1.0.0
drip-manager/Dockerfile
View file @
d14859a4
...
...
@@ -5,7 +5,7 @@ COPY target/drip-manager-3.0.0.jar drip-manager-3.0.0.jar
CMD
jar -xf drip-manager-3.0.0.jar BOOT-INF/classes/application.properties && \
sed -ie "s/^message.broker.host=.*/message.broker.host=$RABBITMQ_HOST/" BOOT-INF/classes/application.properties && \
sed -ie "s/^db.host=.*/db.host=$MONOG_HOST/" BOOT-INF/classes/application.properties && \
sed -ie "s/^sure
-tosca.base.path=.*/sure-
tosca.base.path=$SURE_TOSCA_BASE_PATH/" BOOT-INF/classes/application.properties && \
sed -ie "s/^sure
_tosca.base.path=.*/sure_
tosca.base.path=$SURE_TOSCA_BASE_PATH/" BOOT-INF/classes/application.properties && \
cat BOOT-INF/classes/application.properties && \
jar -uf drip-manager-3.0.0.jar BOOT-INF/classes/application.properties && \
java -jar drip-manager-3.0.0.jar
drip-manager/src/main/java/nl/uva/sne/drip/configuration/ToscaHelperConfig.java
View file @
d14859a4
...
...
@@ -24,7 +24,7 @@ import org.springframework.context.annotation.PropertySources;
@ComponentScan
(
basePackages
=
{
"nl.uva.sne.drip"
,
"nl.uva.sne.drip.api"
,
"nl.uva.sne.drip.configuration"
,
"nl.uva.sne.drip.dao"
,
"nl.uva.sne.drip.model"
,
"nl.uva.sne.drip.service"
,
"nl.uva.sne.drip.commons.utils"
})
public
class
ToscaHelperConfig
{
@Value
(
"${sure
-
tosca.base.path}"
)
@Value
(
"${sure
_
tosca.base.path}"
)
private
String
sureToscaBasePath
;
@Bean
...
...
drip-provisioner/src/main/java/nl/uva/sne/drip/provisioner/CloudStormService.java
View file @
d14859a4
...
...
@@ -80,7 +80,7 @@ class CloudStormService {
this
.
toscaTemplate
=
toscaTemplate
;
cloudStormDBPath
=
properties
.
getProperty
(
"cloud.storm.db.path"
);
cloudStormDAO
=
new
CloudStormDAO
(
cloudStormDBPath
);
String
sureToscaBasePath
=
properties
.
getProperty
(
"sure
-
tosca.base.path"
);
String
sureToscaBasePath
=
properties
.
getProperty
(
"sure
_
tosca.base.path"
);
this
.
helper
=
new
ToscaHelper
(
sureToscaBasePath
);
this
.
helper
.
uploadToscaTemplate
(
toscaTemplate
);
this
.
objectMapper
=
new
ObjectMapper
(
new
YAMLFactory
().
disable
(
YAMLGenerator
.
Feature
.
WRITE_DOC_START_MARKER
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment