-
Notifications
You must be signed in to change notification settings - Fork 0
Integration tests in console
Cesar Celis Hernandez edited this page Aug 2, 2023
·
8 revisions
The objective is to show how to test locally.
- https://github.com/minio/console/pull/2721
- https://github.com/minio/console/pull/2722
- https://github.com/minio/console/pull/2973
- Prepare:
docker stop pgsqlcontainer
docker stop minio
docker stop minio2
docker network rm mynet123
docker network create --subnet=173.18.0.0/29 mynet123
- Set one MinIO Site:
docker run -v /data1 -v /data2 -v /data3 -v /data4 \
--net=mynet123 -d --name minio --rm -p 9000:9000 -p 9091:9091 \
-e MINIO_KMS_SECRET_KEY=my-minio-key:OSMM+vkKUTCvQs9YL/CVMIMt43HFhkUpqJxTmGl6rYw= "quay.io/minio/minio:latest" server /data{1...4} \
--console-address ':9091'
- Set another MinIO Site:
docker run -v /data1 -v /data2 -v /data3 -v /data4 \
--net=mynet123 -d --name minio2 --rm -p 9001:9001 -p 9092:9092 \
-e MINIO_KMS_SECRET_KEY=my-minio-key:OSMM+vkKUTCvQs9YL/CVMIMt43HFhkUpqJxTmGl6rYw= "quay.io/minio/minio:latest" server /data{1...4} \
--address ':9001' --console-address ':9092'
- Set PostgreSQL:
# Kill it if already running locally:
netstat -vanp tcp | grep 5432
kill pid
docker run --net=mynet123 --ip=173.18.0.4 --name pgsqlcontainer --rm -p 5432:5432 -e POSTGRES_PASSWORD=password -d postgres
- Execute the tests:
cd /Users/cniackz/console/integration
go test
~/console/integration/*.go
- With IJ run: