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 2018/09/13 13:26:51 UTC
[camel-k] 02/02: Fix integration tests
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
commit 3ba8d5b1eb71e7b7d6948e53f664586afc064602
Author: nferraro <ni...@gmail.com>
AuthorDate: Thu Sep 13 13:27:51 2018 +0200
Fix integration tests
---
pkg/apis/camel/v1alpha1/types_support.go | 4 ++--
test/build_manager_integration_test.go | 6 ++++--
test/cluster_integration_test.go | 2 ++
test/local_builder_integration_test.go | 2 ++
test/testing_env.go | 2 ++
5 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/pkg/apis/camel/v1alpha1/types_support.go b/pkg/apis/camel/v1alpha1/types_support.go
index 5168405..fe93a18 100644
--- a/pkg/apis/camel/v1alpha1/types_support.go
+++ b/pkg/apis/camel/v1alpha1/types_support.go
@@ -30,11 +30,11 @@ import (
// **********************************
func (spec PropertySpec) String() string {
- return fmt.Sprint("%s=%s", spec.Name, spec.Value)
+ return fmt.Sprintf("%s=%s", spec.Name, spec.Value)
}
func (spec EnvironmentSpec) String() string {
- return fmt.Sprint("%s=%s", spec.Name, spec.Value)
+ return fmt.Sprintf("%s=%s", spec.Name, spec.Value)
}
// **********************************
diff --git a/test/build_manager_integration_test.go b/test/build_manager_integration_test.go
index 36a0631..d031fb4 100644
--- a/test/build_manager_integration_test.go
+++ b/test/build_manager_integration_test.go
@@ -1,5 +1,7 @@
// +build integration
+// To enable compilation of this file in Goland, go to "Settings -> Go -> Vendoring & Build Tags -> Custom Tags" and add "integration"
+
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
@@ -35,7 +37,7 @@ func TestBuildManagerBuild(t *testing.T) {
buildManager := build.NewManager(ctx, GetTargetNamespace())
identifier := buildapi.BuildIdentifier{
Name: "man-test",
- Digest: digest.Random(),
+ Qualifier: digest.Random(),
}
buildManager.Start(buildapi.BuildSource{
Identifier: identifier,
@@ -69,7 +71,7 @@ func TestBuildManagerFailedBuild(t *testing.T) {
buildManager := build.NewManager(ctx, GetTargetNamespace())
identifier := buildapi.BuildIdentifier{
Name: "man-test-2",
- Digest: digest.Random(),
+ Qualifier: digest.Random(),
}
buildManager.Start(buildapi.BuildSource{
Identifier: identifier,
diff --git a/test/cluster_integration_test.go b/test/cluster_integration_test.go
index 50030bc..810ed67 100644
--- a/test/cluster_integration_test.go
+++ b/test/cluster_integration_test.go
@@ -1,5 +1,7 @@
// +build integration
+// To enable compilation of this file in Goland, go to "Settings -> Go -> Vendoring & Build Tags -> Custom Tags" and add "integration"
+
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
diff --git a/test/local_builder_integration_test.go b/test/local_builder_integration_test.go
index 9339348..79cedeb 100644
--- a/test/local_builder_integration_test.go
+++ b/test/local_builder_integration_test.go
@@ -1,5 +1,7 @@
// +build integration
+// To enable compilation of this file in Goland, go to "Settings -> Go -> Vendoring & Build Tags -> Custom Tags" and add "integration"
+
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
diff --git a/test/testing_env.go b/test/testing_env.go
index e8cd929..13b0ed8 100644
--- a/test/testing_env.go
+++ b/test/testing_env.go
@@ -1,5 +1,7 @@
// +build integration
+// To enable compilation of this file in Goland, go to "Settings -> Go -> Vendoring & Build Tags -> Custom Tags" and add "integration"
+
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with