Skip to content

Commit

Permalink
Update default field name
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah-witt committed Nov 23, 2021
1 parent 4b2bf8c commit 0ec992e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def instance_only_custom_queries(field, value):
return False


def instance_schema(field, value):
def instance_schema_(field, value):
return 'ACCOUNT_USAGE'


Expand Down
9 changes: 9 additions & 0 deletions snowflake/tests/test_snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ def test_emits_critical_service_check_when_service_is_down(dd_run_check, aggrega
aggregator.assert_service_check('snowflake.can_connect', SnowflakeCheck.CRITICAL)


def test_no_schema(dd_run_check, aggregator, instance):
config = copy.deepcopy(instance)
del config['schema']
config['login_timeout'] = 5
check = SnowflakeCheck(CHECK_NAME, {}, [config])
dd_run_check(check)
aggregator.assert_service_check('snowflake.can_connect', SnowflakeCheck.CRITICAL)


def test_storage_metrics(dd_run_check, aggregator, instance):
# type: (Callable[[SnowflakeCheck], None], AggregatorStub, Dict[str, Any]) -> None

Expand Down

0 comments on commit 0ec992e

Please sign in to comment.