-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing vhost feature #351
Merged
knative-prow-robot
merged 15 commits into
knative-extensions:main
from
gabo1208:testing-vhost-feature
Jun 30, 2021
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
10ceb2f
increased test coverage and created validation base for rabbitmq adapter
gabo1208 77adb93
added basic files to the source vhost e2e test and parelization to vs…
gabo1208 9692175
added yaml to create a source on an specific vhost
gabo1208 d58fd7d
removed unused validation file and created vhostsource e2e test dir t…
gabo1208 bcb9f40
renamed file for new e2e config test
gabo1208 c68f4f1
added basic e2e test for vhost in source
gabo1208 8cc0de7
removed unused label from source yamll
gabo1208 7c23b28
fixed context leak in with deadline
gabo1208 c97f107
added readme to tests docs
gabo1208 5c7e7f5
fixed testss
gabo1208 9243ee8
added TODO annotation for rabbitmqsource e2e test
gabo1208 ca09b85
fixing lint on new readme
gabo1208 2bd501c
removed unused function calls in tests and added unique name for new …
gabo1208 ca457aa
added CR headders and fixed PR comments
gabo1208 a055fff
fixing e2e tests run
gabo1208 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Tests | ||
|
||
For more info on the tests see [Eventing Tests](https://github.com/knative/eventing/blob/main/test/README.md) |
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,44 @@ | ||
# Copyright 2021 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 | ||
# | ||
# https://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. | ||
|
||
apiVersion: sources.knative.dev/v1alpha1 | ||
kind: RabbitmqSource | ||
metadata: | ||
name: rabbitmq-source-vhost | ||
namespace: {{ .namespace }} | ||
spec: | ||
brokers: "rabbitmqc.{{ .namespace }}:5672/" | ||
vhost: "test-vhost" | ||
topic: "" | ||
user: | ||
secretKeyRef: | ||
name: "rabbitmqc-default-user" | ||
key: "username" | ||
password: | ||
secretKeyRef: | ||
name: "rabbitmqc-default-user" | ||
key: "password" | ||
exchange_config: | ||
type: "fanout" | ||
durable: true | ||
auto_deleted: false | ||
internal: false | ||
nowait: false | ||
queue_config: | ||
name: "" | ||
routing_key: "" | ||
durable: false | ||
delete_when_unused: false | ||
exclusive: false | ||
nowait: false |
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,37 @@ | ||
/* | ||
Copyright 2021 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 sourcevhost | ||
|
||
import ( | ||
"context" | ||
|
||
"knative.dev/reconciler-test/pkg/environment" | ||
"knative.dev/reconciler-test/pkg/feature" | ||
"knative.dev/reconciler-test/pkg/manifest" | ||
) | ||
|
||
func init() { | ||
environment.RegisterPackage(manifest.ImagesLocalYaml()...) | ||
} | ||
|
||
func Install() feature.StepFn { | ||
return func(ctx context.Context, t feature.T) { | ||
if _, err := manifest.InstallLocalYaml(ctx, nil); err != nil { | ||
t.Fatal(err) | ||
} | ||
} | ||
} |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: needs a CR header ^^