Search in sources :

Example 11 with OpenShiftRuntime

use of org.guvnor.ala.openshift.model.OpenShiftRuntime in project kie-wb-common by kiegroup.

the class OpenShiftRuntimeMarshallerTest method getValue.

@Override
public OpenShiftRuntime getValue() {
    OpenShiftProvider providerId = createOpenShiftProvider();
    OpenShiftRuntimeConfig runtimeConfig = new ContextAwareOpenShiftRuntimeExecConfig(RUNTIME_NAME, providerId, APPLICATION_NAME, KIE_SERVER_CONTAINER_DEPLOYMENT, PROJECT_NAME, RESOURCE_SECRETS_URI, RESOURCE_STREAMS_URI, RESOURCE_TEMPLATE_NAME, RESOURCE_TEMPLATE_PARAM_DELIMITER, RESOURCE_TEMPLATE_PARAM_ASSIGNER, RESOURCE_TEMPLATE_PARAM_VALUES, RESOURCE_TEMPLATE_URI, SERVICE_NAME);
    return new OpenShiftRuntime(RUNTIME_ID, RUNTIME_NAME, runtimeConfig, providerId, new OpenShiftRuntimeEndpoint(PROTOCOL, HOST, PORT, CONTEXT), new OpenShiftRuntimeInfo(runtimeConfig), new OpenShiftRuntimeState(STATE, STARTED_AT));
}
Also used : ContextAwareOpenShiftRuntimeExecConfig(org.guvnor.ala.openshift.config.impl.ContextAwareOpenShiftRuntimeExecConfig) OpenShiftRuntime(org.guvnor.ala.openshift.model.OpenShiftRuntime) OpenShiftProviderImplMarshallerTest.createOpenShiftProvider(org.guvnor.ala.openshift.marshalling.OpenShiftProviderImplMarshallerTest.createOpenShiftProvider) OpenShiftProvider(org.guvnor.ala.openshift.model.OpenShiftProvider) OpenShiftRuntimeState(org.guvnor.ala.openshift.model.OpenShiftRuntimeState) OpenShiftRuntimeInfo(org.guvnor.ala.openshift.model.OpenShiftRuntimeInfo) OpenShiftRuntimeEndpoint(org.guvnor.ala.openshift.model.OpenShiftRuntimeEndpoint) OpenShiftRuntimeConfig(org.guvnor.ala.openshift.config.OpenShiftRuntimeConfig)

Aggregations

OpenShiftRuntime (org.guvnor.ala.openshift.model.OpenShiftRuntime)11 OpenShiftClientException (org.guvnor.ala.openshift.access.exceptions.OpenShiftClientException)6 RuntimeOperationException (org.guvnor.ala.exceptions.RuntimeOperationException)5 OpenShiftProvider (org.guvnor.ala.openshift.model.OpenShiftProvider)3 OpenShiftRuntimeEndpoint (org.guvnor.ala.openshift.model.OpenShiftRuntimeEndpoint)3 OpenShiftRuntimeState (org.guvnor.ala.openshift.model.OpenShiftRuntimeState)3 Runtime (org.guvnor.ala.runtime.Runtime)3 OpenShiftRuntimeConfig (org.guvnor.ala.openshift.config.OpenShiftRuntimeConfig)2 ContextAwareOpenShiftRuntimeExecConfig (org.guvnor.ala.openshift.config.impl.ContextAwareOpenShiftRuntimeExecConfig)2 OpenShiftRuntimeInfo (org.guvnor.ala.openshift.model.OpenShiftRuntimeInfo)2 Client (javax.ws.rs.client.Client)1 WebTarget (javax.ws.rs.client.WebTarget)1 DockerRuntime (org.guvnor.ala.docker.model.DockerRuntime)1 ProvisioningException (org.guvnor.ala.exceptions.ProvisioningException)1 OpenShiftAccessInterface (org.guvnor.ala.openshift.access.OpenShiftAccessInterface)1 OpenShiftClient (org.guvnor.ala.openshift.access.OpenShiftClient)1 OpenShiftAccessInterfaceImpl (org.guvnor.ala.openshift.access.impl.OpenShiftAccessInterfaceImpl)1 OpenShiftParameters (org.guvnor.ala.openshift.config.OpenShiftParameters)1 OpenShiftProviderConfig (org.guvnor.ala.openshift.config.OpenShiftProviderConfig)1 OpenShiftRuntimeExecConfig (org.guvnor.ala.openshift.config.OpenShiftRuntimeExecConfig)1