Commit b4ec2557 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #18130 from eddumelendez

* pr/18130:
  Polish "Polish test"
  Polish test

Closes gh-18130
parents c20cfba9 7cb2eb18
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment