databricks-cli/integration/bundle
Denis Bilenko 8fd793b605
Clean up TestMain from integration tests to fix caching (#2090)
## Changes
- Remove TestMain from integration tests and related checks.
- This fixes "go test" caching for integration tests.

The test_main.go files were added in
https://github.com/databricks/cli/pull/2009 to make sure integration
tests are not run as part of go test ./.... We recommend running make
test to run tests, which includes the packages to test (and excludes
integration).

## Tests
To test that caching works I ran a test twice:

```
+ CLOUD_ENV=aws
+ go test --timeout 3h -v -run TestDefaultPython/3.9 ./integration/bundle/
…
PASS
ok      github.com/databricks/cli/integration/bundle    (cached)
```
2025-01-08 11:59:22 +00:00
..
bundles Move integration tests to `integration` package (#2009) 2024-12-13 15:38:58 +01:00
testdata Add tests for default-python template on different Python versions (#2025) 2024-12-20 14:40:54 +00:00
artifacts_test.go Add validation mutator for volume `artifact_path` (#2050) 2025-01-02 17:23:15 +05:30
basic_test.go Move integration test helpers to `integration/internal` (#2022) 2024-12-17 08:45:58 +01:00
bind_resource_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
clusters_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
dashboards_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
deploy_test.go Enable testifylint and fix the issues (#2065) 2025-01-02 12:03:41 +01:00
deploy_then_remove_resources_test.go Move integration test helpers to `integration/internal` (#2022) 2024-12-17 08:45:58 +01:00
deploy_to_shared_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
deployment_state_test.go Move integration test helpers to `integration/internal` (#2022) 2024-12-17 08:45:58 +01:00
destroy_test.go Enable testifylint and fix the issues (#2065) 2025-01-02 12:03:41 +01:00
empty_bundle_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
environments_test.go Move integration test helpers to `integration/internal` (#2022) 2024-12-17 08:45:58 +01:00
generate_job_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
generate_pipeline_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
helpers_test.go Refactor initTestTemplate/deployBundle/destroyBundle to not return errors (#2017) 2024-12-16 13:41:32 +01:00
init_default_python_test.go Move bulk of "golden tests" logic to libs/testdiff (#2054) 2024-12-30 15:26:21 +00:00
init_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
job_metadata_test.go Move integration test helpers to `integration/internal` (#2022) 2024-12-17 08:45:58 +01:00
local_state_staleness_test.go Move integration test helpers to `integration/internal` (#2022) 2024-12-17 08:45:58 +01:00
python_wheel_test.go Remove superfluous helper (#2028) 2024-12-17 17:34:09 +00:00
spark_jar_test.go Skip job runs during integration testing for PRs (#2024) 2024-12-17 17:16:58 +00:00
validate_test.go Remove calls to `testutil.GetEnvOrSkipTest(t, "CLOUD_ENV")` (#2014) 2024-12-13 16:09:51 +00:00