Skip to content

Commit

Permalink
Trial to change listen port
Browse files Browse the repository at this point in the history
  • Loading branch information
parroty committed Jan 28, 2022
1 parent 110bd35 commit 6d52417
Show file tree
Hide file tree
Showing 32 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -240,7 +240,7 @@ headers and blanks out it's value with `***`.
test "replace sensitive data in request header" do
ExVCR.Config.filter_request_headers("X-My-Secret-Token")
use_cassette "sensitive_data_in_request_header" do
body = HTTPoison.get!("http://localhost:34000/server?", ["X-My-Secret-Token": "my-secret-token"]).body
body = HTTPoison.get!("http://localhost:35000/server?", ["X-My-Secret-Token": "my-secret-token"]).body
assert body == "test_response"
end

Expand Down Expand Up @@ -280,7 +280,7 @@ test "filter url param flag removes url params when recording cassettes" do
ExVCR.Config.filter_url_params(true)
use_cassette "example_ignore_url_params" do
assert HTTPotion.get(
"http://localhost:34000/server?should_not_be_contained", []).body =~ ~r/test_response/
"http://localhost:35000/server?should_not_be_contained", []).body =~ ~r/test_response/
end
json = File.read!("#{__DIR__}/../#{@dummy_cassette_dir}/example_ignore_url_params.json")
refute String.contains?(json, "should_not_be_contained")
Expand Down
2 changes: 1 addition & 1 deletion fixture/vcr_cassettes/different_headers_off.json
Expand Up @@ -8,7 +8,7 @@
"method": "post",
"options": [],
"request_body": "",
"url": "http://localhost:34006/server"
"url": "http://localhost:35006/server"
},
"response": {
"body": "test_response_before",
Expand Down
4 changes: 2 additions & 2 deletions fixture/vcr_cassettes/different_headers_on.json
Expand Up @@ -8,7 +8,7 @@
"method": "post",
"options": [],
"request_body": "",
"url": "http://localhost:34006/server"
"url": "http://localhost:35006/server"
},
"response": {
"body": "test_response_before",
Expand All @@ -31,7 +31,7 @@
"method": "post",
"options": [],
"request_body": "",
"url": "http://localhost:34006/server"
"url": "http://localhost:35006/server"
},
"response": {
"body": "test_response_after",
Expand Down
2 changes: 1 addition & 1 deletion fixture/vcr_cassettes/different_query_params_off.json
Expand Up @@ -5,7 +5,7 @@
"headers": [],
"method": "get",
"options": [],
"url": "http://localhost:34006/server?p=3"
"url": "http://localhost:35006/server?p=3"
},
"response": {
"body": "test_response_before",
Expand Down
4 changes: 2 additions & 2 deletions fixture/vcr_cassettes/different_query_params_on.json
Expand Up @@ -5,7 +5,7 @@
"headers": [],
"method": "get",
"options": [],
"url": "http://localhost:34006/server?p=3"
"url": "http://localhost:35006/server?p=3"
},
"response": {
"body": "test_response_before",
Expand All @@ -25,7 +25,7 @@
"headers": [],
"method": "get",
"options": [],
"url": "http://localhost:34006/server?p=4"
"url": "http://localhost:35006/server?p=4"
},
"response": {
"body": "test_response_after",
Expand Down
Expand Up @@ -6,7 +6,7 @@
"method": "post",
"options": [],
"request_body": "",
"url": "http://localhost:34006/server"
"url": "http://localhost:35006/server"
},
"response": {
"body": "test_response_before",
Expand Down
4 changes: 2 additions & 2 deletions fixture/vcr_cassettes/different_request_body_params_on.json
Expand Up @@ -6,7 +6,7 @@
"method": "post",
"options": [],
"request_body": "",
"url": "http://localhost:34006/server"
"url": "http://localhost:35006/server"
},
"response": {
"body": "test_response_before",
Expand All @@ -27,7 +27,7 @@
"method": "post",
"options": [],
"request_body": "",
"url": "http://localhost:34006/server"
"url": "http://localhost:35006/server"
},
"response": {
"body": "test_response_after",
Expand Down
2 changes: 1 addition & 1 deletion fixture/vcr_cassettes/finch_get_localhost.json
Expand Up @@ -6,7 +6,7 @@
"method": "get",
"options": [],
"request_body": "",
"url": "http://localhost:34008/server"
"url": "http://localhost:35008/server"
},
"response": {
"binary": false,
Expand Down
2 changes: 1 addition & 1 deletion fixture/vcr_cassettes/hackney_get_localhost.json
Expand Up @@ -8,7 +8,7 @@
"with_body": "true"
},
"request_body": "",
"url": "http://localhost:34009/server"
"url": "http://localhost:35009/server"
},
"response": {
"binary": false,
Expand Down
2 changes: 1 addition & 1 deletion fixture/vcr_cassettes/httpc_get_localhost.json
Expand Up @@ -9,7 +9,7 @@
"http_options": []
},
"request_body": "",
"url": "http://localhost:34010/server"
"url": "http://localhost:35010/server"
},
"response": {
"binary": false,
Expand Down
2 changes: 1 addition & 1 deletion fixture/vcr_cassettes/ibrowse_get_localhost.json
Expand Up @@ -6,7 +6,7 @@
"method": "get",
"options": [],
"request_body": "",
"url": "http://localhost:34011/server"
"url": "http://localhost:35011/server"
},
"response": {
"binary": false,
Expand Down
2 changes: 1 addition & 1 deletion fixture/vcr_cassettes/ignore_localhost_unset.json
Expand Up @@ -6,7 +6,7 @@
"method": "get",
"options": [],
"request_body": "",
"url": "http://localhost:34012/server"
"url": "http://localhost:35012/server"
},
"response": {
"binary": false,
Expand Down
2 changes: 1 addition & 1 deletion fixture/vcr_cassettes/ignore_localhost_with_headers.json
Expand Up @@ -8,7 +8,7 @@
"method": "get",
"options": [],
"request_body": "",
"url": "http://127.0.0.1:34012/server"
"url": "http://127.0.0.1:35012/server"
},
"response": {
"binary": false,
Expand Down
4 changes: 2 additions & 2 deletions fixture/vcr_cassettes/ignore_urls_unset.json
Expand Up @@ -6,7 +6,7 @@
"method": "get",
"options": [],
"request_body": "",
"url": "http://localhost:34013/server"
"url": "http://localhost:35013/server"
},
"response": {
"binary": false,
Expand All @@ -27,7 +27,7 @@
"method": "get",
"options": [],
"request_body": "",
"url": "http://127.0.0.1:34013/server"
"url": "http://127.0.0.1:35013/server"
},
"response": {
"binary": false,
Expand Down
2 changes: 1 addition & 1 deletion fixture/vcr_cassettes/ignore_urls_with_headers.json
Expand Up @@ -8,7 +8,7 @@
"method": "get",
"options": [],
"request_body": "",
"url": "http://127.0.0.1:34006/server"
"url": "http://127.0.0.1:35006/server"
},
"response": {
"binary": false,
Expand Down
2 changes: 1 addition & 1 deletion fixture/vcr_cassettes/option_clean_all.json
Expand Up @@ -5,7 +5,7 @@
"headers": [],
"method": "get",
"options": [],
"url": "http://localhost:34003/server"
"url": "http://localhost:35003/server"
},
"response": {
"body": "test_response1",
Expand Down
2 changes: 1 addition & 1 deletion fixture/vcr_cassettes/option_clean_each.json
Expand Up @@ -5,7 +5,7 @@
"headers": [],
"method": "get",
"options": [],
"url": "http://localhost:34004/server"
"url": "http://localhost:35004/server"
},
"response": {
"body": "test_response1",
Expand Down
2 changes: 1 addition & 1 deletion fixture/vcr_cassettes/user_defined_matchers_matching.json
Expand Up @@ -9,7 +9,7 @@
"method": "post",
"options": [],
"request_body": "",
"url": "http://localhost:34006/server"
"url": "http://localhost:35006/server"
},
"response": {
"binary": false,
Expand Down
4 changes: 2 additions & 2 deletions fixture/vcr_cassettes/user_defined_matchers_not_matching.json
Expand Up @@ -9,7 +9,7 @@
"method": "post",
"options": [],
"request_body": "",
"url": "http://localhost:34006/server"
"url": "http://localhost:35006/server"
},
"response": {
"binary": false,
Expand All @@ -33,7 +33,7 @@
"method": "post",
"options": [],
"request_body": "",
"url": "http://localhost:34006/server"
"url": "http://localhost:35006/server"
},
"response": {
"binary": false,
Expand Down
2 changes: 1 addition & 1 deletion test/adapter_finch_test.exs
Expand Up @@ -2,7 +2,7 @@ defmodule ExVCR.Adapter.FinchTest do
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Finch

@port 34008
@port 35008

setup_all do
HttpServer.start(path: "/server", port: @port, response: "test_response")
Expand Down
2 changes: 1 addition & 1 deletion test/adapter_hackney_test.exs
Expand Up @@ -2,7 +2,7 @@ defmodule ExVCR.Adapter.HackneyTest do
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney

@port 34009
@port 35009

setup_all do
HttpServer.start(path: "/server", port: @port, response: "test_response")
Expand Down
2 changes: 1 addition & 1 deletion test/adapter_httpc_test.exs
Expand Up @@ -2,7 +2,7 @@ defmodule ExVCR.Adapter.HttpcTest do
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Httpc

@port 34010
@port 35010

setup_all do
HttpServer.start(path: "/server", port: @port, response: "test_response")
Expand Down
2 changes: 1 addition & 1 deletion test/adapter_ibrowse_test.exs
Expand Up @@ -2,7 +2,7 @@ defmodule ExVCR.Adapter.IBrowseTest do
use ExUnit.Case, async: true
use ExVCR.Mock

@port 34011
@port 35011

setup_all do
HttpServer.start(path: "/server", port: @port, response: "test_response")
Expand Down
2 changes: 1 addition & 1 deletion test/handler_options_test.exs
Expand Up @@ -3,7 +3,7 @@ defmodule ExVCR.Adapter.HandlerOptionsTest do
use ExVCR.Mock
use ExUnit.Case, async: false

@port 34006
@port 35006
@url "http://localhost:#{@port}/server"

setup_all do
Expand Down
4 changes: 2 additions & 2 deletions test/iex_test.exs
Expand Up @@ -3,7 +3,7 @@ defmodule ExVCR.IExTest do
import ExUnit.CaptureIO
require ExVCR.IEx

@port 34005
@port 35005

setup_all do
:ibrowse.start
Expand All @@ -17,7 +17,7 @@ defmodule ExVCR.IExTest do
test "print request/response" do
assert capture_io(fn ->
ExVCR.IEx.print do
:ibrowse.send_req('http://localhost:34005/server', [], :get)
:ibrowse.send_req('http://localhost:35005/server', [], :get)
end
end) =~ ~r/\"body\": \"test_response\"/
end
Expand Down
2 changes: 1 addition & 1 deletion test/ignore_localhost_test.exs
Expand Up @@ -2,7 +2,7 @@ defmodule ExVCR.IgnoreLocalhostTest do
use ExVCR.Mock
use ExUnit.Case, async: false

@port 34012
@port 35012
@url "http://localhost:#{@port}/server"

setup_all do
Expand Down
2 changes: 1 addition & 1 deletion test/ignore_urls_test.exs
Expand Up @@ -2,7 +2,7 @@ defmodule ExVCR.IgnoreUrlsTest do
use ExVCR.Mock
use ExUnit.Case, async: false

@port 34013
@port 35013
@url "http://localhost:#{@port}/server"
@ignore_urls [
~r/http:\/\/localhost.*/,
Expand Down
2 changes: 1 addition & 1 deletion test/recorder_finch_test.exs
Expand Up @@ -3,7 +3,7 @@ defmodule ExVCR.RecorderFinchTest do
use ExVCR.Mock, adapter: ExVCR.Adapter.Finch

@dummy_cassette_dir "tmp/vcr_tmp/vcr_cassettes_finch"
@port 34003
@port 35003
@url "http://localhost:#{@port}/server"
@url_with_query "http://localhost:#{@port}/server?password=sample"

Expand Down
2 changes: 1 addition & 1 deletion test/recorder_hackney_test.exs
Expand Up @@ -3,7 +3,7 @@ defmodule ExVCR.RecorderHackneyTest do
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney

@dummy_cassette_dir "tmp/vcr_tmp/vcr_cassettes_hackney"
@port 34002
@port 35002
@url "http://localhost:#{@port}/server"
@url_with_query "http://localhost:#{@port}/server?password=sample"

Expand Down
2 changes: 1 addition & 1 deletion test/recorder_httpc_test.exs
Expand Up @@ -3,7 +3,7 @@ defmodule ExVCR.RecorderHttpcTest do
use ExVCR.Mock, adapter: ExVCR.Adapter.Httpc

@dummy_cassette_dir "tmp/vcr_tmp/vcr_cassettes_httpc"
@port 34001
@port 35001
@url 'http://localhost:#{@port}/server'
@url_with_query 'http://localhost:#{@port}/server?password=sample'

Expand Down
2 changes: 1 addition & 1 deletion test/recorder_ibrowse_test.exs
Expand Up @@ -3,7 +3,7 @@ defmodule ExVCR.RecorderIBrowseTest do
use ExVCR.Mock

@dummy_cassette_dir "tmp/vcr_tmp/vcr_cassettes_ibrowse"
@port 34000
@port 35000
@url "http://localhost:#{@port}/server"
@url_with_query "http://localhost:#{@port}/server?password=sample"

Expand Down
2 changes: 1 addition & 1 deletion test/strict_mode_test.exs
Expand Up @@ -3,7 +3,7 @@ defmodule ExVCR.StrictModeTest do
use ExUnit.Case, async: false

@dummy_cassette_dir "tmp/vcr_tmp/vcr_cassettes_strict_mode"
@port 34007
@port 35007
@url "http://localhost:#{@port}/server"
@http_server_opts [path: "/server", port: @port, response: "test_response"]

Expand Down

0 comments on commit 6d52417

Please sign in to comment.