Skip to content

Commit 570adc6

Browse files
committed
src/test/rgw/bucket_notification/README.rst: use systemctl, update rabbitmq installation process. Fixes: https://tracker.ceph.com/issues/67768
Signed-off-by: rkhudov <[email protected]>
1 parent 682cc90 commit 570adc6

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

src/test/rgw/bucket_notification/README.rst

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ we would need the following configuration file::
2525
access_key = 1234567890
2626
secret_key = pencil
2727

28+
Add boto3 extension to the standard client: https://github.com/ceph/ceph/tree/main/examples/rgw/boto3#introduction.
2829

2930
===========
3031
Kafka Tests
@@ -125,7 +126,7 @@ To run the Kafka security test, you also need to provide the test with the locat
125126
RabbitMQ Tests
126127
==============
127128

128-
You need to install RabbitMQ in the following way::
129+
You need to install RabbitMQ, check supported platforms: https://www.rabbitmq.com/docs/platforms. For example, for Fedora::
129130

130131
sudo dnf install rabbitmq-server
131132

@@ -139,31 +140,19 @@ Update rabbitmq-server configuration to allow access to the guest user from anyw
139140

140141
Finally, to start the RabbitMQ server you need to run the following command::
141142

142-
sudo /sbin/service rabbitmq-server start
143+
sudo systemctl start rabbitmq-server
143144

144145
To confirm that the RabbitMQ server is running you can run the following command to check the status of the server::
145146

146-
sudo /sbin/service rabbitmq-server status
147-
148-
Add [boto3 extension](https://github.com/ceph/ceph/tree/main/examples/rgw/boto3#introduction) as it's required for bucket notification tests. You can use the default folder or create a custom one, more information [here](https://github.com/boto/botocore/blob/develop/botocore/loaders.py#L33).
149-
Default folder::
150-
151-
mkdir -p ~/.aws/models/s3/2006-03-01/
152-
cp /path/to/ceph/examples/rgw/boto3/service-2.sdk-extras.json ~/.aws/models/s3/2006-03-01/
153-
154-
Custom folder::
155-
156-
mkdir -p /path/to/custom/folder/models/s3/2006-03-01/
157-
cp /path/to/ceph/examples/rgw/boto3/service-2.sdk-extras.json /path/to/custom/folder/models/s3/2006-03-01/
158-
export AWS_DATA_PATH=/path/to/custom/folder/
147+
sudo systemctl status rabbitmq-server
159148

160149
After running `vstart.sh` and RabbitMQ server you're ready to run the AMQP tests::
161150

162151
BNTESTS_CONF=bntests.conf python -m nose -s /path/to/ceph/src/test/rgw/bucket_notification/test_bn.py -v -a 'amqp_test'
163152

164153
After running the tests you need to stop the vstart cluster (``/path/to/ceph/src/stop.sh``) and the RabbitMQ server by running the following command::
165154

166-
sudo /sbin/service rabbitmq-server stop
155+
sudo systemctl stop rabbitmq-server
167156

168157
To run the RabbitMQ SSL security tests use the following::
169158

0 commit comments

Comments
 (0)