João Britto
5c69b91e15
Remove amqp_ssl:add_verify_fun_to_opts/2,3
...
These functions have become no-op after d76234f
.
The maybe_add_verify_fun/3 function has become unreachable and was removed too.
2021-07-15 17:28:49 -03:00
Philip Kuryloski
388654c542
Add a partial Bazel build ( #2938 )
...
Adds WORKSPACE.bazel, BUILD.bazel & *.bzl files for partial build & test with Bazel. Introduces a build-time dependency on https://github.com/rabbitmq/bazel-erlang
2021-03-29 11:01:43 +02:00
Michael Klishin
1fc6675a42
Make this test more agnostic to stacktrace shape
...
The point is that both channel and connection go down,
not that a particular tuple is thrown
2021-03-09 02:48:35 +03:00
Michael Klishin
52479099ec
Bump (c) year
2021-01-22 09:00:14 +03:00
Michael Klishin
a5c8de73ce
Use ?assertEquals here
2020-12-01 06:13:10 +03:00
Ayanda-D
4a6bd67bc9
Add failing direct connection safe call timeout test/mock
2020-11-27 10:28:44 +00:00
Ayanda-D
0059fd7249
Add erlang client safe_call_timeouts tests
2020-11-26 17:30:18 +00:00
dcorbacho
f2f2e0358b
Switch to Mozilla Public License 2.0 (MPL 2.0)
2020-07-10 15:13:17 +01:00
Gerhard Lazu
2087a45d81
Assert amqp_connection_close is OK
...
We want to see the value in CT logs if it's not ok.
This is in response to this test flake:
https://github.com/rabbitmq/rabbitmq-server/runs/551738403#step:5:4701
Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2020-04-22 16:42:05 +01:00
Michael Klishin
ab1a5199dd
Update unit test assertions
2020-04-01 14:06:44 +03:00
Jean-Sébastien Pédron
d56461c038
Update copyright (year 2020)
2020-03-10 15:39:18 +01:00
Michael Klishin
e1e049ccd0
Use assertMatch from EUnit here
2019-11-21 22:19:52 +03:00
Daniil Fedotov
c962727554
Increase wait timeout in tests to avoid false positives.
2019-04-11 15:07:59 -04:00
Spring Operator
27888c7189
URL Cleanup
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.
* http://blog.listincomprehension.com/search/label/procket (200) with 1 occurrences could not be migrated:
([https](https://blog.listincomprehension.com/search/label/procket ) result ClosedChannelException).
* http://dozzie.jarowit.net/trac/wiki/TOML (200) with 1 occurrences could not be migrated:
([https](https://dozzie.jarowit.net/trac/wiki/TOML ) result SSLHandshakeException).
* http://dozzie.jarowit.net/trac/wiki/subproc (200) with 1 occurrences could not be migrated:
([https](https://dozzie.jarowit.net/trac/wiki/subproc ) result SSLHandshakeException).
* http://e2project.org (200) with 1 occurrences could not be migrated:
([https](https://e2project.org ) result AnnotatedConnectException).
* http://erlang.org/pipermail/erlang-bugs/2012-June/002933.html (200) with 1 occurrences could not be migrated:
([https](https://erlang.org/pipermail/erlang-bugs/2012-June/002933.html ) result ConnectTimeoutException).
* http://nitrogenproject.com/ (200) with 2 occurrences could not be migrated:
([https](https://nitrogenproject.com/ ) result ConnectTimeoutException).
* http://proper.softlab.ntua.gr (200) with 1 occurrences could not be migrated:
([https](https://proper.softlab.ntua.gr ) result SSLHandshakeException).
* http://yaws.hyber.org (200) with 1 occurrences could not be migrated:
([https](https://yaws.hyber.org ) result AnnotatedConnectException).
* http://choven.ca (503) with 1 occurrences could not be migrated:
([https](https://choven.ca ) result ConnectTimeoutException).
# Fixed URLs
## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.
* http://fixprotocol.org/ (301) with 1 occurrences migrated to:
https://fixtrading.org ([https](https://fixprotocol.org/ ) result SSLHandshakeException).
* http://erldb.org (UnknownHostException) with 1 occurrences migrated to:
https://erldb.org ([https](https://erldb.org ) result UnknownHostException).
## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* http://cloudi.org/ with 27 occurrences migrated to:
https://cloudi.org/ ([https](https://cloudi.org/ ) result 200).
* http://erlware.org/ with 1 occurrences migrated to:
https://erlware.org/ ([https](https://erlware.org/ ) result 200).
* http://inaka.github.io/cowboy-trails/ with 1 occurrences migrated to:
https://inaka.github.io/cowboy-trails/ ([https](https://inaka.github.io/cowboy-trails/ ) result 200).
* http://ninenines.eu with 6 occurrences migrated to:
https://ninenines.eu ([https](https://ninenines.eu ) result 200).
* http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html with 1 occurrences migrated to:
https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ([https](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ) result 200).
* http://tools.ietf.org/html/rfc3986 with 1 occurrences migrated to:
https://tools.ietf.org/html/rfc3986 ([https](https://tools.ietf.org/html/rfc3986 ) result 200).
* http://www.actordb.com/ with 2 occurrences migrated to:
https://www.actordb.com/ ([https](https://www.actordb.com/ ) result 200).
* http://www.cs.kent.ac.uk/projects/wrangler/Home.html with 1 occurrences migrated to:
https://www.cs.kent.ac.uk/projects/wrangler/Home.html ([https](https://www.cs.kent.ac.uk/projects/wrangler/Home.html ) result 200).
* http://www.erlang.org/ with 1 occurrences migrated to:
https://www.erlang.org/ ([https](https://www.erlang.org/ ) result 200).
* http://www.rabbitmq.com with 1 occurrences migrated to:
https://www.rabbitmq.com ([https](https://www.rabbitmq.com ) result 200).
* http://www.rabbitmq.com/ with 2 occurrences migrated to:
https://www.rabbitmq.com/ ([https](https://www.rabbitmq.com/ ) result 200).
* http://www.rabbitmq.com/build-erlang-client.html with 1 occurrences migrated to:
https://www.rabbitmq.com/build-erlang-client.html ([https](https://www.rabbitmq.com/build-erlang-client.html ) result 200).
* http://www.rabbitmq.com/erlang-client-user-guide.html with 2 occurrences migrated to:
https://www.rabbitmq.com/erlang-client-user-guide.html ([https](https://www.rabbitmq.com/erlang-client-user-guide.html ) result 200).
* http://www.rabbitmq.com/protocol.html with 1 occurrences migrated to:
https://www.rabbitmq.com/protocol.html ([https](https://www.rabbitmq.com/protocol.html ) result 200).
* http://www.rebar3.org with 1 occurrences migrated to:
https://www.rebar3.org ([https](https://www.rebar3.org ) result 200).
* http://contributor-covenant.org with 1 occurrences migrated to:
https://contributor-covenant.org ([https](https://contributor-covenant.org ) result 301).
* http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/ ) result 301).
* http://inaka.github.com/apns4erl with 1 occurrences migrated to:
https://inaka.github.com/apns4erl ([https](https://inaka.github.com/apns4erl ) result 301).
* http://inaka.github.com/edis/ with 1 occurrences migrated to:
https://inaka.github.com/edis/ ([https](https://inaka.github.com/edis/ ) result 301).
* http://lasp-lang.org/ with 1 occurrences migrated to:
https://lasp-lang.org/ ([https](https://lasp-lang.org/ ) result 301).
* http://saleyn.github.com/erlexec with 1 occurrences migrated to:
https://saleyn.github.com/erlexec ([https](https://saleyn.github.com/erlexec ) result 301).
* http://www.erlang.org/doc/man/gen_tcp.html with 1 occurrences migrated to:
https://www.erlang.org/doc/man/gen_tcp.html ([https](https://www.erlang.org/doc/man/gen_tcp.html ) result 301).
* http://www.erlang.org/doc/man/inet.html with 1 occurrences migrated to:
https://www.erlang.org/doc/man/inet.html ([https](https://www.erlang.org/doc/man/inet.html ) result 301).
* http://www.mozilla.org/MPL/ with 27 occurrences migrated to:
https://www.mozilla.org/MPL/ ([https](https://www.mozilla.org/MPL/ ) result 301).
* http://zhongwencool.github.io/observer_cli with 1 occurrences migrated to:
https://zhongwencool.github.io/observer_cli ([https](https://zhongwencool.github.io/observer_cli ) result 301).
2019-03-20 03:14:58 -05:00
Josh Soref
5cebc94e48
spelling: various
2019-02-12 15:25:31 -05:00
Josh Soref
1b73606e80
spelling: immediately
2019-02-12 15:06:09 -05:00
Josh Soref
b33948c0e8
spelling: exercise
2019-02-12 15:00:28 -05:00
Jean-Sébastien Pédron
56c23dc28f
system_SUITE: Compare both IPv4 and IPv6 in close_remote_socket()
...
The default network interface used and how IPv6 is managed is very
system and configuration dependent. So here, when we look up the socket,
we use both IPv4 and IPv6.
2019-02-04 12:05:15 +01:00
Michael Klishin
c2971eef32
An attempt to make request/reply tests more stable on Concourse
2019-01-20 07:51:25 +03:00
Loïc Hoguin
d76750437b
Use {active,once} instead of async_recv
...
A test had to be changed because closing the socket locally
does not trigger the condition we expect. It happened to work
before because async_recv is using a low level interface but
it wasn't really testing the right thing.
2019-01-15 14:37:03 +01:00
Luke Bakken
dcf5637615
AMQP(S) URI that specifies port without host is an error
...
Fixes #107
2018-08-09 08:29:35 -07:00
Jean-Sébastien Pédron
67e22ebdc4
system_SUITE: Remove unused variable in init_per_testcase()
2018-06-07 12:13:14 +02:00
Jean-Sébastien Pédron
32451438d6
system_SUITE: Accept Erlang 21 stacktrace in channel_death()
...
[#157964874 ]
2018-06-07 12:13:10 +02:00
Jean-Sébastien Pédron
c3b33bfeb3
Merge branch 'take-hostname-from-server-test-certificate'
2018-01-24 17:42:32 +01:00
Jean-Sébastien Pédron
5c984147bf
system_SUITE: Take SNI hostname from server's certificate
...
The goal is to be consistent between the `Makefile` used to generate the
certificates and the Erlang code.
For instance, on some systems, the certificates were generated with a
short hostname while `inet:gethostname()` could return an FQDN.
2018-01-24 17:39:11 +01:00
Luke Bakken
832c0e6195
Port fb82f5b8 to v3.6.x
...
Erlang 20.2 checks CN value in a server certificate by default, so provide the hostname in the TLS connection options
Ports parts of fb82f5b8f4a3ef56e5672592893199f00afb5741 from the v3.7.x branch
[152879230]
2018-01-03 08:02:22 -08:00
Luke Bakken
3fea5a86b7
Ensure that verify_fun and server_name_indication are added to .config params, too
...
Fix issue with module for verify_fun
Fix bug in function clause
Fix test errors in OTP 20 due to empty tuple in list
Do not enable server_name_indication by default, nor verify_peer
2017-12-11 09:36:26 -08:00
Luke Bakken
ab642a390f
[152879230]
...
Add failing tests
Tests pass
Enable SNI in SSL test
Add server_name_indication when host is a hostname
Make verify_peer the default for amqps connections, requiring the user to opt-out
2017-12-05 11:09:03 -08:00
Jean-Sébastien Pédron
c3445716c3
Merge branch 'stable'
2017-11-03 17:57:19 +01:00
Jean-Sébastien Pédron
230da13d16
system_SUITE: EADDRNOTAVAIL can be returned when IPv6 is not configured
...
... in addition to ENETUNREACH. This happens on Travis CI VMs for
instance.
[#152509619 ]
2017-11-03 11:14:55 +01:00
Luke Bakken
7fc64ed3ad
Try to fix enotsup error by using latest kiex
...
remove command that expects input
Add CircleCI configuration
Build and cache OTP 20 in Travis CI
increase WAIT for Travis
Build GNU make 4.2.1 too
Install kerl, change language to generic
Add build matrix
remove circleci, add two OTP versions
2017-06-22 08:07:22 -07:00
Luke Bakken
2bf3384d90
Add unit test for topic permissions map
2017-06-19 08:48:11 -07:00
Arnaud Cogoluègnes
ebd1655e5e
Merge branch 'stable'
2017-03-08 16:25:33 +01:00
Arnaud Cogoluègnes
05c7a11e97
Add spec and test for URI parsing
...
References #76
2017-03-08 14:48:18 +01:00
Jean-Sébastien Pédron
400c610d74
Merge branch 'stable'
2016-12-13 11:48:23 +01:00
Jean-Sébastien Pédron
4762c2a22f
system_SUITE: Skip basic_get_* if they hit ENETUNREACH
...
This happens when eg. IPv6 is not configured on the host, which can be
the case on Travis CI.
2016-12-13 11:40:55 +01:00
Jean-Sébastien Pédron
962088b005
Merge branch 'stable'
2016-07-05 17:32:01 +02:00
Jean-Sébastien Pédron
f65d962a3b
system_SUITE: Set importance on all common_test messages
2016-07-05 17:04:28 +02:00
Jean-Sébastien Pédron
cb6cb571d8
Merge branch 'stable'
2016-07-05 16:32:21 +02:00
Jean-Sébastien Pédron
6d106559ae
system_SUITE: Remove two messages which are not that useful
2016-07-05 16:31:41 +02:00
Jean-Sébastien Pédron
d74c19bf9c
Use `rand` directly in master because we require Erlang 18.3
...
References rabbitmq/rabbitmq-server#860.
[#122335241 ]
2016-06-29 13:19:33 +02:00
Jean-Sébastien Pédron
f2e43e2214
Use the new `rand_compat` module to transition from `random` to `rand`
...
References #860 .
[#122335241 ]
2016-06-29 13:18:03 +02:00
Jean-Sébastien Pédron
f83f0a00e6
system_SUITE: Update after the rabbit_ct_* API refinements
2016-05-03 15:54:50 +02:00
Jean-Sébastien Pédron
85640a52d8
system_SUITE: Do not generate queue names with non-printable chars
...
... in the `lifecycle` testcase.
This fixes this testcase with the master branch where eg. newline
characters are stripped.
2016-04-22 09:46:59 +02:00
Jean-Sébastien Pédron
f678abaeb1
system_SUITE: Use the new rabbit_ct_broker_helpers:get_node_config/3
2016-04-20 11:03:20 +02:00
Jean-Sébastien Pédron
98ad6e1868
Adapt system_SUITE.erl to the new rabbit_ct_broker_helpers
2016-04-18 16:18:32 +02:00
Michael Klishin
169a58d523
Merge branch 'stable' into rabbitmq-server-104
2016-04-17 19:12:20 +03:00
Jean-Sébastien Pédron
233b3507fb
system_SUITE: Adapt to the new multi-nodes support
2016-04-13 18:52:18 +02:00
Daniil Fedotov
e458cbf7aa
tests config
2016-04-13 16:21:04 +01:00
Daniil Fedotov
eb36ef5355
tests for named connection
2016-04-13 12:06:58 +01:00