Sha256: 409d644c854a200dc0cc5f612c7161b6868a3dfe7f1741382552c475a3e27798

Contents?: true

Size: 951 Bytes

Versions: 6

Compression:

Stored size: 951 Bytes

Contents

# frozen_string_literal: true

module ZephyrRuby
  class Client
    module Resource
      # Operations related to Test Cycles
      module TestCycles
        def create_testcycle(body)
          post '/testcycles', body
        end

        def get_testcycle(testcycle_id)
          get "/testcycles/#{testcycle_id}"
        end

        def update_testcycle(testcycle_id, params = {})
          put "/testcycles/#{testcycle_id}", params
        end

        def list_testcycles(params = {})
          get '/testcycles', params
        end

        def get_testcycle_links(testcycle_id)
          get "/testcycles/#{testcycle_id}/links"
        end

        def create_testcycle_issue_link(testcycle_id, body)
          post "/testcycles/#{testcycle_id}/links/issues", body
        end

        def create_testcycle_web_link(testcycle_id, body)
          post "/testcycles/#{testcycle_id}/links/weblinks", 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_cycles.rb
zephyr_ruby-0.5.0 lib/zephyr_ruby/resource/test_cycles.rb
zephyr_ruby-0.4.0 lib/zephyr_ruby/resource/test_cycles.rb
zephyr_ruby-0.3.0 lib/zephyr_ruby/resource/test_cycles.rb
zephyr_ruby-0.2.0 lib/zephyr_ruby/resource/test_cycles.rb
zephyr_ruby-0.1.0 lib/zephyr_ruby/resource/test_cycles.rb