Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
b4ec2557
Commit
b4ec2557
authored
Sep 05, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18130 from eddumelendez
* pr/18130: Polish "Polish test" Polish test Closes gh-18130
parents
c20cfba9
7cb2eb18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
CloudFoundryVcapEnvironmentPostProcessorTests.java
...oundry/CloudFoundryVcapEnvironmentPostProcessorTests.java
+2
-3
No files found.
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/cloud/cloudfoundry/CloudFoundryVcapEnvironmentPostProcessorTests.java
View file @
b4ec2557
...
...
@@ -50,8 +50,7 @@ class CloudFoundryVcapEnvironmentPostProcessorTests {
+
"\"name\":\"dsyerenv\",\"uris\":[\"dsyerenv.cfapps.io\"],"
+
"\"users\":[],\"start\":\"2013-05-29 02:37:59 +0000\",\"state_timestamp\":1369795079}"
);
this
.
initializer
.
postProcessEnvironment
(
this
.
context
.
getEnvironment
(),
null
);
assertThat
(
this
.
context
.
getEnvironment
().
getProperty
(
"vcap.application.instance_id"
))
.
isEqualTo
(
"bb7935245adf3e650dfb7c58a06e9ece"
);
assertThat
(
getProperty
(
"vcap.application.instance_id"
)).
isEqualTo
(
"bb7935245adf3e650dfb7c58a06e9ece"
);
}
@Test
...
...
@@ -59,7 +58,7 @@ class CloudFoundryVcapEnvironmentPostProcessorTests {
TestPropertySourceUtils
.
addInlinedPropertiesToEnvironment
(
this
.
context
,
"VCAP_APPLICATION={\"instance_id\":\"bb7935245adf3e650dfb7c58a06e9ece\",\"instance_index\":0,\"uris\":[\"foo.cfapps.io\"]}"
);
this
.
initializer
.
postProcessEnvironment
(
this
.
context
.
getEnvironment
(),
null
);
assertThat
(
this
.
context
.
getEnvironment
().
getProperty
(
"vcap.application.uris[0]"
)).
isEqualTo
(
"foo.cfapps.io"
);
assertThat
(
getProperty
(
"vcap.application.uris[0]"
)).
isEqualTo
(
"foo.cfapps.io"
);
}
@Test
...
...
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