From ca00933b7094642f218d428bf663f99f9c5e524d Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 18 Dec 2015 11:56:32 +0200 Subject: Removed references and support for beanstalkd. The beanstalkd queue used to be used in the past, and we later added support for Redis via a simple abstraction layer. But now we've no longer tested and used beanstalkd for over a year, and the client-libraries are no longer available as native Debian packages. With that in mind we've excised the code, although left the abstraction-class in-place. --- t/test-custodian-queue.rb | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) (limited to 't/test-custodian-queue.rb') diff --git a/t/test-custodian-queue.rb b/t/test-custodian-queue.rb index bcd615c..d9145c8 100755 --- a/t/test-custodian-queue.rb +++ b/t/test-custodian-queue.rb @@ -31,26 +31,13 @@ class TestCustodianQueue < Test::Unit::TestCase end - - # - # Test that creating an unknown type throws an exception. + # Test we can create and use a Redis queue. # - def test_unknown - - # creation will fail - assert_raise RuntimeError do - t = Custodian::QueueType.create('foo') - end - - end - - - def test_redis q = nil assert_nothing_raised do - q = Custodian::QueueType.create('redis') + q = Custodian::RedisQueueType.new() end # @@ -65,22 +52,4 @@ class TestCustodianQueue < Test::Unit::TestCase end - def test_beanstalkd - q = nil - assert_nothing_raised do - q = Custodian::QueueType.create('redis') - end - - # - # here we're testing we've got a derived class that has - # implemented the methods "size?" & "flush!" - # - assert_nothing_raised do - q.size? - q.flush! - end - - - end - end -- cgit v1.2.1