Commit faebed1
authored
Disable rate limit for local acceptance tests; increase for cloud (#3581)
## Changes
Respect DATABRICKS_RATE_LIMIT variable and pass it to tests if set.
If not set, set to higher defaults depending on local/cloud.
Related: #3579
## Tests
New acc test with parallel resources that is good to demo the
difference. Manually try different rate limits:
Set a very low limit:
```
~/work/cli-main/acceptance/bundle/resources/independent % DATABRICKS_RATE_LIMIT=1 testme -v -count=1
+ go test ../../.. -run ^TestAccept$/^bundle$/^resources$/^independent$ -v -count=1
…
--- PASS: TestAccept/bundle/resources/independent/DATABRICKS_CLI_DEPLOYMENT=direct-exp (16.47s)
--- PASS: TestAccept/bundle/resources/independent/DATABRICKS_CLI_DEPLOYMENT=terraform (22.34s)
```
Restore SDK default:
```
~/work/cli-main/acceptance/bundle/resources/independent % DATABRICKS_RATE_LIMIT=15 testme -v -count=1
+ go test ../../.. -run ^TestAccept$/^bundle$/^resources$/^independent$ -v -count=1
--- PASS: TestAccept/bundle/resources/independent/DATABRICKS_CLI_DEPLOYMENT=direct-exp (1.52s)
--- PASS: TestAccept/bundle/resources/independent/DATABRICKS_CLI_DEPLOYMENT=terraform (5.02s)
```
New default:
```
~/work/cli-main/acceptance/bundle/resources/independent % testme -v -count=1
+ go test ../../.. -run ^TestAccept$/^bundle$/^resources$/^independent$ -v -count=1
--- PASS: TestAccept/bundle/resources/independent/DATABRICKS_CLI_DEPLOYMENT=direct-exp (0.46s)
--- PASS: TestAccept/bundle/resources/independent/DATABRICKS_CLI_DEPLOYMENT=terraform (2.36s)
```1 parent 9515c21 commit faebed1
File tree
7 files changed
+52
-0
lines changed- acceptance
- bundle/resources/independent
7 files changed
+52
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
584 | 594 | | |
585 | 595 | | |
586 | 596 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments