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
You can test the provider, by running `make test`.
6
+
7
+
```sh
8
+
make test
9
+
```
10
+
11
+
## Acceptance testing
12
+
13
+
Acceptance test are made to test the terraform module with real API calls so they will create real resources that will be invoiced.
14
+
But in order to run faster tests and avoid bad surprise at the end of the month we shipped the project with mocks (recorded with [go-vcr](https://github.com/dnaeon/go-vcr)).
15
+
16
+
### Running the acceptance tests with mocks
17
+
18
+
By default, mocks are used during acceptance tests.
19
+
20
+
```sh
21
+
make testacc
22
+
```
23
+
24
+
### Running the acceptance tests on real resources
25
+
26
+
:warning: This will cost money.
27
+
28
+
```sh
29
+
export TF_UPDATE_CASSETTES=true
30
+
make testacc
31
+
```
32
+
33
+
It's also required to have Scaleway environment vars available :
TF_UPDATE_CASSETTES=true;TF_LOG=DEBUG;SCW_DEBUG=1;TF_ACC=1 go test ./scaleway -v -run=TestAccScalewayDataSourceRDBInstance_Basic -timeout=120m -parallel=10
0 commit comments