Skip to content
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

Added conformance tests for rabbitmq bindings #1910

Merged
merged 2 commits into from
Jul 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
- bindings.mqtt-mosquitto
- bindings.mqtt-vernemq
- bindings.redis
- bindings.rabbitmq
- pubsub.aws.snssqs
- pubsub.hazelcast
- pubsub.in-memory
Expand Down
27 changes: 27 additions & 0 deletions tests/config/bindings/rabbitmq/bindings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: binding-topic
namespace: default
spec:
type: bindings.rabbitmq
version: v1
metadata:
- name: queueName
value: queue1
- name: host
value: "amqp://localhost:5672"
- name: durable
value: true
- name: deleteWhenUnused
value: false
- name: ttlInSeconds
value: 60
- name: prefetchCount
value: 0
- name: exclusive
value: false
- name: maxPriority
value: 5
- name: contentType
value: "text/plain"
4 changes: 4 additions & 0 deletions tests/config/bindings/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ components:
- component: mqtt
profile: vernemq
operations: ["create", "operations", "read"]
- component: rabbitmq
operations: ["create", "operations", "read"]
config:
checkInOrderProcessing: false
5 changes: 5 additions & 0 deletions tests/conformance/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import (
b_influx "github.com/dapr/components-contrib/bindings/influx"
b_kafka "github.com/dapr/components-contrib/bindings/kafka"
b_mqtt "github.com/dapr/components-contrib/bindings/mqtt"
b_rabbitmq "github.com/dapr/components-contrib/bindings/rabbitmq"
b_redis "github.com/dapr/components-contrib/bindings/redis"
p_snssqs "github.com/dapr/components-contrib/pubsub/aws/snssqs"
p_eventhubs "github.com/dapr/components-contrib/pubsub/azure/eventhubs"
Expand Down Expand Up @@ -463,6 +464,8 @@ func loadOutputBindings(tc TestComponent) bindings.OutputBinding {
binding = b_influx.NewInflux(testLogger)
case mqtt:
binding = b_mqtt.NewMQTT(testLogger)
case "rabbitmq":
binding = b_rabbitmq.NewRabbitMQ(testLogger)
default:
return nil
}
Expand All @@ -486,6 +489,8 @@ func loadInputBindings(tc TestComponent) bindings.InputBinding {
binding = b_kafka.NewKafka(testLogger)
case mqtt:
binding = b_mqtt.NewMQTT(testLogger)
case "rabbitmq":
binding = b_rabbitmq.NewRabbitMQ(testLogger)
default:
return nil
}
Expand Down