Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated automations endpoints to support file uploads and removed dup route #6

Merged
merged 3 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading