-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set SSL verification default to True
- Loading branch information
1 parent
5e6331c
commit 2aa6317
Showing
3 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
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,7 @@ | ||
kind: Under the Hood | ||
body: Enable SSL verification by default | ||
time: 2024-11-03T21:25:20.671327+08:00 | ||
custom: | ||
Author: mdesmet | ||
Issue: "441" | ||
PR: "442" |
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,18 @@ | ||
import warnings | ||
|
||
import pytest | ||
from dbt.tests.util import run_dbt | ||
from urllib3.exceptions import InsecureRequestWarning | ||
|
||
|
||
@pytest.mark.skip_profile("trino_starburst") | ||
class TestInsecureWarnings: | ||
def test_table_properties(self, project): | ||
with warnings.catch_warnings(record=True) as w: | ||
dbt_args = ["show", "--inline", "select 1"] | ||
run_dbt(dbt_args) | ||
|
||
# Check if not any InsecureRequestWarning was raised | ||
assert not any( | ||
issubclass(warning.category, InsecureRequestWarning) for warning in w | ||
), "InsecureRequestWarning was not raised" |