From ccbef30615dc99cf948a6a9d5c65eb9d6696db0b Mon Sep 17 00:00:00 2001 From: Jim Myers Date: Wed, 30 Aug 2023 11:55:55 -0400 Subject: [PATCH] Fixes for Staking Rewards & Blockpour (#47) --- dbt_project.yml | 7 +++++++ macros/marketplace/stakingrewards/udfs.yaml.sql | 2 +- .../marketplace/alchemy/alchemy_nfts__alchemy_utils.yml | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index 1bf62f3..e4938fa 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -37,6 +37,13 @@ models: tests: +store_failures: true # all tests + livequery_models: + deploy: + marketplace: + blockpour: + # TODO: enable tests for blockpour once we get an API key + +enabled: false + on-run-start: - "{{ create_sps() }}" diff --git a/macros/marketplace/stakingrewards/udfs.yaml.sql b/macros/marketplace/stakingrewards/udfs.yaml.sql index 5d2b6b6..c6e361a 100644 --- a/macros/marketplace/stakingrewards/udfs.yaml.sql +++ b/macros/marketplace/stakingrewards/udfs.yaml.sql @@ -14,7 +14,7 @@ SELECT live.udf_api( 'POST', - 'https:/api.stakingrewards.com/public/query', + 'https://api.stakingrewards.com/public/query', {'X-API-KEY': '{API_KEY}'}, QUERY, '_FSC_SYS/STAKINGREWARDS' diff --git a/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml b/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml index 3a0fea4..3f8e28d 100644 --- a/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml +++ b/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml @@ -77,7 +77,7 @@ models: - test_udf: name: test_alchemy_nfts__get_contract_metadata_status_200 args: > - 'ethereum-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'} + 'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'} assertions: - result:status_code = 200 - result:error IS NULL