Skip to content

Commit

Permalink
Updated automations endpoints to support file uploads and removed dup…
Browse files Browse the repository at this point in the history
… route (#6)

* updated ownership

* updated supported for sending files to the automations endpoint

* removed dup route

---------

Co-authored-by: Chris Davis <[email protected]>
  • Loading branch information
cdaviis and Chris Davis authored Aug 14, 2024
1 parent 2c11015 commit b4b90ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
12 changes: 6 additions & 6 deletions lib/zephyr_ruby/resource/automations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ class Client
module Resource
# Operations related to Automations
module Automations
def create_automation_custom(body)
post '/automations/executions/custom', body
def create_automation_custom(body, file_path = nil)
post '/automations/executions/custom', body, file_path
end

def create_automation_cucumber(body)
post '/automations/executions/cucumber', body
def create_automation_cucumber(body, file_path = nil)
post '/automations/executions/cucumber', body, file_path
end

def create_automation_junit(body)
post '/automations/executions/junit', body
def create_automation_junit(body, file_path = nil)
post '/automations/executions/junit', body, file_path
end

def get_zip_file(params = {})
Expand Down
4 changes: 0 additions & 4 deletions lib/zephyr_ruby/resource/test_executions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ def sync_test_execution(test_execution_id)
post "/testexecutions/#{test_execution_id}/teststeps/sync"
end

def get_test_execution_links(test_execution_id)
get "/testexecutions/#{test_execution_id}/links"
end

def create_test_execution_issue_link(test_execution_id, body)
post "/testexecutions/#{test_execution_id}/links/issues", body
end
Expand Down

0 comments on commit b4b90ab

Please sign in to comment.