Skip to main content

API-ADMIN-METRICS

NameVerify the Get Metrics API (Admin)
CategoryADMIN
Execution MethodSEMI AUTOMATED (VTT)
DescriptionIn this scenario we verify that the Get Metrics functionality exists at a Data Holder.
Preconditions
  • All systems functional with no outages in progress
  • Active Consent agreement with multiple accounts belonging to multiple product categories
Steps
  1. Perform a client_assertion using private_key_jwt against the Data Holder’s identity server using the prescribed client_id given during Register onboarding. Retrieve token information from this call.
  2. Initiate GET /admin/metrics using the token retrieved in (1) specify a period of CURRENT and an x-v of 2. Validate the format of the response is semantically valid with ResponseMetricsListV2 and that it only contains current values populated.
  3. Initiate GET /admin/metrics using the token retrieved in (1) specify a period of HISTORIC and an x-v of 2. Validate the format of the response is semantically valid with ResponseMetricsListV2 and that it only covers previous metrics.
  4. Initiate GET /admin/metrics using the token retrieved in (1) specify a period of ALL and an x-v of 2. Validate the format of the response is semantically valid with ResponseMetricsListV2 and it contains both current and previous values populated.
Inputs

Headers:

  • x-v = 2
  • x-min-v = 2

Parameters:

  • Various based on scenario including:
    • period
  • x-fapi-interaction-id
Expected Results
  1. Verify links validity ensuring each attribute links to the appropriate page locations.
  2. Verify data object validity verifying:
    • All Required Fields
    • Validate that previous is populated only for HISTORIC and ALL requests
    • Validate that current is populated only for CURRENT and ALL requests