Home / Function/ getEnvironmentWithEnvVariables() — spring-boot Function Reference

getEnvironmentWithEnvVariables() — spring-boot Function Reference

Architecture documentation for the getEnvironmentWithEnvVariables() function in CloudPlatformTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  1bf364c1_9291_b863_0798_0cb211a8b518["getEnvironmentWithEnvVariables()"]
  17734b84_dbe4_f3bc_0e19_10d75d851816["getActiveWhenHasKubernetesServiceHostAndPortShouldReturnKubernetes()"]
  17734b84_dbe4_f3bc_0e19_10d75d851816 -->|calls| 1bf364c1_9291_b863_0798_0cb211a8b518
  865c2ddb_ca38_ebd7_0a6d_a45ad87fb215["getActiveWhenHasKubernetesServiceHostAndNoKubernetesServicePortShouldNotReturnKubernetes()"]
  865c2ddb_ca38_ebd7_0a6d_a45ad87fb215 -->|calls| 1bf364c1_9291_b863_0798_0cb211a8b518
  7a5e10ba_431f_19f2_d8f6_043d289fb666["getActiveWhenHasKubernetesServicePortAndNoKubernetesServiceHostShouldNotReturnKubernetes()"]
  7a5e10ba_431f_19f2_d8f6_043d289fb666 -->|calls| 1bf364c1_9291_b863_0798_0cb211a8b518
  f9de89d9_acca_6226_edfd_1df15619a447["getActiveWhenHasServiceHostAndServicePortShouldReturnKubernetes()"]
  f9de89d9_acca_6226_edfd_1df15619a447 -->|calls| 1bf364c1_9291_b863_0798_0cb211a8b518
  2a5807d0_3f5c_bdc2_f599_e5901599c7c2["getActiveWhenHasServiceHostAndNoServicePortShouldNotReturnKubernetes()"]
  2a5807d0_3f5c_bdc2_f599_e5901599c7c2 -->|calls| 1bf364c1_9291_b863_0798_0cb211a8b518
  bef9c0f1_c0a8_6025_d577_016f7c080a2f["getActiveWhenHasAllAzureEnvVariablesShouldReturnAzureAppService()"]
  bef9c0f1_c0a8_6025_d577_016f7c080a2f -->|calls| 1bf364c1_9291_b863_0798_0cb211a8b518
  2e641375_cfaa_d23b_e17b_e9d2c9af8e07["getActiveWhenHasMissingWebsiteSiteNameShouldNotReturnAzureAppService()"]
  2e641375_cfaa_d23b_e17b_e9d2c9af8e07 -->|calls| 1bf364c1_9291_b863_0798_0cb211a8b518
  9e4a1af6_0787_b7f0_70f5_b073c6821825["getActiveWhenHasMissingWebsiteInstanceIdShouldNotReturnAzureAppService()"]
  9e4a1af6_0787_b7f0_70f5_b073c6821825 -->|calls| 1bf364c1_9291_b863_0798_0cb211a8b518
  5f4a7023_8fe8_0f42_0ac1_60ab72ec5a6f["getActiveWhenHasMissingWebsiteResourceGroupShouldNotReturnAzureAppService()"]
  5f4a7023_8fe8_0f42_0ac1_60ab72ec5a6f -->|calls| 1bf364c1_9291_b863_0798_0cb211a8b518
  6ee23b7e_e9c6_6999_2d2c_115369a8b19f["getActiveWhenHasMissingWebsiteSkuShouldNotReturnAzureAppService()"]
  6ee23b7e_e9c6_6999_2d2c_115369a8b19f -->|calls| 1bf364c1_9291_b863_0798_0cb211a8b518
  8cd09ea9_a0dd_7ed6_3020_6a32368165dc["getActiveWhenHasAwsExecutionEnvEcsShouldReturnAwsEcs()"]
  8cd09ea9_a0dd_7ed6_3020_6a32368165dc -->|calls| 1bf364c1_9291_b863_0798_0cb211a8b518
  b2b7de1f_2c66_85fe_1fbb_254cacc1add0["getActiveWhenHasAwsExecutionEnvLambdaShouldNotReturnAwsEcs()"]
  b2b7de1f_2c66_85fe_1fbb_254cacc1add0 -->|calls| 1bf364c1_9291_b863_0798_0cb211a8b518
  070c4041_f387_4aaf_c016_71637b6d0141["getActiveWhenHasEnforcedCloudPlatform()"]
  070c4041_f387_4aaf_c016_71637b6d0141 -->|calls| 1bf364c1_9291_b863_0798_0cb211a8b518
  97e02902_6fe9_1f40_6d26_35bddf8502a3["isActiveWhenNoCloudPlatformIsEnforcedAndHasKubernetesServiceHostAndKubernetesServicePort()"]
  97e02902_6fe9_1f40_6d26_35bddf8502a3 -->|calls| 1bf364c1_9291_b863_0798_0cb211a8b518
  style 1bf364c1_9291_b863_0798_0cb211a8b518 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/cloud/CloudPlatformTests.java lines 284–290

	private Environment getEnvironmentWithEnvVariables(Map<String, Object> environmentVariables) {
		MockEnvironment environment = new MockEnvironment();
		PropertySource<?> propertySource = new SystemEnvironmentPropertySource(
				StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME, environmentVariables);
		environment.getPropertySources().addFirst(propertySource);
		return environment;
	}

Domain

Subdomains

Called By

  • getActiveWhenHasAllAzureEnvVariablesShouldReturnAzureAppService()
  • getActiveWhenHasAwsExecutionEnvEcsShouldReturnAwsEcs()
  • getActiveWhenHasAwsExecutionEnvLambdaShouldNotReturnAwsEcs()
  • getActiveWhenHasEnforcedCloudPlatform()
  • getActiveWhenHasKubernetesServiceHostAndNoKubernetesServicePortShouldNotReturnKubernetes()
  • getActiveWhenHasKubernetesServiceHostAndPortShouldReturnKubernetes()
  • getActiveWhenHasKubernetesServicePortAndNoKubernetesServiceHostShouldNotReturnKubernetes()
  • getActiveWhenHasMissingWebsiteInstanceIdShouldNotReturnAzureAppService()
  • getActiveWhenHasMissingWebsiteResourceGroupShouldNotReturnAzureAppService()
  • getActiveWhenHasMissingWebsiteSiteNameShouldNotReturnAzureAppService()
  • getActiveWhenHasMissingWebsiteSkuShouldNotReturnAzureAppService()
  • getActiveWhenHasServiceHostAndNoServicePortShouldNotReturnKubernetes()
  • getActiveWhenHasServiceHostAndServicePortShouldReturnKubernetes()
  • isActiveWhenNoCloudPlatformIsEnforcedAndHasKubernetesServiceHostAndKubernetesServicePort()

Frequently Asked Questions

What does getEnvironmentWithEnvVariables() do?
getEnvironmentWithEnvVariables() is a function in the spring-boot codebase.
What calls getEnvironmentWithEnvVariables()?
getEnvironmentWithEnvVariables() is called by 14 function(s): getActiveWhenHasAllAzureEnvVariablesShouldReturnAzureAppService, getActiveWhenHasAwsExecutionEnvEcsShouldReturnAwsEcs, getActiveWhenHasAwsExecutionEnvLambdaShouldNotReturnAwsEcs, getActiveWhenHasEnforcedCloudPlatform, getActiveWhenHasKubernetesServiceHostAndNoKubernetesServicePortShouldNotReturnKubernetes, getActiveWhenHasKubernetesServiceHostAndPortShouldReturnKubernetes, getActiveWhenHasKubernetesServicePortAndNoKubernetesServiceHostShouldNotReturnKubernetes, getActiveWhenHasMissingWebsiteInstanceIdShouldNotReturnAzureAppService, and 6 more.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free