diff options
author | Valery Piashchynski <[email protected]> | 2021-08-20 11:52:57 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-20 11:52:57 +0300 |
commit | 7c155577ee9f7a4c19bd8aa04d7b44f908f0b5e7 (patch) | |
tree | 16b9c534a0b756010e3929fb753f404f26507069 | |
parent | d2a1168e78428f4327ed4cdfe80991f75b34d4f5 (diff) |
Correct AMQP Declare RPC constants
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r-- | plugins/jobs/drivers/amqp/config.go | 4 | ||||
-rw-r--r-- | tests/plugins/jobs/jobs_amqp_test.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/jobs/drivers/amqp/config.go b/plugins/jobs/drivers/amqp/config.go index c5e985a5..1ec089f1 100644 --- a/plugins/jobs/drivers/amqp/config.go +++ b/plugins/jobs/drivers/amqp/config.go @@ -3,9 +3,9 @@ package amqp // pipeline rabbitmq info const ( exchangeKey string = "exchange" - exchangeType string = "exchange-type" + exchangeType string = "exchange_type" queue string = "queue" - routingKey string = "routing-key" + routingKey string = "routing_key" prefetch string = "prefetch" exclusive string = "exclusive" priority string = "priority" diff --git a/tests/plugins/jobs/jobs_amqp_test.go b/tests/plugins/jobs/jobs_amqp_test.go index d3a92253..48d6515d 100644 --- a/tests/plugins/jobs/jobs_amqp_test.go +++ b/tests/plugins/jobs/jobs_amqp_test.go @@ -482,9 +482,9 @@ func declareAMQPPipe(t *testing.T) { pipe := &jobsv1beta.DeclareRequest{Pipeline: map[string]string{ "driver": "amqp", "name": "test-3", - "routing-key": "test-3", + "routing_key": "test-3", "queue": "default", - "exchange-type": "direct", + "exchange_type": "direct", "exchange": "amqp.default", "prefetch": "100", "priority": "3", |