Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add release test points for the plugin

  • Loading branch information...
commit abff893eaab35186e077eba80bb887753dc0fa0a 1 parent 79736df
Hemant Kumar authored
Showing with 15 additions and 80 deletions.
  1. +0 −80 examples/clean_api.rb
  2. +15 −0 test_points.org
80 examples/clean_api.rb
View
@@ -1,80 +0,0 @@
-# To execute task without a job key
-# Current API
-MiddleMan.ask_work(:worker => :foo_worker, :worker_method => :some_work, :data => "Hello World")
-
-# new API
-worker = MiddleMan.worker(:foo_worker)
-worker.some_work("hello World")
-
-# to execute task in single step
-MiddleMan.worker(:foo_worker).some_work("hello World")
-
-
-# To start a worker
-
-# current API
-MiddleMan.new_worker(:worker => :foo_worker, :job_key => "wow",:data => "Hello World")
-
-# new API
-worker = MiddelMan.new_worker(:foo_worker,:job_key => "Wow",:data => "Wow man",\
- :schedule => { :hello_world => { :trigger_args => "*/5 * * * * * *",:data => "hello_world" }})
-
-worker.hello_world("Wow man")
-worker.delete
-
-# to Ask status
-# Current API
-MiddleMan.ask_status(:worker => :foo_worker)
-
-# new API
-MiddleMan.worker(:foo_worker).ask_status
-
-# To delete a worker
-worker = MiddleMan.worker(:foo_worker,:job_key => "Hello World")
-worker.delete
-
-# To delete a worker in single Step
-MiddleMan.worker(:foo_worker,:job_key => "Hello World").delete
-
-# to Use send_request, idea # 1
-worker = MiddleMan.worker(:foo_worker,:job_key => "Hello World")
-worker.some_work(:block => true, :args => "Hello World")
-
-# To use send_request, idea # 2
-worker = MiddleMan.worker(:foo_worker,:job_key => "Hello World")
-worker.fetch(:some_work,:args => "Hello World")
-
-# To use send_request idea # 3
-worker = MiddleMan.worker(:foo_worker,:job_key => "Hello World")
-worker.some_work(:block => true, :data => "Hello World")
-
-
-# To use send_request in one line
-MiddleMan.worker(:foo_worker,:job_key => "Hello_world").fetch(:some_work, :args => "Hello World")
-
-# To use send_request in one line using idea # 3
-MiddleMan.worker(:foo_worker,:job_key => "foo").some_work(:block => true,:data => "Hello_world ")
-
-# To use send_request on one line using idea #4
-MiddleMan.worker(:foo_worker,:job_key => "foo").some_work("Hello World", true)
-
-# Current send_request API
-MiddleMan.send_request(:worker => :foo_worker,:job_key => "Hello World",:worker_method => :some_work,:data => "Hello_world")
-
-# To use worker_info methods
-
-# Current API
-MiddleMan.worker_info(:worker => :foo_worker)
-
-MiddleMan.all_worker_info
-
-# New API
-# For above case old API looks good enough
-
-
-
-
-
-
-
-# For enabling reloading of workers when schedules are ready.
15 test_points.org
View
@@ -0,0 +1,15 @@
+* Before publishing any release, please make sure that following things are working *
+** Scheduling via cron is working
+** Scheduling via unix scheduler is working
+** creating a worker using job_key is working
+** Creating a worker and its scheduling is working
+** ask_work is working
+** send_request is working
+** all_worker_info is workign
+** status retrieval is working
+** sending of large objects around is working
+** sending of rails AR objects is working
+** sending of rails AR objects with plugin is working
+
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.