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 support for sending files to the automations endpoint #2

Merged
merged 6 commits into from
Aug 14, 2024

Conversation

cdaviis
Copy link
Owner

@cdaviis cdaviis commented Aug 14, 2024

This pull request includes several changes to improve the functionality and compatibility of the Zephyr Ruby client, as well as updates to documentation and configuration files. The most important changes include adding support for file uploads, updating dependencies, and enhancing the API client.

Enhancements to the Zephyr Ruby client:

  • lib/zephyr_ruby/client.rb: Added faraday/multipart to support multipart requests and updated the Faraday client initialization to handle multipart and URL-encoded requests. [1] [2]
  • lib/zephyr_ruby/connection.rb: Modified the post method to support file uploads by detecting the MIME type and using Faraday::UploadIO for file handling.
  • lib/zephyr_ruby/resource/test_executions.rb: Added new methods to manage test steps and execution links, including get_test_steps, update_test_steps, sync_test_execution, get_test_execution_links, and create_test_execution_issue_link.

Updates to dependencies and configuration:

  • .rubocop.yml: Updated RuboCop configuration to set the maximum method length to 13 and target Ruby version to 3.0.
  • zephyr_ruby.gemspec: Updated the required Ruby version to 3.0 and changed the homepage URL. Removed unnecessary comments. [1] [2]

Documentation improvements:

  • README.md: Updated the usage section to provide clearer instructions on setting up the API access token and client instantiation, and added a link to the official REST API documentation.

Version update:

@cdaviis cdaviis merged commit d06957c into main Aug 14, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants