File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -62,3 +62,16 @@ Running a single test:
6262``` sh
6363TF_UPDATE_CASSETTES=true TF_LOG=DEBUG SCW_DEBUG=1 TF_ACC=1 go test ./scaleway -v -run=TestAccScalewayDataSourceRDBInstance_Basic -timeout=120m -parallel=10
6464```
65+
66+ ## Compressing the cassettes
67+
68+ We record interactions with the Scaleway API in cassettes, which are stored in the ` testdata ` directory of each service.
69+ Each wait function used in the resources will perform several requests to the API for pulling a resource state, which can lead to large cassettes.
70+ We use a compressor to reduce the size of these cassettes once they are recorded.
71+ By doing so, tests can run faster and the cassettes are easier to read.
72+
73+ To use the compressor on a given cassette, run the following command:
74+
75+ ``` sh
76+ go run -v ./cmd/vcr-compressor internal/services/rdb/testdata/acl-basic.cassette
77+ ```
You can’t perform that action at this time.
0 commit comments