Search in sources :

Example 16 with DefaultGoApiRequest

use of com.thoughtworks.go.plugin.api.request.DefaultGoApiRequest in project gocd by gocd.

the class ServerInfoRequestProcessorTest method shouldRegisterAPIRequestWithProcessor.

@Test
public void shouldRegisterAPIRequestWithProcessor() throws Exception {
    DefaultGoApiRequest request = new DefaultGoApiRequest(GET_SERVER_ID, "1.0", new GoPluginIdentifier("extension1", Collections.singletonList("1.0")));
    assertThat(processorRegistry.canProcess(request), is(true));
}
Also used : GoPluginIdentifier(com.thoughtworks.go.plugin.api.GoPluginIdentifier) DefaultGoApiRequest(com.thoughtworks.go.plugin.api.request.DefaultGoApiRequest) Test(org.junit.Test)

Aggregations

DefaultGoApiRequest (com.thoughtworks.go.plugin.api.request.DefaultGoApiRequest)16 Test (org.junit.Test)15 GoApiResponse (com.thoughtworks.go.plugin.api.response.GoApiResponse)10 GoPluginIdentifier (com.thoughtworks.go.plugin.api.GoPluginIdentifier)9 NullPlugin (com.thoughtworks.go.domain.NullPlugin)5 Plugin (com.thoughtworks.go.domain.Plugin)4 ElasticAgentMetadata (com.thoughtworks.go.server.domain.ElasticAgentMetadata)3 AgentConfig (com.thoughtworks.go.config.AgentConfig)2 AgentInstance (com.thoughtworks.go.domain.AgentInstance)2 GoPluginExtension (com.thoughtworks.go.plugin.access.common.settings.GoPluginExtension)2 AgentMetadata (com.thoughtworks.go.plugin.access.elastic.models.AgentMetadata)2 HashMap (java.util.HashMap)2 AuthorizationMessageConverterV1 (com.thoughtworks.go.plugin.access.authorization.AuthorizationMessageConverterV1)1 GoApiRequest (com.thoughtworks.go.plugin.api.request.GoApiRequest)1 PluginRoleService (com.thoughtworks.go.server.service.PluginRoleService)1 Map (java.util.Map)1 LinkedMultiValueMap (org.springframework.util.LinkedMultiValueMap)1