Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

High Level Test Plan

...

  • Load NiFi and login with the credentials defined in .env for NiFi's NGINX
  • Confirm that the following six process groups have been loaded
    1. Generate MeasureReports
    2. Generate Measures
    3. Materialized Views
    4. Reference Data Connector
    5. Requisitions connector
    6. Superset Permissions
      • Check that all passwords are loaded for controller services, InvokeHTTP processors and the global variables per process group are configured
      • If processor groups are not already loaded and in a running state, the test has failed.

...

  • Ensure the client username and password is loaded in for token generation for the following processors in Measures and Get MeasureReports process groups:
    • Generate Measures > Get Measures > Invoke FHIR token
    • Generate Measures > Generate products and measure list > Get Products > Get access token
    • Generate MeasureReports > Get Measures > Invoke FHIR token
    • Generate MeasureReports > Create Token > Get Access Token
  • The client details are defined in the environment file and loaded in preload file
  • If any of the Basic user authentication credentials is not loaded, the processor will output the following response and no measures or measure reports generated:
Code Block
languagejs
{
  "timestamp": "2019-06-06T14:33:18.300+0000",
  "status": 401,
  "error": "Unauthorized",
  "message": "Bad credentials",
  "path": "/api/oauth/token"
}

...

  • Make a POST request to OpenLMIS with grant_type=client_credentials to generate a token with trusted-client credentials
  • Use the Bearer token above to make a GET request to the locations endpoint on FHIR server https://uat.openlmis.org/hapifhir/Location 
  • The result should be a JSON with various locations under the entry tree as sampled in the file fhir_locations.json

...