public class FakeGatewayServer
extends org.mule.test.infrastructure.deployment.FakeMuleServer
| Constructor and Description |
|---|
FakeGatewayServer(String muleHomePath,
List<org.mule.runtime.container.api.MuleCoreExtension> initialCoreExtensions,
String clusterId) |
| Modifier and Type | Method and Description |
|---|---|
List<PolicyDefinition> |
allPolicies() |
boolean |
apiPollerStarted() |
void |
assertApiTracked(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey) |
boolean |
clientsPollerStarted() |
FakeGatewayServer |
deployApplications(com.mulesoft.anypoint.tita.environment.api.artifact.Artifact... applications)
Installs the given applications and verifies that they were correctly deployed
|
FakeGatewayServer |
deployApplicationsExpectingFailure(com.mulesoft.anypoint.tita.environment.api.artifact.Artifact... applications)
Installs the given applications and verifies that the deployment failed
|
FakeGatewayServer |
deployPoliciesForApi(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey,
PolicySet policySet) |
FakeGatewayServer |
deployPolicy(Policy policy) |
FakeGatewayServer |
deployPolicy(PolicyDefinition policyDefinition) |
boolean |
equals(Object o) |
void |
forceGatewayStatusMetric() |
ApiService |
getApiService() |
com.mulesoft.anypoint.backoff.scheduler.BackoffScheduler |
getApisPollersManagerSchduler() |
ApiTrackingService |
getApiTrackingService() |
com.mulesoft.anypoint.backoff.scheduler.BackoffScheduler |
getClientsPollersManagerScheduler() |
String |
getClusterId() |
com.mulesoft.mule.runtime.gw.api.service.ContractService |
getContractService() |
ContractSnapshots |
getContractSnapshots() |
<T extends org.mule.runtime.container.api.MuleCoreExtension> |
getCoreExtension(Class<T> coreExtensionClass) |
org.mule.runtime.module.deployment.api.DeploymentService |
getDeploymentService() |
HdpDeploymentListener |
getHdpDeploymentListener() |
com.mulesoft.mule.runtime.gw.api.agent.HealthCheck |
getHealthCheck() |
com.mulesoft.anypoint.backoff.scheduler.BackoffScheduler |
getKeepAlivePollersManagerScheduler() |
PlatformInteractionServicesLifecycle |
getPlatformInteractionLifecycle() |
File |
getPoliciesDir() |
MultiplexingPolicyDeploymentService |
getPolicyDeploymentService() |
PolicyFactory |
getPolicyFactory() |
PolicySetDeploymentService |
getPolicySetDeploymentService() |
int |
hashCode() |
void |
installApplications(List<com.mulesoft.anypoint.tita.environment.api.artifact.Artifact> applications)
Copies the given applications to the applications folder
|
void |
installDomains(List<com.mulesoft.anypoint.tita.environment.api.artifact.Artifact> domains) |
void |
installPolicyTemplate(com.mulesoft.anypoint.tita.environment.api.artifact.PolicyJar policyTemplate) |
boolean |
keepAlivePollerStarted() |
boolean |
platformPollersStarted() |
FakeGatewayServer |
removeAllPoliciesAndContext() |
void |
storePolicyDefinition(PolicyDefinition policyDefinition) |
FakeGatewayServer |
undeployApplication(String appName)
Undeploy application through anchor file deletion instead of directly using deployment service, since the latter is producing
flaky behaviour because it uses non-blocking locks and has no retry mechanism in it.
|
FakeGatewayServer |
undeployPolicy(String id) |
FakeGatewayServer |
updateHdpRegistry(String source,
String target) |
addAppArchive, addCoreExtension, addDeploymentListener, addZippedServerPlugin, addZippedServerPlugin, addZippedService, assertDeploymentFailure, assertDeploymentSuccess, assertUndeploymentSuccess, assertUndeploymentSuccess, deploy, deploy, deploy, deployAppFromClasspathFolder, deployDomainFile, deployDomainFromClasspathFolder, findApplication, getAppsDir, getLogsDir, getMuleHome, getRepositoryService, getServerPluginsDir, getServicesDir, removeDeploymentListener, resetDeploymentListener, start, stop, toolingServicepublic File getPoliciesDir()
public <T extends org.mule.runtime.container.api.MuleCoreExtension> T getCoreExtension(Class<T> coreExtensionClass)
public org.mule.runtime.module.deployment.api.DeploymentService getDeploymentService()
public FakeGatewayServer deployApplications(com.mulesoft.anypoint.tita.environment.api.artifact.Artifact... applications)
public FakeGatewayServer deployApplicationsExpectingFailure(com.mulesoft.anypoint.tita.environment.api.artifact.Artifact... applications)
public void installApplications(List<com.mulesoft.anypoint.tita.environment.api.artifact.Artifact> applications)
public void installDomains(List<com.mulesoft.anypoint.tita.environment.api.artifact.Artifact> domains)
public FakeGatewayServer undeployApplication(String appName)
public FakeGatewayServer deployPolicy(Policy policy)
public FakeGatewayServer deployPolicy(PolicyDefinition policyDefinition)
public FakeGatewayServer deployPoliciesForApi(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey, PolicySet policySet)
public FakeGatewayServer undeployPolicy(String id)
public FakeGatewayServer removeAllPoliciesAndContext()
public void assertApiTracked(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
public FakeGatewayServer updateHdpRegistry(String source, String target)
public com.mulesoft.mule.runtime.gw.api.service.ContractService getContractService()
public List<PolicyDefinition> allPolicies()
public void installPolicyTemplate(com.mulesoft.anypoint.tita.environment.api.artifact.PolicyJar policyTemplate)
public void storePolicyDefinition(PolicyDefinition policyDefinition)
public PolicyFactory getPolicyFactory()
public MultiplexingPolicyDeploymentService getPolicyDeploymentService()
public PolicySetDeploymentService getPolicySetDeploymentService()
public ApiTrackingService getApiTrackingService()
public ApiService getApiService()
public HdpDeploymentListener getHdpDeploymentListener()
public ContractSnapshots getContractSnapshots()
public com.mulesoft.anypoint.backoff.scheduler.BackoffScheduler getClientsPollersManagerScheduler()
public com.mulesoft.anypoint.backoff.scheduler.BackoffScheduler getApisPollersManagerSchduler()
public com.mulesoft.anypoint.backoff.scheduler.BackoffScheduler getKeepAlivePollersManagerScheduler()
public boolean apiPollerStarted()
public boolean keepAlivePollerStarted()
public boolean clientsPollerStarted()
public boolean platformPollersStarted()
public PlatformInteractionServicesLifecycle getPlatformInteractionLifecycle()
public void forceGatewayStatusMetric()
public com.mulesoft.mule.runtime.gw.api.agent.HealthCheck getHealthCheck()
public String getClusterId()
Copyright © 2014–2024 MuleSoft, Inc.. All rights reserved.