Verified Commit 07c7e368 authored by Martin Abbrent's avatar Martin Abbrent 💬
Browse files

Fix integration test and extend readme

parent 65dcb2f5
Pipeline #51201 passed with stage
in 1 minute and 32 seconds
......@@ -77,3 +77,12 @@ user has an IAM policy assigned):
```python
svc_creds = mc.create_service_account('my-user')
```
# Tests
There is a integration test tailored for an empty minio container:
```bash
docker run --rm -p 9000:9000 -p 9001:9001 -e MINIO_NOTIFY_KAFKA_ENABLE="on" -e MINIO_NOTIFY_KAFKA_BROKERS="kafka:9092" -e MINIO_NOTIFY_KAFKA_TOPIC="minio-bucket-notifications" minio/minio server /vol0 /vol1 /vol2 /vol3 --console-address :9001
python ./tests/integration_test.py
```
......@@ -5,8 +5,12 @@ parser = argparse.ArgumentParser()
parser.add_argument('--url', default='minio:9000')
args = parser.parse_args()
# Docker container for testing docker run --rm -p 9000:9000 -p 9001:9001 -e
# MINIO_NOTIFY_KAFKA_ENABLE="on" -e MINIO_NOTIFY_KAFKA_BROKERS="kafka:9092" -e
# MINIO_NOTIFY_KAFKA_TOPIC="minio-bucket-notifications" minio/minio server /vol0 /vol1 /vol2
# /vol3 --console-address :9001
m = Mc(args.url, secure=False, access_key='minioadmin', secret_key='minioadmin')
print(m._command(['ls', m.ALIAS]))
m.user_add('test', 'testtesttest')
m.policy_add('test', {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment