diff --git a/e2e/common/cli/get_test.go b/e2e/common/cli/get_test.go index 1d404045ea..78bb1d9a2e 100644 --- a/e2e/common/cli/get_test.go +++ b/e2e/common/cli/get_test.go @@ -55,7 +55,7 @@ func TestKamelCLIGet(t *testing.T) { Eventually(IntegrationPodPhase(ns, "yaml"), TestTimeoutLong).Should(Equal(corev1.PodRunning)) Eventually(IntegrationPodPhase(ns, "java"), TestTimeoutLong).Should(Equal(corev1.PodRunning)) - Eventually(IntegrationKit(ns, "yajavaml")).ShouldNot(Equal("")) + Eventually(IntegrationKit(ns, "java")).ShouldNot(Equal("")) Eventually(IntegrationKit(ns, "yaml")).ShouldNot(Equal("")) kitName1 := IntegrationKit(ns, "java")() kitName2 := IntegrationKit(ns, "yaml")() diff --git a/e2e/common/cli/run_test.go b/e2e/common/cli/run_test.go index 1612236847..280e3430ac 100644 --- a/e2e/common/cli/run_test.go +++ b/e2e/common/cli/run_test.go @@ -44,7 +44,7 @@ func TestKamelCLIRun(t *testing.T) { t.Run("Examples from GitHub", func(t *testing.T) { t.Run("Java", func(t *testing.T) { Expect(KamelRunWithID(operatorID, ns, - "github:apache/camel-k-examples/blob/main/generic-examples/languages/Sample.java").Execute()).To(Succeed()) + "github:apache/camel-k-examples/generic-examples/languages/Sample.java").Execute()).To(Succeed()) Eventually(IntegrationPodPhase(ns, "sample"), TestTimeoutLong).Should(Equal(corev1.PodRunning)) Eventually(IntegrationConditionStatus(ns, "sample", v1.IntegrationConditionReady), TestTimeoutShort). Should(Equal(corev1.ConditionTrue)) @@ -65,7 +65,7 @@ func TestKamelCLIRun(t *testing.T) { t.Run("Java (branch)", func(t *testing.T) { Expect(KamelRunWithID(operatorID, ns, - "github:apache/camel-k-examples/blob/main/generic-examples/languages/Sample.java?branch=main").Execute()).To(Succeed()) + "github:apache/camel-k-examples/generic-examples/languages/Sample.java?branch=main").Execute()).To(Succeed()) Eventually(IntegrationPodPhase(ns, "sample"), TestTimeoutLong).Should(Equal(corev1.PodRunning)) Eventually(IntegrationConditionStatus(ns, "sample", v1.IntegrationConditionReady), TestTimeoutShort). Should(Equal(corev1.ConditionTrue)) diff --git a/e2e/common/startup_test.go b/e2e/common/support/startup_test.go similarity index 99% rename from e2e/common/startup_test.go rename to e2e/common/support/startup_test.go index c8a3ad9afc..b1707383ea 100644 --- a/e2e/common/startup_test.go +++ b/e2e/common/support/startup_test.go @@ -20,7 +20,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package common +package support import ( "testing" diff --git a/e2e/common/teardown_test.go b/e2e/common/support/teardown_test.go similarity index 98% rename from e2e/common/teardown_test.go rename to e2e/common/support/teardown_test.go index fcc67b0f5a..064b447772 100644 --- a/e2e/common/teardown_test.go +++ b/e2e/common/support/teardown_test.go @@ -20,7 +20,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package common +package support import ( "testing" diff --git a/e2e/knative/startup_test.go b/e2e/knative/support/startup_test.go similarity index 99% rename from e2e/knative/startup_test.go rename to e2e/knative/support/startup_test.go index 4bab6ed40f..6e1260f593 100644 --- a/e2e/knative/startup_test.go +++ b/e2e/knative/support/startup_test.go @@ -20,7 +20,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package knative +package support import ( "testing" diff --git a/e2e/knative/teardown_test.go b/e2e/knative/support/teardown_test.go similarity index 98% rename from e2e/knative/teardown_test.go rename to e2e/knative/support/teardown_test.go index ac0504d825..1a141d6573 100644 --- a/e2e/knative/teardown_test.go +++ b/e2e/knative/support/teardown_test.go @@ -20,7 +20,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package knative +package support import ( "testing" diff --git a/script/Makefile b/script/Makefile index 27aeb2b336..f919d62117 100644 --- a/script/Makefile +++ b/script/Makefile @@ -255,13 +255,13 @@ test-fmt: do-build # test-common: do-build FAILED=0; STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)"; \ - go test -timeout 30m -v ./e2e/common/startup_test.go -tags=integration $(TEST_INTEGRATION_COMMON_LANG_RUN) $(GOTESTFMT) || FAILED=1; \ + go test -timeout 30m -v ./e2e/common/support/startup_test.go -tags=integration $(TEST_INTEGRATION_COMMON_LANG_RUN) $(GOTESTFMT) || FAILED=1; \ go test -timeout 30m -v ./e2e/common/languages -tags=integration $(TEST_INTEGRATION_COMMON_LANG_RUN) $(GOTESTFMT) || FAILED=1; \ go test -timeout 30m -v ./e2e/common/cli -tags=integration $(TEST_INTEGRATION_COMMON_LANG_RUN) $(GOTESTFMT) || FAILED=1; \ go test -timeout 30m -v ./e2e/common/config -tags=integration $(TEST_INTEGRATION_COMMON_LANG_RUN) $(GOTESTFMT) || FAILED=1; \ go test -timeout 30m -v ./e2e/common/misc -tags=integration $(TEST_INTEGRATION_COMMON_LANG_RUN) $(GOTESTFMT) || FAILED=1; \ go test -timeout 30m -v ./e2e/common/traits -tags=integration $(TEST_INTEGRATION_COMMON_LANG_RUN) $(GOTESTFMT) || FAILED=1; \ - go test -timeout 30m -v ./e2e/common/teardown_test.go -tags=integration $(TEST_INTEGRATION_COMMON_LANG_RUN) $(GOTESTFMT) || FAILED=1; \ + go test -timeout 30m -v ./e2e/common/support/teardown_test.go -tags=integration $(TEST_INTEGRATION_COMMON_LANG_RUN) $(GOTESTFMT) || FAILED=1; \ exit $${FAILED} # @@ -297,9 +297,9 @@ test-install-upgrade: do-build # test-knative: do-build STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)" \ - go test -timeout 30m -v ./e2e/knative/startup_test.go -tags=integration $(TEST_INTEGRATION_COMMON_LANG_RUN) $(GOTESTFMT) || FAILED=1; \ + go test -timeout 30m -v ./e2e/knative/support/startup_test.go -tags=integration $(TEST_INTEGRATION_COMMON_LANG_RUN) $(GOTESTFMT) || FAILED=1; \ go test -timeout 60m -v ./e2e/knative -tags=integration $(TEST_KNATIVE_RUN) $(GOTESTFMT) || FAILED=1; \ - go test -timeout 30m -v ./e2e/knative/teardown_test.go -tags=integration $(TEST_INTEGRATION_COMMON_LANG_RUN) $(GOTESTFMT) || FAILED=1; \ + go test -timeout 30m -v ./e2e/knative/support/teardown_test.go -tags=integration $(TEST_INTEGRATION_COMMON_LANG_RUN) $(GOTESTFMT) || FAILED=1; \ exit $${FAILED} # diff --git a/script/get_catalog.sh b/script/get_catalog.sh index 0a4b5ded12..85d4d7b336 100755 --- a/script/get_catalog.sh +++ b/script/get_catalog.sh @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -set -ex +set -e location=$(dirname $0) rootdir=$location/../