add ruby httpx echo api tests (#16729)

This commit is contained in:
William Cheng
2023-10-05 12:55:57 +08:00
committed by GitHub
parent c306ca3cf2
commit 6722f1300d
73 changed files with 8356 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
=begin
#Echo Server API
#Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.1.0-SNAPSHOT
=end
require 'spec_helper'
require 'json'
# Unit tests for OpenapiClient::AuthApi
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe 'AuthApi' do
before do
# run before each test
@api_instance = OpenapiClient::AuthApi.new
end
after do
# run after each test
end
describe 'test an instance of AuthApi' do
it 'should create an instance of AuthApi' do
expect(@api_instance).to be_instance_of(OpenapiClient::AuthApi)
end
end
# unit tests for test_auth_http_basic
# To test HTTP basic authentication
# To test HTTP basic authentication
# @param [Hash] opts the optional parameters
# @return [String]
describe 'test_auth_http_basic test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
end

View File

@@ -0,0 +1,118 @@
=begin
#Echo Server API
#Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.1.0-SNAPSHOT
=end
require 'spec_helper'
require 'json'
# Unit tests for OpenapiClient::BodyApi
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe 'BodyApi' do
before do
# run before each test
@api_instance = OpenapiClient::BodyApi.new
end
after do
# run after each test
end
describe 'test an instance of BodyApi' do
it 'should create an instance of BodyApi' do
expect(@api_instance).to be_instance_of(OpenapiClient::BodyApi)
end
end
# unit tests for test_binary_gif
# Test binary (gif) response body
# Test binary (gif) response body
# @param [Hash] opts the optional parameters
# @return [File]
describe 'test_binary_gif test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
# unit tests for test_body_application_octetstream_binary
# Test body parameter(s)
# Test body parameter(s)
# @param [Hash] opts the optional parameters
# @option opts [File] :body
# @return [String]
describe 'test_body_application_octetstream_binary test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
# unit tests for test_body_multipart_formdata_array_of_binary
# Test array of binary in multipart mime
# Test array of binary in multipart mime
# @param files
# @param [Hash] opts the optional parameters
# @return [String]
describe 'test_body_multipart_formdata_array_of_binary test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
# unit tests for test_echo_body_free_form_object_response_string
# Test free form object
# Test free form object
# @param [Hash] opts the optional parameters
# @option opts [Object] :body Free form object
# @return [String]
describe 'test_echo_body_free_form_object_response_string test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
# unit tests for test_echo_body_pet
# Test body parameter(s)
# Test body parameter(s)
# @param [Hash] opts the optional parameters
# @option opts [Pet] :pet Pet object that needs to be added to the store
# @return [Pet]
describe 'test_echo_body_pet test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
# unit tests for test_echo_body_pet_response_string
# Test empty response body
# Test empty response body
# @param [Hash] opts the optional parameters
# @option opts [Pet] :pet Pet object that needs to be added to the store
# @return [String]
describe 'test_echo_body_pet_response_string test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
# unit tests for test_echo_body_tag_response_string
# Test empty json (request body)
# Test empty json (request body)
# @param [Hash] opts the optional parameters
# @option opts [Tag] :tag Tag object
# @return [String]
describe 'test_echo_body_tag_response_string test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
end

View File

@@ -0,0 +1,66 @@
=begin
#Echo Server API
#Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.1.0-SNAPSHOT
=end
require 'spec_helper'
require 'json'
# Unit tests for OpenapiClient::FormApi
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe 'FormApi' do
before do
# run before each test
@api_instance = OpenapiClient::FormApi.new
end
after do
# run after each test
end
describe 'test an instance of FormApi' do
it 'should create an instance of FormApi' do
expect(@api_instance).to be_instance_of(OpenapiClient::FormApi)
end
end
# unit tests for test_form_integer_boolean_string
# Test form parameter(s)
# Test form parameter(s)
# @param [Hash] opts the optional parameters
# @option opts [Integer] :integer_form
# @option opts [Boolean] :boolean_form
# @option opts [String] :string_form
# @return [String]
describe 'test_form_integer_boolean_string test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
# unit tests for test_form_oneof
# Test form parameter(s) for oneOf schema
# Test form parameter(s) for oneOf schema
# @param [Hash] opts the optional parameters
# @option opts [String] :form1
# @option opts [Integer] :form2
# @option opts [String] :form3
# @option opts [Boolean] :form4
# @option opts [Integer] :id
# @option opts [String] :name
# @return [String]
describe 'test_form_oneof test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
end

View File

@@ -0,0 +1,49 @@
=begin
#Echo Server API
#Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.1.0-SNAPSHOT
=end
require 'spec_helper'
require 'json'
# Unit tests for OpenapiClient::HeaderApi
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe 'HeaderApi' do
before do
# run before each test
@api_instance = OpenapiClient::HeaderApi.new
end
after do
# run after each test
end
describe 'test an instance of HeaderApi' do
it 'should create an instance of HeaderApi' do
expect(@api_instance).to be_instance_of(OpenapiClient::HeaderApi)
end
end
# unit tests for test_header_integer_boolean_string
# Test header parameter(s)
# Test header parameter(s)
# @param [Hash] opts the optional parameters
# @option opts [Integer] :integer_header
# @option opts [Boolean] :boolean_header
# @option opts [String] :string_header
# @return [String]
describe 'test_header_integer_boolean_string test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
end

View File

@@ -0,0 +1,48 @@
=begin
#Echo Server API
#Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.1.0-SNAPSHOT
=end
require 'spec_helper'
require 'json'
# Unit tests for OpenapiClient::PathApi
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe 'PathApi' do
before do
# run before each test
@api_instance = OpenapiClient::PathApi.new
end
after do
# run after each test
end
describe 'test an instance of PathApi' do
it 'should create an instance of PathApi' do
expect(@api_instance).to be_instance_of(OpenapiClient::PathApi)
end
end
# unit tests for tests_path_string_path_string_integer_path_integer
# Test path parameter(s)
# Test path parameter(s)
# @param path_string
# @param path_integer
# @param [Hash] opts the optional parameters
# @return [String]
describe 'tests_path_string_path_string_integer_path_integer test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
end

View File

@@ -0,0 +1,135 @@
=begin
#Echo Server API
#Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.1.0-SNAPSHOT
=end
require 'spec_helper'
require 'json'
# Unit tests for OpenapiClient::QueryApi
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe 'QueryApi' do
before do
# run before each test
@api_instance = OpenapiClient::QueryApi.new
end
after do
# run after each test
end
describe 'test an instance of QueryApi' do
it 'should create an instance of QueryApi' do
expect(@api_instance).to be_instance_of(OpenapiClient::QueryApi)
end
end
# unit tests for test_enum_ref_string
# Test query parameter(s)
# Test query parameter(s)
# @param [Hash] opts the optional parameters
# @option opts [StringEnumRef] :enum_ref_string_query
# @return [String]
describe 'test_enum_ref_string test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
# unit tests for test_query_datetime_date_string
# Test query parameter(s)
# Test query parameter(s)
# @param [Hash] opts the optional parameters
# @option opts [Time] :datetime_query
# @option opts [Date] :date_query
# @option opts [String] :string_query
# @return [String]
describe 'test_query_datetime_date_string test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
# unit tests for test_query_integer_boolean_string
# Test query parameter(s)
# Test query parameter(s)
# @param [Hash] opts the optional parameters
# @option opts [Integer] :integer_query
# @option opts [Boolean] :boolean_query
# @option opts [String] :string_query
# @return [String]
describe 'test_query_integer_boolean_string test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
# unit tests for test_query_style_deep_object_explode_true_object
# Test query parameter(s)
# Test query parameter(s)
# @param [Hash] opts the optional parameters
# @option opts [Pet] :query_object
# @return [String]
describe 'test_query_style_deep_object_explode_true_object test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
# unit tests for test_query_style_deep_object_explode_true_object_all_of
# Test query parameter(s)
# Test query parameter(s)
# @param [Hash] opts the optional parameters
# @option opts [TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter] :query_object
# @return [String]
describe 'test_query_style_deep_object_explode_true_object_all_of test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
# unit tests for test_query_style_form_explode_true_array_string
# Test query parameter(s)
# Test query parameter(s)
# @param [Hash] opts the optional parameters
# @option opts [TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter] :query_object
# @return [String]
describe 'test_query_style_form_explode_true_array_string test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
# unit tests for test_query_style_form_explode_true_object
# Test query parameter(s)
# Test query parameter(s)
# @param [Hash] opts the optional parameters
# @option opts [Pet] :query_object
# @return [String]
describe 'test_query_style_form_explode_true_object test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
# unit tests for test_query_style_form_explode_true_object_all_of
# Test query parameter(s)
# Test query parameter(s)
# @param [Hash] opts the optional parameters
# @option opts [DataQuery] :query_object
# @return [String]
describe 'test_query_style_form_explode_true_object_all_of test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
end