jamesnetherton commented on a change in pull request #712: create camel-jira extension #710 URL: https://github.com/apache/camel-quarkus/pull/712#discussion_r379125729
########## File path: integration-tests/jira/src/main/java/org/apache/camel/quarkus/component/jira/it/JiraResource.java ########## @@ -0,0 +1,86 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.quarkus.component.jira.it; + +import java.net.URI; + +import javax.enterprise.context.ApplicationScoped; +import javax.inject.Inject; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; + +import com.atlassian.jira.rest.client.api.RestClientException; +import org.apache.camel.ConsumerTemplate; +import org.apache.camel.ProducerTemplate; +import org.jboss.logging.Logger; + +@Path("/jira") +@ApplicationScoped +public class JiraResource { + + private static final Logger log = Logger.getLogger(JiraResource.class); + + String TEST_JIRA_URL = "https://somerepo.atlassian.net"; + String PROJECT = "TST"; + String USERNAME = "someguy"; + String PASSWORD = "my_password"; Review comment: I was thinking that it'd be better to do anonymous authentication if possible and use `jra:fetchIssue` against `issues.apache.org`. Then there'd be no need for credentials. Not sure if the Jira component supports that, but it might be possible with a custom `JiraRestClientFactory`. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services