From ef0aef28d75a12f4d41a6f954138b99edec4e220 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 21 Sep 2025 17:02:14 +0800 Subject: [PATCH] use 127.0.0.1 --- ...ore-with-fake-endpoints-models-for-testing.yaml | 6 +++--- .../petstore/ruby-faraday/.openapi-generator/FILES | 8 -------- samples/client/petstore/ruby-faraday/README.md | 2 +- .../petstore/ruby-faraday/docs/AnotherFakeApi.md | 2 +- .../petstore/ruby-faraday/docs/DefaultApi.md | 2 +- .../client/petstore/ruby-faraday/docs/FakeApi.md | 2 +- .../ruby-faraday/docs/FakeClassnameTags123Api.md | 2 +- .../client/petstore/ruby-faraday/docs/PetApi.md | 2 +- .../client/petstore/ruby-faraday/docs/StoreApi.md | 2 +- .../client/petstore/ruby-faraday/docs/UserApi.md | 2 +- .../ruby-faraday/lib/petstore/configuration.rb | 14 +++++++------- samples/client/petstore/ruby-httpx/README.md | 2 +- .../petstore/ruby-httpx/docs/AnotherFakeApi.md | 2 +- .../client/petstore/ruby-httpx/docs/DefaultApi.md | 2 +- samples/client/petstore/ruby-httpx/docs/FakeApi.md | 2 +- .../ruby-httpx/docs/FakeClassnameTags123Api.md | 2 +- samples/client/petstore/ruby-httpx/docs/PetApi.md | 2 +- .../client/petstore/ruby-httpx/docs/StoreApi.md | 2 +- samples/client/petstore/ruby-httpx/docs/UserApi.md | 2 +- .../ruby-httpx/lib/petstore/configuration.rb | 14 +++++++------- samples/client/petstore/ruby/README.md | 2 +- .../client/petstore/ruby/docs/AnotherFakeApi.md | 2 +- samples/client/petstore/ruby/docs/DefaultApi.md | 2 +- samples/client/petstore/ruby/docs/FakeApi.md | 2 +- .../petstore/ruby/docs/FakeClassnameTags123Api.md | 2 +- samples/client/petstore/ruby/docs/PetApi.md | 2 +- samples/client/petstore/ruby/docs/StoreApi.md | 2 +- samples/client/petstore/ruby/docs/UserApi.md | 2 +- .../petstore/ruby/lib/petstore/configuration.rb | 14 +++++++------- .../ruby/spec/custom/configuration_spec.rb | 4 ++-- 30 files changed, 50 insertions(+), 58 deletions(-) diff --git a/modules/openapi-generator/src/test/resources/3_0/ruby/petstore-with-fake-endpoints-models-for-testing.yaml b/modules/openapi-generator/src/test/resources/3_0/ruby/petstore-with-fake-endpoints-models-for-testing.yaml index 5bddaf3cfcea..48bce1c4cc35 100644 --- a/modules/openapi-generator/src/test/resources/3_0/ruby/petstore-with-fake-endpoints-models-for-testing.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/ruby/petstore-with-fake-endpoints-models-for-testing.yaml @@ -31,7 +31,7 @@ paths: $ref: '#/components/schemas/Foo' /pet: servers: - - url: 'http://localhost/v2' + - url: 'http://127.0.0.1/v2' - url: 'http://petstore.swagger.io/v2' - url: 'http://path-server-test.petstore.local/v2' - url: 'http://{server}.swagger.io:{port}/v2' @@ -189,7 +189,7 @@ paths: deprecated: true '/pet/{petId}': servers: - - url: 'http://localhost/v2' + - url: 'http://127.0.0.1/v2' - url: 'http://petstore.swagger.io/v2' - url: 'http://path-server-test.petstore.local/v2' - url: 'http://{server}.swagger.io:{port}/v2' @@ -1360,7 +1360,7 @@ paths: 200: description: OK servers: - - url: 'http://localhost/v2' + - url: 'http://127.0.0.1/v2' - url: 'http://{server}.swagger.io:{port}/v2' description: petstore server variables: diff --git a/samples/client/petstore/ruby-faraday/.openapi-generator/FILES b/samples/client/petstore/ruby-faraday/.openapi-generator/FILES index 4159374bb74d..fa488c13b2d9 100644 --- a/samples/client/petstore/ruby-faraday/.openapi-generator/FILES +++ b/samples/client/petstore/ruby-faraday/.openapi-generator/FILES @@ -139,12 +139,4 @@ lib/petstore/models/whale.rb lib/petstore/models/zebra.rb lib/petstore/version.rb petstore.gemspec -spec/models/cow_spec.rb -spec/models/mammal_anyof_spec.rb -spec/models/mammal_spec.rb -spec/models/mammal_without_discriminator_spec.rb -spec/models/one_of_primitive_types_spec.rb -spec/models/property_name_mapping_spec.rb -spec/models/whale_spec.rb -spec/models/zebra_spec.rb spec/spec_helper.rb diff --git a/samples/client/petstore/ruby-faraday/README.md b/samples/client/petstore/ruby-faraday/README.md index ede4e77f7529..4f5937d0e770 100644 --- a/samples/client/petstore/ruby-faraday/README.md +++ b/samples/client/petstore/ruby-faraday/README.md @@ -72,7 +72,7 @@ end ## Documentation for API Endpoints -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/ruby-faraday/docs/AnotherFakeApi.md b/samples/client/petstore/ruby-faraday/docs/AnotherFakeApi.md index 958074809225..3bd6902268df 100644 --- a/samples/client/petstore/ruby-faraday/docs/AnotherFakeApi.md +++ b/samples/client/petstore/ruby-faraday/docs/AnotherFakeApi.md @@ -1,6 +1,6 @@ # Petstore::AnotherFakeApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby-faraday/docs/DefaultApi.md b/samples/client/petstore/ruby-faraday/docs/DefaultApi.md index cffdce1f8060..6fe3bf4db19d 100644 --- a/samples/client/petstore/ruby-faraday/docs/DefaultApi.md +++ b/samples/client/petstore/ruby-faraday/docs/DefaultApi.md @@ -1,6 +1,6 @@ # Petstore::DefaultApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby-faraday/docs/FakeApi.md b/samples/client/petstore/ruby-faraday/docs/FakeApi.md index ad4bb256e339..171e3d6e8b56 100644 --- a/samples/client/petstore/ruby-faraday/docs/FakeApi.md +++ b/samples/client/petstore/ruby-faraday/docs/FakeApi.md @@ -1,6 +1,6 @@ # Petstore::FakeApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby-faraday/docs/FakeClassnameTags123Api.md b/samples/client/petstore/ruby-faraday/docs/FakeClassnameTags123Api.md index 770127d28bd7..44ec0be720d1 100644 --- a/samples/client/petstore/ruby-faraday/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/ruby-faraday/docs/FakeClassnameTags123Api.md @@ -1,6 +1,6 @@ # Petstore::FakeClassnameTags123Api -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby-faraday/docs/PetApi.md b/samples/client/petstore/ruby-faraday/docs/PetApi.md index 3e1586aab72e..ec1a1a763fb5 100644 --- a/samples/client/petstore/ruby-faraday/docs/PetApi.md +++ b/samples/client/petstore/ruby-faraday/docs/PetApi.md @@ -1,6 +1,6 @@ # Petstore::PetApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby-faraday/docs/StoreApi.md b/samples/client/petstore/ruby-faraday/docs/StoreApi.md index 144421ea306d..3c6dad2ecd78 100644 --- a/samples/client/petstore/ruby-faraday/docs/StoreApi.md +++ b/samples/client/petstore/ruby-faraday/docs/StoreApi.md @@ -1,6 +1,6 @@ # Petstore::StoreApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby-faraday/docs/UserApi.md b/samples/client/petstore/ruby-faraday/docs/UserApi.md index e740c84292fa..4a1d2af0e8bc 100644 --- a/samples/client/petstore/ruby-faraday/docs/UserApi.md +++ b/samples/client/petstore/ruby-faraday/docs/UserApi.md @@ -1,6 +1,6 @@ # Petstore::UserApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/configuration.rb b/samples/client/petstore/ruby-faraday/lib/petstore/configuration.rb index d7314a93d370..46752597e371 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/configuration.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/configuration.rb @@ -157,7 +157,7 @@ module Petstore def initialize @scheme = 'http' - @host = 'localhost' + @host = '127.0.0.1' @base_path = '/v2' @server_index = nil @server_operation_index = {} @@ -291,7 +291,7 @@ module Petstore def server_settings [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -356,7 +356,7 @@ module Petstore { "PetApi.add_pet": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -407,7 +407,7 @@ module Petstore ], "PetApi.delete_pet": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -458,7 +458,7 @@ module Petstore ], "PetApi.get_pet_by_id": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -509,7 +509,7 @@ module Petstore ], "PetApi.update_pet": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -560,7 +560,7 @@ module Petstore ], "PetApi.update_pet_with_form": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { diff --git a/samples/client/petstore/ruby-httpx/README.md b/samples/client/petstore/ruby-httpx/README.md index ede4e77f7529..4f5937d0e770 100644 --- a/samples/client/petstore/ruby-httpx/README.md +++ b/samples/client/petstore/ruby-httpx/README.md @@ -72,7 +72,7 @@ end ## Documentation for API Endpoints -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/ruby-httpx/docs/AnotherFakeApi.md b/samples/client/petstore/ruby-httpx/docs/AnotherFakeApi.md index 958074809225..3bd6902268df 100644 --- a/samples/client/petstore/ruby-httpx/docs/AnotherFakeApi.md +++ b/samples/client/petstore/ruby-httpx/docs/AnotherFakeApi.md @@ -1,6 +1,6 @@ # Petstore::AnotherFakeApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby-httpx/docs/DefaultApi.md b/samples/client/petstore/ruby-httpx/docs/DefaultApi.md index cffdce1f8060..6fe3bf4db19d 100644 --- a/samples/client/petstore/ruby-httpx/docs/DefaultApi.md +++ b/samples/client/petstore/ruby-httpx/docs/DefaultApi.md @@ -1,6 +1,6 @@ # Petstore::DefaultApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby-httpx/docs/FakeApi.md b/samples/client/petstore/ruby-httpx/docs/FakeApi.md index ad4bb256e339..171e3d6e8b56 100644 --- a/samples/client/petstore/ruby-httpx/docs/FakeApi.md +++ b/samples/client/petstore/ruby-httpx/docs/FakeApi.md @@ -1,6 +1,6 @@ # Petstore::FakeApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby-httpx/docs/FakeClassnameTags123Api.md b/samples/client/petstore/ruby-httpx/docs/FakeClassnameTags123Api.md index 770127d28bd7..44ec0be720d1 100644 --- a/samples/client/petstore/ruby-httpx/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/ruby-httpx/docs/FakeClassnameTags123Api.md @@ -1,6 +1,6 @@ # Petstore::FakeClassnameTags123Api -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby-httpx/docs/PetApi.md b/samples/client/petstore/ruby-httpx/docs/PetApi.md index 3e1586aab72e..ec1a1a763fb5 100644 --- a/samples/client/petstore/ruby-httpx/docs/PetApi.md +++ b/samples/client/petstore/ruby-httpx/docs/PetApi.md @@ -1,6 +1,6 @@ # Petstore::PetApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby-httpx/docs/StoreApi.md b/samples/client/petstore/ruby-httpx/docs/StoreApi.md index 144421ea306d..3c6dad2ecd78 100644 --- a/samples/client/petstore/ruby-httpx/docs/StoreApi.md +++ b/samples/client/petstore/ruby-httpx/docs/StoreApi.md @@ -1,6 +1,6 @@ # Petstore::StoreApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby-httpx/docs/UserApi.md b/samples/client/petstore/ruby-httpx/docs/UserApi.md index e740c84292fa..4a1d2af0e8bc 100644 --- a/samples/client/petstore/ruby-httpx/docs/UserApi.md +++ b/samples/client/petstore/ruby-httpx/docs/UserApi.md @@ -1,6 +1,6 @@ # Petstore::UserApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/configuration.rb b/samples/client/petstore/ruby-httpx/lib/petstore/configuration.rb index 20e6e7ab3f23..03825b0cc798 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/configuration.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/configuration.rb @@ -128,7 +128,7 @@ module Petstore def initialize @scheme = 'http' - @host = 'localhost' + @host = '127.0.0.1' @base_path = '/v2' @server_index = nil @server_operation_index = {} @@ -255,7 +255,7 @@ module Petstore def server_settings [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -320,7 +320,7 @@ module Petstore { "PetApi.add_pet": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -371,7 +371,7 @@ module Petstore ], "PetApi.delete_pet": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -422,7 +422,7 @@ module Petstore ], "PetApi.get_pet_by_id": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -473,7 +473,7 @@ module Petstore ], "PetApi.update_pet": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -524,7 +524,7 @@ module Petstore ], "PetApi.update_pet_with_form": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { diff --git a/samples/client/petstore/ruby/README.md b/samples/client/petstore/ruby/README.md index ede4e77f7529..4f5937d0e770 100644 --- a/samples/client/petstore/ruby/README.md +++ b/samples/client/petstore/ruby/README.md @@ -72,7 +72,7 @@ end ## Documentation for API Endpoints -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/ruby/docs/AnotherFakeApi.md b/samples/client/petstore/ruby/docs/AnotherFakeApi.md index 958074809225..3bd6902268df 100644 --- a/samples/client/petstore/ruby/docs/AnotherFakeApi.md +++ b/samples/client/petstore/ruby/docs/AnotherFakeApi.md @@ -1,6 +1,6 @@ # Petstore::AnotherFakeApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby/docs/DefaultApi.md b/samples/client/petstore/ruby/docs/DefaultApi.md index cffdce1f8060..6fe3bf4db19d 100644 --- a/samples/client/petstore/ruby/docs/DefaultApi.md +++ b/samples/client/petstore/ruby/docs/DefaultApi.md @@ -1,6 +1,6 @@ # Petstore::DefaultApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby/docs/FakeApi.md b/samples/client/petstore/ruby/docs/FakeApi.md index bb4542988bb9..5169a58a1dac 100644 --- a/samples/client/petstore/ruby/docs/FakeApi.md +++ b/samples/client/petstore/ruby/docs/FakeApi.md @@ -1,6 +1,6 @@ # Petstore::FakeApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby/docs/FakeClassnameTags123Api.md b/samples/client/petstore/ruby/docs/FakeClassnameTags123Api.md index 770127d28bd7..44ec0be720d1 100644 --- a/samples/client/petstore/ruby/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/ruby/docs/FakeClassnameTags123Api.md @@ -1,6 +1,6 @@ # Petstore::FakeClassnameTags123Api -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby/docs/PetApi.md b/samples/client/petstore/ruby/docs/PetApi.md index 3e1586aab72e..ec1a1a763fb5 100644 --- a/samples/client/petstore/ruby/docs/PetApi.md +++ b/samples/client/petstore/ruby/docs/PetApi.md @@ -1,6 +1,6 @@ # Petstore::PetApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby/docs/StoreApi.md b/samples/client/petstore/ruby/docs/StoreApi.md index 144421ea306d..3c6dad2ecd78 100644 --- a/samples/client/petstore/ruby/docs/StoreApi.md +++ b/samples/client/petstore/ruby/docs/StoreApi.md @@ -1,6 +1,6 @@ # Petstore::StoreApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby/docs/UserApi.md b/samples/client/petstore/ruby/docs/UserApi.md index e740c84292fa..4a1d2af0e8bc 100644 --- a/samples/client/petstore/ruby/docs/UserApi.md +++ b/samples/client/petstore/ruby/docs/UserApi.md @@ -1,6 +1,6 @@ # Petstore::UserApi -All URIs are relative to *http://localhost/v2* +All URIs are relative to *http://127.0.0.1/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | diff --git a/samples/client/petstore/ruby/lib/petstore/configuration.rb b/samples/client/petstore/ruby/lib/petstore/configuration.rb index 519cf11226c8..aa95c605f065 100644 --- a/samples/client/petstore/ruby/lib/petstore/configuration.rb +++ b/samples/client/petstore/ruby/lib/petstore/configuration.rb @@ -158,7 +158,7 @@ module Petstore def initialize @scheme = 'http' - @host = 'localhost' + @host = '127.0.0.1' @base_path = '/v2' @server_index = nil @server_operation_index = {} @@ -287,7 +287,7 @@ module Petstore def server_settings [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -352,7 +352,7 @@ module Petstore { "PetApi.add_pet": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -403,7 +403,7 @@ module Petstore ], "PetApi.delete_pet": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -454,7 +454,7 @@ module Petstore ], "PetApi.get_pet_by_id": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -505,7 +505,7 @@ module Petstore ], "PetApi.update_pet": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { @@ -556,7 +556,7 @@ module Petstore ], "PetApi.update_pet_with_form": [ { - url: "http://localhost/v2", + url: "http://127.0.0.1/v2", description: "No description provided", }, { diff --git a/samples/client/petstore/ruby/spec/custom/configuration_spec.rb b/samples/client/petstore/ruby/spec/custom/configuration_spec.rb index 7dce888f0e97..b1af32e8a8cc 100644 --- a/samples/client/petstore/ruby/spec/custom/configuration_spec.rb +++ b/samples/client/petstore/ruby/spec/custom/configuration_spec.rb @@ -66,11 +66,11 @@ describe Petstore::Configuration do it 'throws argument error when attempting to use a server index that is out of bounds' do config.server_operation_index = { - :'PetApi.add_pet' => 10 + :'PetApi.add_pet' => 11 } expect { config.base_url(:'PetApi.add_pet') - }.to raise_error(ArgumentError, 'Invalid index 10 when selecting the server. Must not be nil and must be less than 4') + }.to raise_error(ArgumentError, 'Invalid index 11 when selecting the server. Must not be nil and must be less than 4') end it 'should remove trailing slashes' do