From 69f3984edc829d2bc2d14fdaa4981b012686f3eb Mon Sep 17 00:00:00 2001 From: rabi-siddique Date: Thu, 9 Jan 2025 10:52:03 +0500 Subject: [PATCH] test --- .../vaults-and-reserve-metrics-testing.yml | 22 +++++++++---------- scripts/queries.mjs | 12 +++++----- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/vaults-and-reserve-metrics-testing.yml b/.github/workflows/vaults-and-reserve-metrics-testing.yml index 1c796c88..3cc172fa 100644 --- a/.github/workflows/vaults-and-reserve-metrics-testing.yml +++ b/.github/workflows/vaults-and-reserve-metrics-testing.yml @@ -51,17 +51,17 @@ jobs: - name: Wait for GraphQL server run: sleep 60 - # - name: Test VaultManagerGovernance - # run: ./scripts/validateData.mjs - # env: - # entity: vaultManagerGovernances - # blockHeight: 1178 - - # - name: Test VaultManagerMetrics - # run: ./scripts/validateData.mjs - # env: - # entity: vaultManagerMetrics - # blockHeight: 1170 + - name: Test VaultManagerGovernance + run: ./scripts/validateData.mjs + env: + entity: vaultManagerGovernances + blockHeight: 1178 + + - name: Test VaultManagerMetrics + run: ./scripts/validateData.mjs + env: + entity: vaultManagerMetrics + blockHeight: 1170 - name: Test VaultManagerMetricsDaily run: ./scripts/validateData.mjs diff --git a/scripts/queries.mjs b/scripts/queries.mjs index d062ac95..d3b0e571 100755 --- a/scripts/queries.mjs +++ b/scripts/queries.mjs @@ -10,7 +10,7 @@ export const getQuery = (entity, filters) => { const queries = { vaultManagerGovernances: `query { - vaultManagerGovernances ${filterString} { + vaultManagerGovernances { nodes { id debtLimit @@ -28,7 +28,7 @@ export const getQuery = (entity, filters) => { } }`, vaultManagerMetrics: `query { - vaultManagerMetrics ${filterString} { + vaultManagerMetrics { nodes { id liquidatingCollateralBrand @@ -52,7 +52,7 @@ export const getQuery = (entity, filters) => { } }`, vaultManagerMetricsDailies: `query { - vaultManagerMetricsDailies ${filterString} { + vaultManagerMetricsDailies { nodes { path liquidatingCollateralBrand @@ -77,7 +77,7 @@ export const getQuery = (entity, filters) => { } }`, reserveMetrics: `query { - reserveMetrics ${filterString} { + reserveMetrics { nodes { id shortfallBalance @@ -87,7 +87,7 @@ export const getQuery = (entity, filters) => { } }`, reserveAllocationMetrics: `query { - reserveAllocationMetrics ${filterString} { + reserveAllocationMetrics { nodes { id denom @@ -97,7 +97,7 @@ export const getQuery = (entity, filters) => { } }`, reserveAllocationMetricsDailies: `query { - reserveAllocationMetricsDailies ${filterString} { + reserveAllocationMetricsDailies { nodes { denom key