You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2020/09/08 11:51:59 UTC

[camel-quarkus] branch master updated: Enhance Github itest with configurable credentials

This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/master by this push:
     new c23dbff  Enhance Github itest with configurable credentials
c23dbff is described below

commit c23dbff57ab5618ea44d00536d904b95e9e99d98
Author: Lukas Lowinger <ll...@redhat.com>
AuthorDate: Tue Sep 8 12:25:45 2020 +0200

    Enhance Github itest with configurable credentials
---
 .../org/apache/camel/quarkus/component/github/it/GithubResource.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/integration-tests/github/src/main/java/org/apache/camel/quarkus/component/github/it/GithubResource.java b/integration-tests/github/src/main/java/org/apache/camel/quarkus/component/github/it/GithubResource.java
index c63c878..6c510a5 100644
--- a/integration-tests/github/src/main/java/org/apache/camel/quarkus/component/github/it/GithubResource.java
+++ b/integration-tests/github/src/main/java/org/apache/camel/quarkus/component/github/it/GithubResource.java
@@ -28,6 +28,8 @@ import org.eclipse.egit.github.core.CommitFile;
 @Path("/github")
 public class GithubResource {
 
+    private static final String GITHUB_AUTH_PARAMS = "username={{env:GITHUB_USERNAME:}}&password={{env:GITHUB_PASSWORD:}}";
+
     @Inject
     ProducerTemplate producerTemplate;
 
@@ -39,8 +41,7 @@ public class GithubResource {
         commitFile.setSha("6195efafd0a8100795247e35942b5c61fea79267");
 
         return producerTemplate.requestBody(
-                "github:GETCOMMITFILE?repoOwner=apache&repoName=camel-quarkus",
+                "github:GETCOMMITFILE?repoOwner=apache&repoName=camel-quarkus&" + GITHUB_AUTH_PARAMS,
                 commitFile, String.class);
     }
-
 }