diff options
Diffstat (limited to 'tests/plugins/jobs')
12 files changed, 21 insertions, 21 deletions
diff --git a/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml b/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml index ed0345d6..32883ce2 100644 --- a/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml +++ b/tests/plugins/jobs/amqp/.rr-amqp-declare.yaml @@ -7,7 +7,7 @@ server: relay_timeout: "20s" amqp: - addr: amqp://guest:guest@localhost:5672/ + addr: amqp://guest:[email protected]:5672/ logs: level: debug diff --git a/tests/plugins/jobs/amqp/.rr-amqp-init.yaml b/tests/plugins/jobs/amqp/.rr-amqp-init.yaml index 5c585372..c06b5a79 100644 --- a/tests/plugins/jobs/amqp/.rr-amqp-init.yaml +++ b/tests/plugins/jobs/amqp/.rr-amqp-init.yaml @@ -7,7 +7,7 @@ server: relay_timeout: "20s" amqp: - addr: amqp://guest:guest@localhost:5672/ + addr: amqp://guest:[email protected]:5672/ logs: level: debug diff --git a/tests/plugins/jobs/beanstalk/.rr-beanstalk-declare.yaml b/tests/plugins/jobs/beanstalk/.rr-beanstalk-declare.yaml index 85f92bac..022bf2f4 100644 --- a/tests/plugins/jobs/beanstalk/.rr-beanstalk-declare.yaml +++ b/tests/plugins/jobs/beanstalk/.rr-beanstalk-declare.yaml @@ -8,7 +8,7 @@ server: beanstalk: # beanstalk address - addr: tcp://localhost:11300 + addr: tcp://127.0.0.1:11300 # connect timeout timeout: 10s diff --git a/tests/plugins/jobs/beanstalk/.rr-beanstalk-init.yaml b/tests/plugins/jobs/beanstalk/.rr-beanstalk-init.yaml index 66cfd52e..8ded8cf1 100644 --- a/tests/plugins/jobs/beanstalk/.rr-beanstalk-init.yaml +++ b/tests/plugins/jobs/beanstalk/.rr-beanstalk-init.yaml @@ -7,7 +7,7 @@ server: relay_timeout: "20s" beanstalk: - addr: tcp://localhost:11300 + addr: tcp://127.0.0.1:11300 timeout: 10s logs: diff --git a/tests/plugins/jobs/configs/.rr-jobs-init.yaml b/tests/plugins/jobs/configs/.rr-jobs-init.yaml index 550e55cc..bf9f60cc 100644 --- a/tests/plugins/jobs/configs/.rr-jobs-init.yaml +++ b/tests/plugins/jobs/configs/.rr-jobs-init.yaml @@ -7,13 +7,13 @@ server: relay_timeout: "20s" amqp: - addr: amqp://guest:guest@localhost:5672/ + addr: amqp://guest:[email protected]:5672/ # beanstalk configuration # beanstalk: # beanstalk address - addr: tcp://localhost:11300 + addr: tcp://127.0.0.1:11300 # connect timeout timeout: 10s @@ -23,7 +23,7 @@ sqs: key: api-key secret: api-secret region: us-west-1 - endpoint: http://localhost:9324 + endpoint: http://127.0.0.1:9324 logs: level: info diff --git a/tests/plugins/jobs/durability/.rr-amqp-durability-redial.yaml b/tests/plugins/jobs/durability/.rr-amqp-durability-redial.yaml index a66e1979..861f7ec4 100644 --- a/tests/plugins/jobs/durability/.rr-amqp-durability-redial.yaml +++ b/tests/plugins/jobs/durability/.rr-amqp-durability-redial.yaml @@ -7,7 +7,7 @@ server: relay_timeout: "20s" amqp: - addr: amqp://guest:guest@localhost:23679/ + addr: amqp://guest:[email protected]:23679/ logs: level: debug diff --git a/tests/plugins/jobs/durability/.rr-beanstalk-durability-redial.yaml b/tests/plugins/jobs/durability/.rr-beanstalk-durability-redial.yaml index 22d8f3b0..57d8ad2d 100644 --- a/tests/plugins/jobs/durability/.rr-beanstalk-durability-redial.yaml +++ b/tests/plugins/jobs/durability/.rr-beanstalk-durability-redial.yaml @@ -7,7 +7,7 @@ server: relay_timeout: "20s" beanstalk: - addr: tcp://localhost:11400 + addr: tcp://127.0.0.1:11400 timeout: 10s logs: diff --git a/tests/plugins/jobs/durability/.rr-sqs-durability-redial.yaml b/tests/plugins/jobs/durability/.rr-sqs-durability-redial.yaml index d7d93fe6..8f1a1d5d 100644 --- a/tests/plugins/jobs/durability/.rr-sqs-durability-redial.yaml +++ b/tests/plugins/jobs/durability/.rr-sqs-durability-redial.yaml @@ -10,7 +10,7 @@ sqs: key: api-key secret: api-secret region: us-west-1 - endpoint: http://localhost:19324 + endpoint: http://127.0.0.1:19324 logs: level: debug diff --git a/tests/plugins/jobs/helpers.go b/tests/plugins/jobs/helpers.go index 0d7d6ac6..831c732c 100644 --- a/tests/plugins/jobs/helpers.go +++ b/tests/plugins/jobs/helpers.go @@ -154,7 +154,7 @@ func enableProxy(name string, t *testing.T) { buf := new(bytes.Buffer) buf.WriteString(`{"enabled":true}`) - resp, err := http.Post("http://localhost:8474/proxies/"+name, "application/json", buf) //nolint:noctx + resp, err := http.Post("http://127.0.0.1:8474/proxies/"+name, "application/json", buf) //nolint:noctx require.NoError(t, err) require.Equal(t, 200, resp.StatusCode) if resp.Body != nil { @@ -166,7 +166,7 @@ func disableProxy(name string, t *testing.T) { buf := new(bytes.Buffer) buf.WriteString(`{"enabled":false}`) - resp, err := http.Post("http://localhost:8474/proxies/"+name, "application/json", buf) //nolint:noctx + resp, err := http.Post("http://127.0.0.1:8474/proxies/"+name, "application/json", buf) //nolint:noctx require.NoError(t, err) require.Equal(t, 200, resp.StatusCode) if resp.Body != nil { @@ -177,7 +177,7 @@ func disableProxy(name string, t *testing.T) { func deleteProxy(name string, t *testing.T) { client := &http.Client{} - req, err := http.NewRequest(http.MethodDelete, "http://localhost:8474/proxies/"+name, nil) //nolint:noctx + req, err := http.NewRequest(http.MethodDelete, "http://127.0.0.1:8474/proxies/"+name, nil) //nolint:noctx require.NoError(t, err) resp, err := client.Do(req) diff --git a/tests/plugins/jobs/jobs_with_toxics_test.go b/tests/plugins/jobs/jobs_with_toxics_test.go index 7e2bd8be..71986db3 100644 --- a/tests/plugins/jobs/jobs_with_toxics_test.go +++ b/tests/plugins/jobs/jobs_with_toxics_test.go @@ -27,9 +27,9 @@ import ( ) func TestDurabilityAMQP(t *testing.T) { - client := toxiproxy.NewClient("localhost:8474") + client := toxiproxy.NewClient("127.0.0.1:8474") - _, err := client.CreateProxy("redial", "localhost:23679", "localhost:5672") + _, err := client.CreateProxy("redial", "127.0.0.1:23679", "127.0.0.1:5672") require.NoError(t, err) defer deleteProxy("redial", t) @@ -150,9 +150,9 @@ func TestDurabilityAMQP(t *testing.T) { } func TestDurabilitySQS(t *testing.T) { - client := toxiproxy.NewClient("localhost:8474") + client := toxiproxy.NewClient("127.0.0.1:8474") - _, err := client.CreateProxy("redial", "localhost:19324", "localhost:9324") + _, err := client.CreateProxy("redial", "127.0.0.1:19324", "127.0.0.1:9324") require.NoError(t, err) defer deleteProxy("redial", t) @@ -273,9 +273,9 @@ func TestDurabilitySQS(t *testing.T) { } func TestDurabilityBeanstalk(t *testing.T) { - client := toxiproxy.NewClient("localhost:8474") + client := toxiproxy.NewClient("127.0.0.1:8474") - _, err := client.CreateProxy("redial", "localhost:11400", "localhost:11300") + _, err := client.CreateProxy("redial", "127.0.0.1:11400", "127.0.0.1:11300") require.NoError(t, err) defer deleteProxy("redial", t) diff --git a/tests/plugins/jobs/sqs/.rr-sqs-declare.yaml b/tests/plugins/jobs/sqs/.rr-sqs-declare.yaml index d75265ee..c4eb9cf9 100644 --- a/tests/plugins/jobs/sqs/.rr-sqs-declare.yaml +++ b/tests/plugins/jobs/sqs/.rr-sqs-declare.yaml @@ -12,7 +12,7 @@ sqs: key: api-key secret: api-secret region: us-west-1 - endpoint: http://localhost:9324 + endpoint: http://127.0.0.1:9324 logs: level: debug diff --git a/tests/plugins/jobs/sqs/.rr-sqs-init.yaml b/tests/plugins/jobs/sqs/.rr-sqs-init.yaml index 8c62bbdb..239f9954 100644 --- a/tests/plugins/jobs/sqs/.rr-sqs-init.yaml +++ b/tests/plugins/jobs/sqs/.rr-sqs-init.yaml @@ -10,7 +10,7 @@ sqs: key: api-key secret: api-secret region: us-west-1 - endpoint: http://localhost:9324 + endpoint: http://127.0.0.1:9324 logs: level: debug |