You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2019/12/13 08:21:38 UTC

[camel-k] branch master updated: chore(test): allow to change some defaults for testing

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 8ef6280  chore(test): allow to change some defaults for testing
8ef6280 is described below

commit 8ef6280d4371f8b4446a3cd8a1298af6795f98a4
Author: Nicola Ferraro <ni...@gmail.com>
AuthorDate: Thu Dec 12 17:36:32 2019 +0100

    chore(test): allow to change some defaults for testing
---
 e2e/test_support.go | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/e2e/test_support.go b/e2e/test_support.go
index de4a99d..e79aa3c 100644
--- a/e2e/test_support.go
+++ b/e2e/test_support.go
@@ -79,6 +79,16 @@ func init() {
 
 	// Defaults for testing
 	gomega.SetDefaultEventuallyTimeout(60 * time.Second)
+
+	imageName := os.Getenv("CAMEL_K_TEST_IMAGE_NAME")
+	if imageName != "" {
+		testImageName = imageName
+	}
+	imageVersion := os.Getenv("CAMEL_K_TEST_IMAGE_VERSION")
+	if imageVersion != "" {
+		testImageVersion = imageVersion
+	}
+
 }
 
 func newTestClient() (client.Client, error) {