Repository navigation
Description
Summary:
Use TEST as the pre-migration environment.
Use SANDBOX as the post-migration environment.
Load a PROD extract into the TEST legacy DB2 database. At the same time run the data migration script in the SANDBOX environment, loading the PROD DB2 extract into the SANDBOX PostgreSQL database.
Use the API tool Postman and possibly k6 (API load test tool) for response comparison.
The environment API base URL's are:
TEST: https://bcregistry-test.apigee.net/
SANDBOX: https://bcregistry-sandbox.apigee.net/
Test the following by comparing API responses.
Search:
- account search history is preserved after migration: compare SANDBOX staff with PROD staff.
GET /mhr/api/v1/search-history - search query results for each of the search types
POST /mhr/api/v1/searches - completed search results for each of the search types (note there is no change to including PPR results).
POST /mhr/api/v1/search-results/{search_id} - account search history after completing searches
GET /mhr/api/v1/search-history
Account Registrations Summary
GET /mhr/api/v1/registrations?collapse=true
- registrations with no changes
- registrations with multiple changes (unit notes vary with staff/non-staff)
- exclusively legacy
- exclusively modernized
- a blend of legacy and modernized
- different frozen status types and registration status types
- sorting
- filtering
Current/composite view of a registration
GET /mhr/api/v1/registrations/{mhr_number}?current=true
- exclusively legacy
- exclusively modernized
- a blend of legacy and modernized
- different frozen status types and registration status types
- registrations with multiple notes
New Registrations:
POST /mhr/api/v1/registrations
POST /mhr/api/v1/transfers/{mhr_number}
POST /mhr/api/v1/exemptions/{mhr_number}
POST /mhr/api/v1/permits/{mhr_number}
POST /mhr/api/v1/notes/{mhr_number}
POST /mhr/api/v1/admin-registrations/{mhr_number}
- each modernized registration type
- for transfers, each tenancy type
- data validation rules do not need to be tested (only test valid registrations)
Reports Comparison:
- requires delay of a few seconds
- set request header Accept="application/pdf"
- search: GET /mhr/api/v1/search-results/{search_id}
- new home registration: GET /mhr/api/v1/registrations/{mhr_number}
- all other registrations: GET /mhr/api/v1/documents/{document_id}
Account ID's with staff access:
TEST: 1554
SANDBOX: 1499
Note: registrations and searches created with these accounts will not show up in the UI dashboard for staff users.
Allowed discrepancies:
- Request ID's and timestamps.
- Date and time representations with different time zones (Modernized timestamps are UTC; legacy are PST).
- Empty optional property values and absent optional property values.
- Extra properties in the modernized JSON.
- Report downloads on migrated registrations will not work in the SANDBOX environment.
Registration requests require a document id. Test cases either need to update the start document id with each test run or the registrations need to be deleted in the TEST and SANDBOX environments before each test run.
Created spreadsheet to track test cases:
https://docs.google.com/spreadsheets/d/1zJzMkJTQGmOYGMftchR1Nwn7yBsm9Vyz6Oj9b4y7k0U/edit#gid=0
Migration tests postman collection can be downloaded from the repo:
https://github.com/bcgov/ppr/blob/main/mhr_api/tests/postman/mhr-api-migration-tests.postman_collection.json
Activity
[-]Set up QA Test Suite for comparison of DB2 transaction to Postgres transaction[/-][+]Set up QA Test Suite for comparison of pre-migration API response to post-migration API responses[/+][-]Set up QA Test Suite for comparison of pre-migration API response to post-migration API responses[/-][+]Set up QA Test Suite for comparison of pre-migration API responses to post-migration API responses[/+]doug-lovett commentedon Jan 17, 2024
Reviewed with Divya, moving to done.