Rename package for deployer module

The deployer module package was overloaded with another module, which break
standard Java conventions.
This commit is contained in:
Roy Clarkson
2025-01-30 12:28:42 -05:00
parent 3c83245e19
commit b147f4da97
64 changed files with 159 additions and 119 deletions

View File

@@ -26,7 +26,6 @@ import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.appbroker.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.BackingAppDeploymentService;
import org.springframework.cloud.appbroker.deployer.BackingApplication;
import org.springframework.cloud.appbroker.deployer.BackingService;
@@ -37,6 +36,8 @@ import org.springframework.cloud.appbroker.deployer.DefaultBackingAppDeploymentS
import org.springframework.cloud.appbroker.deployer.DefaultBackingServicesProvisionService;
import org.springframework.cloud.appbroker.deployer.DefaultBackingSpaceManagementService;
import org.springframework.cloud.appbroker.deployer.DeployerClient;
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.manager.AppManager;
import org.springframework.cloud.appbroker.extensions.parameters.BackingApplicationsParametersTransformationService;
import org.springframework.cloud.appbroker.extensions.parameters.BackingServicesParametersTransformationService;
import org.springframework.cloud.appbroker.extensions.parameters.EnvironmentMappingParametersTransformerFactory;
@@ -47,7 +48,6 @@ import org.springframework.cloud.appbroker.extensions.targets.ServiceInstanceGui
import org.springframework.cloud.appbroker.extensions.targets.SpacePerServiceInstance;
import org.springframework.cloud.appbroker.extensions.targets.TargetFactory;
import org.springframework.cloud.appbroker.extensions.targets.TargetService;
import org.springframework.cloud.appbroker.manager.AppManager;
import org.springframework.cloud.appbroker.manager.BackingAppManagementService;
import org.springframework.cloud.appbroker.manager.ManagementClient;
import org.springframework.cloud.appbroker.service.CreateServiceInstanceAppBindingWorkflow;

View File

@@ -43,15 +43,15 @@ import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.appbroker.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryAppDeployer;
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryAppManager;
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryDeploymentProperties;
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryOAuth2Client;
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryOperationsUtils;
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryTargetProperties;
import org.springframework.cloud.appbroker.manager.AppManager;
import org.springframework.cloud.appbroker.oauth2.OAuth2Client;
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.manager.AppManager;
import org.springframework.cloud.appbroker.deployer.oauth2.OAuth2Client;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ResourceLoader;

View File

@@ -29,12 +29,12 @@ import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.cloud.appbroker.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryDeploymentProperties;
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryOperationsUtils;
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryTargetProperties;
import org.springframework.cloud.appbroker.manager.AppManager;
import org.springframework.cloud.appbroker.oauth2.OAuth2Client;
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.manager.AppManager;
import org.springframework.cloud.appbroker.deployer.oauth2.OAuth2Client;
import static org.assertj.core.api.Assertions.assertThat;

View File

@@ -23,6 +23,7 @@ import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
import org.springframework.util.CollectionUtils;
public class BackingService {

View File

@@ -22,6 +22,22 @@ import reactor.core.publisher.Mono;
import reactor.util.Logger;
import reactor.util.Loggers;
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.deployer.CreateServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.deployer.CreateServiceInstanceResponse;
import org.springframework.cloud.appbroker.deployer.deployer.DeleteBackingSpaceRequest;
import org.springframework.cloud.appbroker.deployer.deployer.DeleteBackingSpaceResponse;
import org.springframework.cloud.appbroker.deployer.deployer.DeleteServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.deployer.DeleteServiceInstanceResponse;
import org.springframework.cloud.appbroker.deployer.deployer.DeployApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.DeployApplicationResponse;
import org.springframework.cloud.appbroker.deployer.deployer.UndeployApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.UndeployApplicationResponse;
import org.springframework.cloud.appbroker.deployer.deployer.UpdateApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.UpdateApplicationResponse;
import org.springframework.cloud.appbroker.deployer.deployer.UpdateServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.deployer.UpdateServiceInstanceResponse;
public class DeployerClient {
private static final Logger LOG = Loggers.getLogger(DeployerClient.class);

View File

@@ -18,7 +18,7 @@ package org.springframework.cloud.appbroker.extensions.targets;
import java.util.Map;
import org.springframework.cloud.appbroker.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
public class SpacePerServiceInstance extends TargetFactory<SpacePerServiceInstance.Config> {

View File

@@ -24,14 +24,14 @@ import reactor.core.scheduler.Schedulers;
import reactor.util.Logger;
import reactor.util.Loggers;
import org.springframework.cloud.appbroker.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.BackingApplication;
import org.springframework.cloud.appbroker.deployer.BackingApplications;
import org.springframework.cloud.appbroker.deployer.BrokeredService;
import org.springframework.cloud.appbroker.deployer.BrokeredServices;
import org.springframework.cloud.appbroker.deployer.GetApplicationRequest;
import org.springframework.cloud.appbroker.deployer.GetServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.ServicesSpec;
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.deployer.GetApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.GetServiceInstanceRequest;
import org.springframework.cloud.appbroker.extensions.targets.TargetService;
public class BackingAppManagementService {

View File

@@ -21,6 +21,11 @@ import reactor.util.Logger;
import reactor.util.Loggers;
import org.springframework.cloud.appbroker.deployer.BackingApplication;
import org.springframework.cloud.appbroker.deployer.manager.AppManager;
import org.springframework.cloud.appbroker.deployer.manager.RestageApplicationRequest;
import org.springframework.cloud.appbroker.deployer.manager.RestartApplicationRequest;
import org.springframework.cloud.appbroker.deployer.manager.StartApplicationRequest;
import org.springframework.cloud.appbroker.deployer.manager.StopApplicationRequest;
public class ManagementClient {

View File

@@ -31,7 +31,7 @@ import org.springframework.cloud.appbroker.deployer.BackingService;
import org.springframework.cloud.appbroker.deployer.BackingServicesProvisionService;
import org.springframework.cloud.appbroker.deployer.BackingSpaceManagementService;
import org.springframework.cloud.appbroker.deployer.BrokeredServices;
import org.springframework.cloud.appbroker.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.extensions.targets.TargetService;
import org.springframework.cloud.appbroker.manager.BackingAppManagementService;
import org.springframework.cloud.appbroker.service.DeleteServiceInstanceWorkflow;

View File

@@ -35,7 +35,7 @@ import org.springframework.cloud.appbroker.deployer.BackingApplication;
import org.springframework.cloud.appbroker.deployer.BackingService;
import org.springframework.cloud.appbroker.deployer.BackingServicesProvisionService;
import org.springframework.cloud.appbroker.deployer.BrokeredServices;
import org.springframework.cloud.appbroker.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.extensions.parameters.BackingApplicationsParametersTransformationService;
import org.springframework.cloud.appbroker.extensions.parameters.BackingServicesParametersTransformationService;
import org.springframework.cloud.appbroker.extensions.targets.TargetService;

View File

@@ -31,6 +31,17 @@ import org.mockito.junit.jupiter.MockitoExtension;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.deployer.CreateServiceInstanceResponse;
import org.springframework.cloud.appbroker.deployer.deployer.DeleteBackingSpaceResponse;
import org.springframework.cloud.appbroker.deployer.deployer.DeleteServiceInstanceResponse;
import org.springframework.cloud.appbroker.deployer.deployer.DeployApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.DeployApplicationResponse;
import org.springframework.cloud.appbroker.deployer.deployer.UndeployApplicationResponse;
import org.springframework.cloud.appbroker.deployer.deployer.UpdateApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.UpdateApplicationResponse;
import org.springframework.cloud.appbroker.deployer.deployer.UpdateServiceInstanceResponse;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.argThat;
import static org.mockito.BDDMockito.given;

View File

@@ -26,16 +26,16 @@ import org.mockito.junit.jupiter.MockitoExtension;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import org.springframework.cloud.appbroker.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.BackingApplication;
import org.springframework.cloud.appbroker.deployer.BackingApplications;
import org.springframework.cloud.appbroker.deployer.BrokeredService;
import org.springframework.cloud.appbroker.deployer.BrokeredServices;
import org.springframework.cloud.appbroker.deployer.GetApplicationRequest;
import org.springframework.cloud.appbroker.deployer.GetApplicationResponse;
import org.springframework.cloud.appbroker.deployer.GetServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.GetServiceInstanceResponse;
import org.springframework.cloud.appbroker.deployer.ServicesSpec;
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.deployer.GetApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.GetApplicationResponse;
import org.springframework.cloud.appbroker.deployer.deployer.GetServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.deployer.GetServiceInstanceResponse;
import org.springframework.cloud.appbroker.extensions.targets.TargetService;
import static org.mockito.ArgumentMatchers.any;

View File

@@ -24,14 +24,14 @@ import org.mockito.junit.jupiter.MockitoExtension;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import org.springframework.cloud.appbroker.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.BackingApplication;
import org.springframework.cloud.appbroker.deployer.BackingApplications;
import org.springframework.cloud.appbroker.deployer.BrokeredService;
import org.springframework.cloud.appbroker.deployer.BrokeredServices;
import org.springframework.cloud.appbroker.deployer.GetApplicationRequest;
import org.springframework.cloud.appbroker.deployer.GetApplicationResponse;
import org.springframework.cloud.appbroker.deployer.ServicesSpec;
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.deployer.GetApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.GetApplicationResponse;
import org.springframework.cloud.appbroker.extensions.targets.TargetService;
import static org.mockito.ArgumentMatchers.any;

View File

@@ -27,6 +27,11 @@ import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import org.springframework.cloud.appbroker.deployer.BackingApplication;
import org.springframework.cloud.appbroker.deployer.manager.AppManager;
import org.springframework.cloud.appbroker.deployer.manager.RestageApplicationRequest;
import org.springframework.cloud.appbroker.deployer.manager.RestartApplicationRequest;
import org.springframework.cloud.appbroker.deployer.manager.StartApplicationRequest;
import org.springframework.cloud.appbroker.deployer.manager.StopApplicationRequest;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.argThat;

View File

@@ -38,9 +38,9 @@ import org.springframework.cloud.appbroker.deployer.BackingServicesProvisionServ
import org.springframework.cloud.appbroker.deployer.BackingSpaceManagementService;
import org.springframework.cloud.appbroker.deployer.BrokeredService;
import org.springframework.cloud.appbroker.deployer.BrokeredServices;
import org.springframework.cloud.appbroker.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.deployer.ServicesSpec;
import org.springframework.cloud.appbroker.deployer.TargetSpec;
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.extensions.targets.TargetService;
import org.springframework.cloud.appbroker.manager.BackingAppManagementService;
import org.springframework.cloud.appbroker.service.DeleteServiceInstanceWorkflow;

View File

@@ -110,27 +110,27 @@ import reactor.core.Exceptions;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import org.springframework.cloud.appbroker.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.CreateServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.CreateServiceInstanceResponse;
import org.springframework.cloud.appbroker.deployer.DeleteBackingSpaceRequest;
import org.springframework.cloud.appbroker.deployer.DeleteBackingSpaceResponse;
import org.springframework.cloud.appbroker.deployer.DeleteServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.DeleteServiceInstanceResponse;
import org.springframework.cloud.appbroker.deployer.DeployApplicationRequest;
import org.springframework.cloud.appbroker.deployer.DeployApplicationResponse;
import org.springframework.cloud.appbroker.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.deployer.GetApplicationRequest;
import org.springframework.cloud.appbroker.deployer.GetApplicationResponse;
import org.springframework.cloud.appbroker.deployer.GetServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.GetServiceInstanceResponse;
import org.springframework.cloud.appbroker.deployer.UndeployApplicationRequest;
import org.springframework.cloud.appbroker.deployer.UndeployApplicationResponse;
import org.springframework.cloud.appbroker.deployer.UpdateApplicationRequest;
import org.springframework.cloud.appbroker.deployer.UpdateApplicationResponse;
import org.springframework.cloud.appbroker.deployer.UpdateServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.UpdateServiceInstanceResponse;
import org.springframework.cloud.appbroker.deployer.util.ByteSizeUtils;
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.deployer.CreateServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.deployer.CreateServiceInstanceResponse;
import org.springframework.cloud.appbroker.deployer.deployer.DeleteBackingSpaceRequest;
import org.springframework.cloud.appbroker.deployer.deployer.DeleteBackingSpaceResponse;
import org.springframework.cloud.appbroker.deployer.deployer.DeleteServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.deployer.DeleteServiceInstanceResponse;
import org.springframework.cloud.appbroker.deployer.deployer.DeployApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.DeployApplicationResponse;
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.deployer.deployer.GetApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.GetApplicationResponse;
import org.springframework.cloud.appbroker.deployer.deployer.GetServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.deployer.GetServiceInstanceResponse;
import org.springframework.cloud.appbroker.deployer.deployer.UndeployApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.UndeployApplicationResponse;
import org.springframework.cloud.appbroker.deployer.deployer.UpdateApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.UpdateApplicationResponse;
import org.springframework.cloud.appbroker.deployer.deployer.UpdateServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.deployer.UpdateServiceInstanceResponse;
import org.springframework.cloud.appbroker.deployer.deployer.util.ByteSizeUtils;
import org.springframework.context.ResourceLoaderAware;
import org.springframework.core.io.Resource;
import org.springframework.core.io.ResourceLoader;

View File

@@ -20,11 +20,11 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import reactor.core.publisher.Mono;
import org.springframework.cloud.appbroker.manager.AppManager;
import org.springframework.cloud.appbroker.manager.RestageApplicationRequest;
import org.springframework.cloud.appbroker.manager.RestartApplicationRequest;
import org.springframework.cloud.appbroker.manager.StartApplicationRequest;
import org.springframework.cloud.appbroker.manager.StopApplicationRequest;
import org.springframework.cloud.appbroker.deployer.manager.AppManager;
import org.springframework.cloud.appbroker.deployer.manager.RestageApplicationRequest;
import org.springframework.cloud.appbroker.deployer.manager.RestartApplicationRequest;
import org.springframework.cloud.appbroker.deployer.manager.StartApplicationRequest;
import org.springframework.cloud.appbroker.deployer.manager.StopApplicationRequest;
public class CloudFoundryAppManager implements AppManager {

View File

@@ -22,7 +22,7 @@ import java.util.Set;
import org.cloudfoundry.operations.applications.ApplicationHealthCheck;
import org.springframework.cloud.appbroker.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
/**
* Holds configuration properties for specifying what resources and services an app deployed to a Cloud Foundry runtime

View File

@@ -27,11 +27,11 @@ import org.cloudfoundry.uaa.clients.DeleteClientResponse;
import org.cloudfoundry.uaa.tokens.GrantType;
import reactor.core.publisher.Mono;
import org.springframework.cloud.appbroker.oauth2.CreateOAuth2ClientRequest;
import org.springframework.cloud.appbroker.oauth2.CreateOAuth2ClientResponse;
import org.springframework.cloud.appbroker.oauth2.DeleteOAuth2ClientRequest;
import org.springframework.cloud.appbroker.oauth2.DeleteOAuth2ClientResponse;
import org.springframework.cloud.appbroker.oauth2.OAuth2Client;
import org.springframework.cloud.appbroker.deployer.oauth2.CreateOAuth2ClientRequest;
import org.springframework.cloud.appbroker.deployer.oauth2.CreateOAuth2ClientResponse;
import org.springframework.cloud.appbroker.deployer.oauth2.DeleteOAuth2ClientRequest;
import org.springframework.cloud.appbroker.deployer.oauth2.DeleteOAuth2ClientResponse;
import org.springframework.cloud.appbroker.deployer.oauth2.OAuth2Client;
import org.springframework.util.CollectionUtils;
public class CloudFoundryOAuth2Client implements OAuth2Client {

View File

@@ -22,7 +22,7 @@ import org.cloudfoundry.operations.CloudFoundryOperations;
import org.cloudfoundry.operations.DefaultCloudFoundryOperations;
import reactor.core.publisher.Mono;
import org.springframework.cloud.appbroker.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
import org.springframework.util.CollectionUtils;
public class CloudFoundryOperationsUtils {

View File

@@ -36,8 +36,8 @@ import org.mockito.junit.jupiter.MockitoExtension;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import org.springframework.cloud.appbroker.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.DeleteBackingSpaceRequest;
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.deployer.DeleteBackingSpaceRequest;
import org.springframework.core.io.ResourceLoader;
import static org.assertj.core.api.Assertions.assertThat;

View File

@@ -66,14 +66,14 @@ import org.mockito.quality.Strictness;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import org.springframework.cloud.appbroker.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.CreateServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.DeleteServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.DeployApplicationRequest;
import org.springframework.cloud.appbroker.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.deployer.GetApplicationRequest;
import org.springframework.cloud.appbroker.deployer.UpdateApplicationRequest;
import org.springframework.cloud.appbroker.deployer.UpdateServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.deployer.CreateServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.deployer.DeleteServiceInstanceRequest;
import org.springframework.cloud.appbroker.deployer.deployer.DeployApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.deployer.deployer.GetApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.UpdateApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.UpdateServiceInstanceRequest;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.ResourceLoader;
import org.springframework.util.CollectionUtils;
@@ -88,8 +88,8 @@ import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.ArgumentMatchers.argThat;
import static org.mockito.BDDMockito.given;
import static org.mockito.BDDMockito.then;
import static org.springframework.cloud.appbroker.deployer.DeploymentProperties.TARGET_PROPERTY_KEY;
import static org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryDeploymentProperties.DEFAULT_API_POLLING_TIMEOUT_SECONDS;
import static org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties.TARGET_PROPERTY_KEY;
@SuppressWarnings("UnassignedFluxMonoInstance")
@ExtendWith(MockitoExtension.class)
@@ -871,8 +871,8 @@ class CloudFoundryAppDeployerTest {
.build())
.build()));
org.springframework.cloud.appbroker.deployer.GetServiceInstanceRequest request =
org.springframework.cloud.appbroker.deployer.GetServiceInstanceRequest
org.springframework.cloud.appbroker.deployer.deployer.GetServiceInstanceRequest request =
org.springframework.cloud.appbroker.deployer.deployer.GetServiceInstanceRequest
.builder()
.serviceInstanceId("foo-service-instance-id")
.properties(emptyMap())
@@ -913,7 +913,8 @@ class CloudFoundryAppDeployerTest {
.type(ServiceInstanceType.MANAGED)
.build()));
org.springframework.cloud.appbroker.deployer.GetServiceInstanceRequest request = org.springframework.cloud.appbroker.deployer.GetServiceInstanceRequest
org.springframework.cloud.appbroker.deployer.deployer.GetServiceInstanceRequest request =
org.springframework.cloud.appbroker.deployer.deployer.GetServiceInstanceRequest
.builder()
.name("my-foo-service")
.build();
@@ -945,7 +946,8 @@ class CloudFoundryAppDeployerTest {
.type(ServiceInstanceType.MANAGED)
.build()));
org.springframework.cloud.appbroker.deployer.GetServiceInstanceRequest request = org.springframework.cloud.appbroker.deployer.GetServiceInstanceRequest
org.springframework.cloud.appbroker.deployer.deployer.GetServiceInstanceRequest request =
org.springframework.cloud.appbroker.deployer.deployer.GetServiceInstanceRequest
.builder()
.name("my-foo-service")
.properties(singletonMap(TARGET_PROPERTY_KEY, "foo-space"))

View File

@@ -83,8 +83,8 @@ import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import org.springframework.cloud.appbroker.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.UpdateApplicationRequest;
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.deployer.UpdateApplicationRequest;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.ResourceLoader;
@@ -97,7 +97,7 @@ import static org.mockito.ArgumentMatchers.argThat;
import static org.mockito.BDDMockito.given;
import static org.mockito.BDDMockito.then;
import static org.mockito.Mockito.times;
import static org.springframework.cloud.appbroker.deployer.DeploymentProperties.TARGET_PROPERTY_KEY;
import static org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties.TARGET_PROPERTY_KEY;
@ExtendWith(MockitoExtension.class)
@MockitoSettings(strictness = Strictness.LENIENT)

View File

@@ -26,10 +26,10 @@ import org.mockito.junit.jupiter.MockitoExtension;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import org.springframework.cloud.appbroker.manager.RestageApplicationRequest;
import org.springframework.cloud.appbroker.manager.RestartApplicationRequest;
import org.springframework.cloud.appbroker.manager.StartApplicationRequest;
import org.springframework.cloud.appbroker.manager.StopApplicationRequest;
import org.springframework.cloud.appbroker.deployer.manager.RestageApplicationRequest;
import org.springframework.cloud.appbroker.deployer.manager.RestartApplicationRequest;
import org.springframework.cloud.appbroker.deployer.manager.StartApplicationRequest;
import org.springframework.cloud.appbroker.deployer.manager.StopApplicationRequest;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyMap;

View File

@@ -33,8 +33,8 @@ import org.mockito.junit.jupiter.MockitoExtension;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import org.springframework.cloud.appbroker.oauth2.CreateOAuth2ClientRequest;
import org.springframework.cloud.appbroker.oauth2.DeleteOAuth2ClientRequest;
import org.springframework.cloud.appbroker.deployer.oauth2.CreateOAuth2ClientRequest;
import org.springframework.cloud.appbroker.deployer.oauth2.DeleteOAuth2ClientRequest;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.BDDMockito.given;

View File

@@ -24,7 +24,7 @@ import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import reactor.test.StepVerifier;
import org.springframework.cloud.appbroker.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
import org.springframework.test.util.ReflectionTestUtils;
import static org.assertj.core.api.Assertions.assertThat;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
import reactor.core.publisher.Mono;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
import java.util.HashMap;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
public class CreateServiceInstanceResponse {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
public class DeleteBackingSpaceRequest {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
public class DeleteBackingSpaceResponse {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
import java.util.HashMap;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
public class DeleteServiceInstanceResponse {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
import java.util.ArrayList;
import java.util.HashMap;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
public class DeployApplicationResponse {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
public class DeploymentProperties {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
import java.util.HashMap;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
import java.util.ArrayList;
import java.util.HashMap;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
import java.util.HashMap;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
public class GetServiceInstanceResponse {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
import java.util.HashMap;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
public class UndeployApplicationResponse {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
import java.util.ArrayList;
import java.util.HashMap;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
public class UpdateApplicationResponse {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
import java.util.HashMap;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
public class UpdateServiceInstanceResponse {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer.util;
package org.springframework.cloud.appbroker.deployer.deployer.util;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.manager;
package org.springframework.cloud.appbroker.deployer.manager;
import reactor.core.publisher.Mono;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.manager;
package org.springframework.cloud.appbroker.deployer.manager;
import java.util.HashMap;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.manager;
package org.springframework.cloud.appbroker.deployer.manager;
import java.util.HashMap;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.manager;
package org.springframework.cloud.appbroker.deployer.manager;
import java.util.HashMap;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.manager;
package org.springframework.cloud.appbroker.deployer.manager;
import java.util.HashMap;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.oauth2;
package org.springframework.cloud.appbroker.deployer.oauth2;
import java.util.ArrayList;
import java.util.Arrays;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.oauth2;
package org.springframework.cloud.appbroker.deployer.oauth2;
import java.util.ArrayList;
import java.util.List;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.oauth2;
package org.springframework.cloud.appbroker.deployer.oauth2;
import java.util.Objects;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.oauth2;
package org.springframework.cloud.appbroker.deployer.oauth2;
import java.util.ArrayList;
import java.util.List;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.oauth2;
package org.springframework.cloud.appbroker.deployer.oauth2;
import reactor.core.publisher.Mono;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.deployer;
package org.springframework.cloud.appbroker.deployer.deployer;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.manager;
package org.springframework.cloud.appbroker.deployer.manager;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.manager;
package org.springframework.cloud.appbroker.deployer.manager;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.manager;
package org.springframework.cloud.appbroker.deployer.manager;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.appbroker.manager;
package org.springframework.cloud.appbroker.deployer.manager;
import java.util.Collections;

View File

@@ -22,8 +22,8 @@ import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cloud.appbroker.deployer.AppDeployer;
import org.springframework.cloud.appbroker.deployer.BackingAppDeploymentService;
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
import org.springframework.cloud.appbroker.service.WorkflowServiceInstanceService;
import org.springframework.cloud.servicebroker.controller.CatalogController;
import org.springframework.test.context.ActiveProfiles;

View File

@@ -21,7 +21,7 @@ import java.util.Map;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.appbroker.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
import org.springframework.cloud.appbroker.extensions.targets.ArtifactDetails;
import org.springframework.cloud.appbroker.extensions.targets.Target;
import org.springframework.cloud.appbroker.extensions.targets.TargetFactory;