Commit ef92c71
authored
acc: add EnvVaryOutput (#3438)
## Changes
Add new flag to acceptance test: EnvVaryOutput. This allows recording
environment specific output in a single test.
## Why
In some cases the output of a command is too different between terraform
and direct (e.g. everything where an error happens). It is still
desirable to have it a single test where common things (configs,
recorded API requests) can be compared. Current workaround is to have
parent directory with config and common script and 2 tests that copy the
config and the script. That involves too much overhead when writing a
test. This feature allows having single test but record different
outputs as follows:
`$CLI bundle deploy &> out.$DATABRICKS_CLI_DEPLOYMENT.txt`
The test runner will compare only the variant applicable to current
subtest.
## Tests
New selftest. Existing tests that could benefit are converted to use
this.1 parent 50797ad commit ef92c71
File tree
56 files changed
+203
-218
lines changed- acceptance
- bundle
- debug
- direct
- tf
- resource_deps
- loop_jobs
- direct
- terraform
- loop_self
- direct
- terraform
- internal
- selftest/envoutput
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
56 files changed
+203
-218
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
303 | 307 | | |
304 | 308 | | |
305 | 309 | | |
| |||
635 | 639 | | |
636 | 640 | | |
637 | 641 | | |
| 642 | + | |
| 643 | + | |
638 | 644 | | |
639 | 645 | | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
640 | 650 | | |
641 | 651 | | |
642 | 652 | | |
| |||
1336 | 1346 | | |
1337 | 1347 | | |
1338 | 1348 | | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
File renamed without changes.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
File renamed without changes.
0 commit comments