-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
61 additions
and
29 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import re | ||
|
||
from dbt.tests.adapter.dbt_debug.test_dbt_debug import BaseDebug | ||
from dbt.tests.util import run_dbt | ||
|
||
|
||
class TestDebugClickHouse(BaseDebug): | ||
def test_ok(self, project): | ||
run_dbt(["debug"]) | ||
assert "ERROR" not in self.capsys.readouterr().out | ||
|
||
def test_nopass(self, project): | ||
run_dbt(["debug", "--target", "nopass"], expect_pass=False) | ||
self.assertGotValue(re.compile(r"\s+profiles\.yml file"), "ERROR invalid") | ||
|
||
def test_wronguser(self, project): | ||
run_dbt(["debug", "--target", "wronguser"], expect_pass=False) | ||
self.assertGotValue(re.compile(r"\s+Connection test"), "ERROR") | ||
|
||
def test_empty_target(self, project): | ||
run_dbt(["debug", "--target", "none_target"], expect_pass=False) | ||
self.assertGotValue(re.compile(r"\s+output 'none_target'"), "misconfigured") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from dbt.tests.adapter.dbt_show.test_dbt_show import BaseShowLimit, BaseShowSqlHeader | ||
|
||
|
||
class TestShowLimit(BaseShowLimit): | ||
pass | ||
|
||
|
||
class TestShowSqlHeader(BaseShowSqlHeader): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from dbt.tests.adapter.grants.test_incremental_grants import BaseIncrementalGrants | ||
|
||
|
||
class TestIncrementalGrants(BaseIncrementalGrants): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from dbt.tests.adapter.grants.test_invalid_grants import BaseInvalidGrants | ||
|
||
|
||
class TestInvalidGrants(BaseInvalidGrants): | ||
def grantee_does_not_exist_error(self): | ||
return "511" | ||
|
||
# ClickHouse doesn't give a very specific error for an invalid privilege | ||
def privilege_does_not_exist_error(self): | ||
return "Syntax error" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from dbt.tests.adapter.grants.test_model_grants import BaseModelGrants | ||
|
||
|
||
class TestModelGrants(BaseModelGrants): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from dbt.tests.adapter.grants.test_seed_grants import BaseSeedGrants | ||
|
||
|
||
class TestSeedGrants(BaseSeedGrants): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from dbt.tests.adapter.grants.test_snapshot_grants import BaseSnapshotGrants | ||
|
||
|
||
class TestSnapshotGrants(BaseSnapshotGrants): | ||
pass |
File renamed without changes.
File renamed without changes.