Skip to content

Commit

Permalink
Update test spec to use "localhost" instead (OpenAPITools#1300)
Browse files Browse the repository at this point in the history
* update test spec to use localhost intead

* add new files
  • Loading branch information
wing328 committed Oct 24, 2018
1 parent 3d7a019 commit 76aedca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -994,8 +994,8 @@ servers:
- 80
- 8080
default: 80
- url: https://api.gigantic-server.com:8080/{version}
description: The production API server
- url: https://localhost:8080/{version}
description: The local server
variables:
version:
enum:
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/ruby/lib/petstore/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ def server_settings
}
},
{
url: "https://api.gigantic-server.com:8080/{version}",
description: "The production API server",
url: "https://localhost:8080/{version}",
description: "The local server",
variables: {
version: {
description: "No descriptoin provided",
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/ruby/spec/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@

it 'should get the second url with default values' do
url = config.server_url(1)
expect(url).to eq("https://api.gigantic-server.com:8080/v2")
expect(url).to eq("https://localhost:8080/v2")
end

it 'should get the second url' do
url = config.server_url(1, version: "v1")
expect(url).to eq("https://api.gigantic-server.com:8080/v1")
expect(url).to eq("https://localhost:8080/v1")
end

it 'should raise error due to invalid enum value' do
Expand Down

0 comments on commit 76aedca

Please sign in to comment.