From 09be565d2a733970fe6953b80cd125b906de544a Mon Sep 17 00:00:00 2001 From: jiangpengcheng Date: Mon, 6 May 2024 15:28:33 +0800 Subject: [PATCH] Fix mongo source ci --- .../cases/mongodb-source/mongodb-dbz.yaml | 2 +- controllers/common_test.go | 32 ++++++++++--------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.ci/tests/integration/cases/mongodb-source/mongodb-dbz.yaml b/.ci/tests/integration/cases/mongodb-source/mongodb-dbz.yaml index 60c64d6e4..d869a5722 100644 --- a/.ci/tests/integration/cases/mongodb-source/mongodb-dbz.yaml +++ b/.ci/tests/integration/cases/mongodb-source/mongodb-dbz.yaml @@ -44,7 +44,7 @@ spec: terminationGracePeriodSeconds: 10 containers: - name: mongo - image: debezium/example-mongodb:0.10 + image: debezium/example-mongodb:2.7 env: - name: MONGODB_USER value: "debezium" diff --git a/controllers/common_test.go b/controllers/common_test.go index eeda392ba..09531eeb3 100644 --- a/controllers/common_test.go +++ b/controllers/common_test.go @@ -1,19 +1,21 @@ -/* -Copyright 2017 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +// Package controllers define k8s operator controllers package controllers import (