10000 README-TESTS => RUNNING_TESTS.md · my-java/rabbitmq-java-client@da00f0c · GitHub
[go: up one dir, main page]

Skip to content

Commit da00f0c

Browse files
README-TESTS => RUNNING_TESTS.md
1 parent b04d8ff commit da00f0c

File tree

1 file changed

+31
-29
lines changed

1 file changed

+31
-29
lines changed
Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,42 @@
1-
Overview
2-
========
1+
## Overview
32

43
There are multiple test suites in the RabbitMQ Java client library;
54
the source for all of the suites can be found in the test/src
65
directory.
76

87
The suites are:
98

10-
Client tests
11-
Functional tests
12-
Server tests
13-
SSL tests
9+
* Client tests
10+
* Functional tests
11+
* Server tests
12+
* SSL tests
1413

15-
The Server test suite cannot be launched from the public umbrella
16-
( https://github.com/rabbitmq/rabbitmq-public-umbrella.git ). Attempting
17-
to launch this suite by executing the "test-server" ant target will fail,
18-
because test necessary prerequisites are not present in the public
19-
umbrella.
20-
21-
All other tests require a conforming server listening on localhost:5672
14+
All of them assume a RabbitMQ node listening on localhost:5672
2215
(the default settings). SSL tests require a broker listening on the default
23-
SSL port. For details on running specific tests, see below.
16+
SSL port. Connection recovery tests assume `rabbitmqctl` at `../rabbitmq-server/scripts/rabbitmqctl`
17+
can control the running node: this is the case when all repositories are cloned using
18+
the [umbrella repository](https://github.com/rabbitmq/rabbitmq-public-umbrella).
19+
20+
For details on running specific tests, see below.
2421

2522

26-
Running a Specific Test 10000 Suite
27-
=============================
23+
## Running a Specific Test Suite
2824

2925
To run a specific test suite you should execute one of the following in the
3026
top-level directory of the source tree:
3127

32-
ant test-client
33-
ant test-functional
34-
ant test-ssl
35-
28+
# runs unit tests
29+
ant test-client
30+
# runs integration/functional tests
31+
ant test-functional
32+
# runs TLS tests
33+
ant test-ssl
34+
# run all test suites
35+
ant test-suite
3636

3737
For example, to run the client tests:
3838

39+
```
3940
----------------- Example shell session -------------------------------------
4041
rabbitmq-java-client$ ant test-client
4142
Buildfile: build.xml
@@ -58,19 +59,19 @@ test-client:
5859
5960
BUILD SUCCESSFUL
6061
-----------------------------------------------------------------------------
62+
```
6163

62-
If any tests are broken details can be found by viewing this file:
63-
build/TEST-com.rabbitmq.client.test.ClientTests.txt
64+
Test failures and errors are logged to `build/TEST-*`.
6465

6566

66-
SSL Test Setup
67-
--------------
67+
## SSL Test Setup
6868

6969
To run the SSL tests, the RabbitMQ server and Java client should be configured
70-
as per the SSL instructions on the RabbitMQ website. The SSL_CERTS_DIR
70+
as per the SSL instructions on the RabbitMQ website. The `SSL_CERTS_DIR`
7171
environment variable must point to a certificate folder with the following
7272
minimal structure:
7373

74+
```
7475
$SSL_CERTS_DIR
7576
|-- client
7677
| |-- keycert.p12
@@ -81,12 +82,14 @@ minimal structure:
8182
| \-- key.pem
8283
\-- testca
8384
\-- cacert.pem
85+
```
8486

85-
The PASSWORD environment variable must be set to the password of the keycert.p12
87+
The `PASSWORD` environment variable must be set to the password of the keycert.p12
8688
PKCS12 keystore. The broker must be configured to validate client certificates.
87-
This will become minimal broker configuration file if $SSL_CERTS_DIR is replaced
89+
This will become minimal broker configuration file if `$SSL_CERTS_DIR` is replaced
8890
with the certificate folder:
8991

92+
``` erlang
9093
%%%%% begin sample test broker configuration
9194
[{rabbit, [{ssl_listeners, [5671]},
9295
{ssl_options, [{cacertfile,"$SSL_CERTS_DIR/testca/cacert.pem"},
@@ -95,5 +98,4 @@ with the certificate folder:
9598
{verify,verify_peer},
9699
{fail_if_no_peer_cert, false}]}]}].
97100
%%%%% end sample test broker configuration
98-
99-
101+
```

0 commit comments

Comments
 (0)
0