Sha256: cfed07bd08666212c657e31284c8aaa70f73c3ffd51a2606cacedbb9c41f51b1

Contents?: true

Size: 845 Bytes

Versions: 6

Compression:

Stored size: 845 Bytes

Contents

# frozen_string_literal: true

module ZephyrRuby
  class Client
    module Resource
      # Operations related to Test Plans
      module TestPlans
        def create_testplan(body)
          post '/testplans', body
        end

        def get_testplan(testplan_id)
          get "/testplans/#{testplan_id}"
        end

        def list_testplans(params = {})
          get '/testplans', params
        end

        def create_testplan_weblink(testplan_id, body)
          post "/testplans/#{testplan_id}/links/weblinks", body
        end

        def create_testplan_issuelink(testplan_id, body)
          post "/testplans/#{testplan_id}/links/issuelink", body
        end

        def create_testplan_testcycle_link(testplan_id, body)
          post "/testplans/#{testplan_id}/links/testcycles", body
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zephyr_ruby-0.5.1 lib/zephyr_ruby/resource/test_plans.rb
zephyr_ruby-0.5.0 lib/zephyr_ruby/resource/test_plans.rb
zephyr_ruby-0.4.0 lib/zephyr_ruby/resource/test_plans.rb
zephyr_ruby-0.3.0 lib/zephyr_ruby/resource/test_plans.rb
zephyr_ruby-0.2.0 lib/zephyr_ruby/resource/test_plans.rb
zephyr_ruby-0.1.0 lib/zephyr_ruby/resource/test_plans.rb