From 0bf3822d90d7c64b15270e5e510861786562a92c Mon Sep 17 00:00:00 2001 From: Mike Alfare <13974384+mikealfare@users.noreply.github.com> Date: Wed, 11 Oct 2023 13:21:58 -0400 Subject: [PATCH] ADAP-893: Support test results as views (#783) * implement persist test results tests, leave querying relation type as open issue * update to use centralized relation type tests * update changelog and test names to reflect renamed parameter * implement store-failures-as test cases * revert dev branch update * update tests to cover new test cases in dbt-core --- .../unreleased/Features-20230919-171047.yaml | 6 +++++ .../test_store_test_failures.py | 27 ++++++++++++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Features-20230919-171047.yaml diff --git a/.changes/unreleased/Features-20230919-171047.yaml b/.changes/unreleased/Features-20230919-171047.yaml new file mode 100644 index 000000000..744c16e84 --- /dev/null +++ b/.changes/unreleased/Features-20230919-171047.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Support storing test failures as views +time: 2023-09-19T17:10:47.516098-04:00 +custom: + Author: mikealfare + Issue: "6914" diff --git a/tests/functional/adapter/store_test_failures_tests/test_store_test_failures.py b/tests/functional/adapter/store_test_failures_tests/test_store_test_failures.py index 2a7e0158e..b3bce12c3 100644 --- a/tests/functional/adapter/store_test_failures_tests/test_store_test_failures.py +++ b/tests/functional/adapter/store_test_failures_tests/test_store_test_failures.py @@ -1,7 +1,32 @@ +from dbt.tests.adapter.store_test_failures_tests import basic from dbt.tests.adapter.store_test_failures_tests.test_store_test_failures import ( TestStoreTestFailures, ) -class SnowflakeTestStoreTestFailures(TestStoreTestFailures): +class TestSnowflakeStoreTestFailures(TestStoreTestFailures): + pass + + +class TestStoreTestFailuresAsInteractions(basic.StoreTestFailuresAsInteractions): + pass + + +class TestStoreTestFailuresAsProjectLevelOff(basic.StoreTestFailuresAsProjectLevelOff): + pass + + +class TestStoreTestFailuresAsProjectLevelView(basic.StoreTestFailuresAsProjectLevelView): + pass + + +class TestStoreTestFailuresAsGeneric(basic.StoreTestFailuresAsGeneric): + pass + + +class TestStoreTestFailuresAsProjectLevelEphemeral(basic.StoreTestFailuresAsProjectLevelEphemeral): + pass + + +class TestStoreTestFailuresAsExceptions(basic.StoreTestFailuresAsExceptions): pass