You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2022/01/25 11:13:29 UTC
[camel-k] branch release-1.7.x updated (cbc6cc8 -> ad52f18)
This is an automated email from the ASF dual-hosted git repository.
astefanutti pushed a change to branch release-1.7.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git.
from cbc6cc8 RI table setup
new 464a6f4 fix(e2e): Use X.Y channels for OLM upgrade e2e tests
new ad52f18 fix(e2e): Assert OLM Subscription update
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/upgrade.yml | 8 +++++++-
e2e/upgrade/olm_upgrade_test.go | 8 +++++---
2 files changed, 12 insertions(+), 4 deletions(-)
[camel-k] 01/02: fix(e2e): Use X.Y channels for OLM upgrade e2e tests
Posted by as...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
astefanutti pushed a commit to branch release-1.7.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 464a6f47df0de93911097678a9127e9b257e34e2
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Fri Jan 21 12:41:19 2022 +0100
fix(e2e): Use X.Y channels for OLM upgrade e2e tests
---
.github/workflows/upgrade.yml | 8 +++++++-
e2e/upgrade/olm_upgrade_test.go | 4 ++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/upgrade.yml b/.github/workflows/upgrade.yml
index 3133628..07d3693 100644
--- a/.github/workflows/upgrade.yml
+++ b/.github/workflows/upgrade.yml
@@ -129,7 +129,11 @@ jobs:
export CUSTOM_IMAGE=${{ env.LOCAL_IMAGE_NAME }}
export LOCAL_IMAGE_BUNDLE=${KIND_REGISTRY}/apache/camel-k-bundle:${{ env.LOCAL_IMAGE_VERSION }}
echo "LOCAL_IMAGE_BUNDLE=${LOCAL_IMAGE_BUNDLE}" >> $GITHUB_ENV
- make bundle-build BUNDLE_IMAGE_NAME=${LOCAL_IMAGE_BUNDLE} DEFAULT_CHANNEL="stable" CHANNELS="stable"
+ export PREV_XY_CHANNEL=stable-$(make get-last-released-version | grep -Po "\d.\d")
+ echo "PREV_XY_CHANNEL=${PREV_XY_CHANNEL}" >> $GITHUB_ENV
+ export NEW_XY_CHANNEL=stable-$(make get-version | grep -Po "\d.\d")
+ echo "NEW_XY_CHANNEL=${NEW_XY_CHANNEL}" >> $GITHUB_ENV
+ make bundle-build BUNDLE_IMAGE_NAME=${LOCAL_IMAGE_BUNDLE} DEFAULT_CHANNEL="${NEW_XY_CHANNEL}" CHANNELS="stable,${NEW_XY_CHANNEL}"
docker push ${LOCAL_IMAGE_BUNDLE}
- name: Create new index image
run: |
@@ -155,6 +159,8 @@ jobs:
export CAMEL_K_NEW_IIB=${{ env.LOCAL_IIB }}
export KAMEL_K_TEST_RELEASE_VERSION=$(make get-last-released-version)
export KAMEL_K_TEST_OPERATOR_CURRENT_IMAGE=${CUSTOM_IMAGE}:${CUSTOM_VERSION}
+ export CAMEL_K_PREV_UPGRADE_CHANNEL=${{ env.PREV_XY_CHANNEL }}
+ export CAMEL_K_NEW_UPGRADE_CHANNEL=${{ env.NEW_XY_CHANNEL }}
# Then run integration tests
make test-upgrade
diff --git a/e2e/upgrade/olm_upgrade_test.go b/e2e/upgrade/olm_upgrade_test.go
index 9da68a1..a804920 100644
--- a/e2e/upgrade/olm_upgrade_test.go
+++ b/e2e/upgrade/olm_upgrade_test.go
@@ -73,8 +73,8 @@ func TestOLMAutomaticUpgrade(t *testing.T) {
args := []string{"install", "-n", ns, "--olm=true", "--olm-source", catalogSourceName, "--olm-source-namespace", ns}
- if crossChannelUpgrade {
- args = append(args, "--olm-channel", os.Getenv("CAMEL_K_PREV_UPGRADE_CHANNEL"))
+ if prevUpdateChannel != "" {
+ args = append(args, "--olm-channel", prevUpdateChannel)
}
Expect(Kamel(args...).Execute()).To(Succeed())
[camel-k] 02/02: fix(e2e): Assert OLM Subscription update
Posted by as...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
astefanutti pushed a commit to branch release-1.7.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit ad52f1810516c09156de61c1c78d05dc9cd79355
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Mon Jan 24 12:21:48 2022 +0100
fix(e2e): Assert OLM Subscription update
---
e2e/upgrade/olm_upgrade_test.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/e2e/upgrade/olm_upgrade_test.go b/e2e/upgrade/olm_upgrade_test.go
index a804920..e49b943 100644
--- a/e2e/upgrade/olm_upgrade_test.go
+++ b/e2e/upgrade/olm_upgrade_test.go
@@ -121,10 +121,12 @@ func TestOLMAutomaticUpgrade(t *testing.T) {
if crossChannelUpgrade {
t.Log("Updating Camel-K subscription OLM update channel.")
s := ckSubscription(ns)()
- ctrlutil.CreateOrUpdate(TestContext, TestClient(), s, func() error {
+ r, err := ctrlutil.CreateOrUpdate(TestContext, TestClient(), s, func() error {
s.Spec.Channel = newUpdateChannel
return nil
})
+ Expect(err).To(BeNil())
+ Expect(r).To(Equal(ctrlutil.OperationResultUpdated))
}
// Check the previous CSV is being replaced
Eventually(clusterServiceVersionPhase(func(csv olm.ClusterServiceVersion) bool {