From e9713a1d08a93e2be70c889c600ed89f54822b54 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 22 Jul 2021 18:05:31 +0300 Subject: Fix AMQP bugs, add more amqp tests Signed-off-by: Valery Piashchynski --- tests/plugins/jobs/amqp/.rr-amqp-declare.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/plugins/jobs/amqp/.rr-amqp-declare.yaml (limited to 'tests/plugins/jobs/amqp/.rr-amqp-declare.yaml') diff --git a/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml b/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml new file mode 100644 index 00000000..ed0345d6 --- /dev/null +++ b/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml @@ -0,0 +1,24 @@ +rpc: + listen: tcp://127.0.0.1:6001 + +server: + command: "php ../../client.php echo pipes" + relay: "pipes" + relay_timeout: "20s" + +amqp: + addr: amqp://guest:guest@localhost:5672/ + +logs: + level: debug + encoding: console + mode: development + +jobs: + num_pollers: 10 + pipeline_size: 100000 + pool: + num_workers: 10 + max_jobs: 0 + allocate_timeout: 60s + destroy_timeout: 60s -- cgit v1.2.3 From 3e2e9fbd9650c44d57a41a9dc702fe93aad2b77f Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 11 Aug 2021 11:45:24 +0300 Subject: Replace all 'localhost' with '127.0.0.1'. Fix default configuration and other small bugs. Signed-off-by: Valery Piashchynski --- tests/plugins/jobs/amqp/.rr-amqp-declare.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/plugins/jobs/amqp/.rr-amqp-declare.yaml') diff --git a/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml b/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml index ed0345d6..32883ce2 100644 --- a/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml +++ b/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml @@ -7,7 +7,7 @@ server: relay_timeout: "20s" amqp: - addr: amqp://guest:guest@localhost:5672/ + addr: amqp://guest:guest@127.0.0.1:5672/ logs: level: debug -- cgit v1.2.3 From 2d460062c97f9ad1e793831c54ae4d177dea83e8 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 11 Aug 2021 22:03:34 +0300 Subject: Durable requeue algo. Update AMQP and Beanstalk tests to use mock logger. Fix bugs discovered during testing. Signed-off-by: Valery Piashchynski --- tests/plugins/jobs/amqp/.rr-amqp-declare.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/plugins/jobs/amqp/.rr-amqp-declare.yaml') diff --git a/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml b/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml index 32883ce2..f9a7308b 100644 --- a/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml +++ b/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml @@ -2,7 +2,7 @@ rpc: listen: tcp://127.0.0.1:6001 server: - command: "php ../../client.php echo pipes" + command: "php ../../jobs_ok.php" relay: "pipes" relay_timeout: "20s" -- cgit v1.2.3