diff options
-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", |