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: README.md
+45-5
Original file line number
Diff line number
Diff line change
@@ -147,6 +147,51 @@ $ docker run -it -v $(pwd):/workpace -w /workpace databricks-terraform plan
147
147
$ docker run -it -v $(pwd):/workpace -w /workpace databricks-terraform apply
148
148
```
149
149
150
+
## Testing
151
+
152
+
*[ ] Integration tests should be run at a client level against both azure and aws to maintain sdk parity against both apis **(currently only on one cloud)**
153
+
*[x] Terraform acceptance tests should be run against both aws and azure to maintain parity of provider between both cloud services **(currently only on one cloud)**
154
+
155
+
### Linting
156
+
157
+
Please use makefile for linting. If you run `golangci-lint` by itself it will fail due to different tags containing same functions.
158
+
So please run `make lint` instead.
159
+
160
+
### Integration Testing
161
+
162
+
Currently Databricks supports two cloud providers `azure` and `aws` thus integration testing with the correct cloud service provider is
163
+
crucial for making sure that the provider behaves as expected on all supported clouds. This type of testing separation is being managed via build tags
164
+
to allow for duplicate method names and environment variables to configure clients.
165
+
166
+
The current integration test implementation uses `CLOUD_ENV` environment variable and can use the value of `azure` or `aws`.
167
+
You can execute the acceptance with the following make commands `make terraform-acc-azure`, and `make terraform-acc-aws` for
168
+
azure and aws respectively.
169
+
170
+
This involves bootstrapping the provider via a .env configuration file. Without these files in the root directory the tests
171
+
will fail as the provider will not have a authorized token and host.
172
+
173
+
The configuration file for `aws` should be like the following and be named `.aws.env`:
174
+
```.env
175
+
DATABRICKS_HOST=<host>
176
+
DATABRICKS_TOKEN=<token>
177
+
```
178
+
179
+
The configuration file for `azure` should be like the following and be named `.azure.env`:
*[ ] Integration tests should be run at a client level against both azure and aws to maintain sdk parity against both apis **(currently only on one cloud)**
198
-
*[ ] Terraform acceptance tests should be run against both aws and azure to maintain parity of provider between both cloud services **(currently only on one cloud)**
199
-
200
240
## Project Support
201
241
Please note that all projects in the /databrickslabs github account are provided for your exploration only, and are not formally supported by Databricks with Service Level Agreements (SLAs). They are provided AS-IS and we do not make any guarantees of any kind. Please do not submit a support ticket relating to any issues arising from the use of these projects.
0 commit comments