You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: datafusion-cli/CONTRIBUTING.md
+14-35Lines changed: 14 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,47 +29,26 @@ cargo test
29
29
30
30
## Running Storage Integration Tests
31
31
32
-
By default, storage integration tests are not run. To run them you will need to set `TEST_STORAGE_INTEGRATION=1` and
33
-
then provide the necessary configuration for that object store.
32
+
By default, storage integration tests are not run. These test use the `testcontainers` crate to start up a local MinIO server using docker on port 9000.
34
33
35
-
For some of the tests, [snapshots](https://datafusion.apache.org/contributor-guide/testing.html#snapshot-testing) are used.
36
-
37
-
### AWS
38
-
39
-
To test the S3 integration against [Minio](https://github.com/minio/minio)
40
-
41
-
First start up a container with Minio and load test files.
34
+
To run them you will need to set `TEST_STORAGE_INTEGRATION`:
42
35
43
36
```shell
44
-
docker run -d \
45
-
--name datafusion-test-minio \
46
-
-p 9000:9000 \
47
-
-e MINIO_ROOT_USER=TEST-DataFusionLogin \
48
-
-e MINIO_ROOT_PASSWORD=TEST-DataFusionPassword \
49
-
-v $(pwd)/../datafusion/core/tests/data:/source \
50
-
quay.io/minio/minio server /data
51
-
52
-
docker exec datafusion-test-minio /bin/sh -c "\
53
-
mc ready local
54
-
mc alias set localminio http://localhost:9000 TEST-DataFusionLogin TEST-DataFusionPassword && \
55
-
mc mb localminio/data && \
56
-
mc cp -r /source/* localminio/data"
37
+
TEST_STORAGE_INTEGRATION=1 cargo test
57
38
```
58
39
59
-
Setup environment
40
+
For some of the tests, [snapshots](https://datafusion.apache.org/contributor-guide/testing.html#snapshot-testing) are used.
0 commit comments