-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
E2E tests for channel: TLS key pair rotation (#3406)
* Save work progress * Expose the TLS port * Adding the logger to see what is happening * Java - Adding the debugging information * Adding the path to the contract * Comment out the certificate rotation test portion * Resolve the source certificate not found issue * Fix the issue in the test * Update control-plane/pkg/prober/prober.go Co-authored-by: Calum Murray <cmurray@redhat.com> * Update control-plane/pkg/reconciler/channel/channel.go Co-authored-by: Calum Murray <cmurray@redhat.com> * Update control-plane/pkg/reconciler/channel/channel.go Co-authored-by: Calum Murray <cmurray@redhat.com> * Update control-plane/pkg/reconciler/channel/resources/service.go Co-authored-by: Calum Murray <cmurray@redhat.com> * Update data-plane/receiver/src/main/java/dev/knative/eventing/kafka/broker/receiver/impl/IngressProducerReconcilableStore.java Co-authored-by: Calum Murray <cmurray@redhat.com> * Fix the inconsistent varable name * Fix the failed build issue * Remove the logger * Run formatting * Update data-plane/receiver/src/main/java/dev/knative/eventing/kafka/broker/receiver/impl/ReceiverVerticle.java Co-authored-by: Calum Murray <cmurray@redhat.com> * Remove the logger * Code gen * Update control-plane/pkg/reconciler/channel/channel.go Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Remove the uncessary code * Fix the failing reconciler tests due to the missing newly added filed in the test * Format fix * Instead of using channel service name, we directly use channel name for Path * Instead of using channel service name, we directly use channel name for Path --------- Co-authored-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
- Loading branch information
1 parent
6c0e105
commit 828b81e
Showing
10 changed files
with
282 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//go:build e2e | ||
// +build e2e | ||
|
||
/* | ||
* Copyright 2023 The Knative 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. | ||
*/ | ||
|
||
package e2e_new | ||
|
||
import ( | ||
"testing" | ||
"time" | ||
|
||
"knative.dev/eventing-kafka-broker/test/rekt/features" | ||
"knative.dev/pkg/system" | ||
"knative.dev/reconciler-test/pkg/environment" | ||
"knative.dev/reconciler-test/pkg/eventshub" | ||
"knative.dev/reconciler-test/pkg/k8s" | ||
"knative.dev/reconciler-test/pkg/knative" | ||
) | ||
|
||
func TestChannelTLSCARotation(t *testing.T) { | ||
t.Parallel() | ||
|
||
ctx, env := global.Environment( | ||
knative.WithKnativeNamespace(system.Namespace()), | ||
knative.WithLoggingConfig, | ||
knative.WithTracingConfig, | ||
k8s.WithEventListener, | ||
environment.Managed(t), | ||
eventshub.WithTLS(t), | ||
environment.WithPollTimings(5*time.Second, 4*time.Minute), | ||
) | ||
|
||
env.Test(ctx, t, features.RotateChannelTLSCertificates()) | ||
} |
Oops, something went wrong.