...
Expand |
---|
The following abbreviations are used in the functional test case description below since there may be substantial repetition along with clarification notes associated with some terms CHECK-REQ-OR-OPTIONAL Check if the test is required or optional. For instance, health checks for dependencies is likely optional because this will be captured in the tests for request/response
EMULATORS-OR-SERVICES-ARE-UP
Emulator or service should be up and running Emulator or service configuration file should be available and loaded Notes: For OOF internal components (e.g. OOF-OSDF connecting to OOF-HAS API), real services may be used when convenient
- HTTP-200-TRUE
Component (or all components) should return health status as “true” (HTTP response code of 200, response content containing the string "true") - Notes: (a) Verify whether the external components also have standardized on "true" as the value
- SIMPLE-GET-HEALTH-CHECK-API
- API: healthcheck
- HTTP Request Method: GET
- HTTP Endpoint: http://<host>:<port>/healthcheck
- Notes: (a) check whether https can/should be used, and whether mutual TLS is required when using OOM/K8S, and
(b) verify if the health check is required for dependencies (it will help in quickly debugging but will add extra logic in our testing)
- SIMPLE-GET-POST-TO-EMULATORS-OR-SERVICES
API: specific to each component Endpoint: http://<host>:<port>/<specific-API> Method - POST in most cases; GET in some cases - Notes: (a) check whether https can/should be used, and whether mutual TLS is required when using OOM/K8S
|
Anchor |
---|
| OOF Beijing Release Functional Test Cases |
---|
| OOF Beijing Release Functional Test Cases |
---|
|
OOF-OSDF Beijing Release CSIT Functional Test Cases
Id | Description | Pre-conditions | Test Steps | Expected Results |
A: Health Checks for OOF-OSDF Components and Dependencies (Policy and OOF-HAS API) |
A.1 | Perform health check for the OOF-OSDF components using Health Check API | [OSDF Manager] EMULATORS-OR-SERVICES-ARE-UP Server and authentication details should be configured at $OOF_HOME/config/feature-healthcheck.properties | SIMPLE-GET-HEALTH-CHECK-API | HTTP-200-TRUE |
A.2 | CHECK-REQ-OR-OPTIONAL Perform health check for the following external components and OOF components using Health Check API: - Policy (external component)
- OOF-HAS API (OOF component)
| [Policy Emulator] [OOF-HAS API – container or emulator] EMULATORS-OR-SERVICES-ARE-UP
| SIMPLE-GET-HEALTH-CHECK-API | HTTP-200-TRUE
|
B: Fetch Data from Emulators (valid and invalid data, via GET and POST) |
B.1 |
Post Valid Retrieve data Retrieve response corresponding to "valid request" from HAS-API emulator |
(or HAS-API container)OSDF → HAS (POST with valid and invalid templates | [OOF-HAS API – container or emulator]EMULATORS-OR-SERVICES-ARE-UP | SIMPLE-GET-POST-TO-EMULATORS-OR-SERVICES TODO: Payloads and Endpoint | Should receive response for valid request TODO: Payloads |
B.2 | Retrieve response corresponding to "valid policy query" from Policy emulator - OSDF → Policy (POST query data)
| [Policy] EMULATORS-OR-SERVICES-ARE-UP | SIMPLE-GET-POST-TO-EMULATORS-OR-SERVICES TODO: Payloads and Endpoint | Should receive response for valid policy query TODO: Payloads |
B.3 | CHECK-REQ-OR-OPTIONAL OSDF → Policy (bad result) OSDF → HAS (GET; bad status |
/solution Policy (POST to query policyHAS (GET; solution found) | [Policy Emulator] [OOF-HAS API – container or emulator] EMULATORS-OR-SERVICES-ARE-UP | SIMPLE-GET-POST-TO-EMULATORS-OR-SERVICES TODO: Payloads and Endpoint | Should receive |
expected data:corresponding responses TODO: Payloads |
C: Run Complete Requests for Different Applications |
C.1 | SO → OSDF → HAS (well formatted request) | [Policy Emulator] [OOF-HAS API – container or emulator] EMULATORS-OR-SERVICES-ARE-UP | SIMPLE-GET-POST-TO-EMULATORS-OR-SERVICES TODO: Payloads, Endpoint, and Call-Back URL | Should receive a valid Conductor reponse TODO: Payloads |
C.2 | CHECK-REQ-OR-OPTIONAL SO → OSDF → HAS (mal-formatted request or a data error so that the request goes through OSDF but fails at Conductor) | [Policy Emulator] [OOF-HAS API – container or emulator] EMULATORS-OR-SERVICES-ARE-UP | SIMPLE-GET-POST-TO-EMULATORS-OR-SERVICES TODO: Payloads, Endpoint, and Call-Back URL | Should receive a RequestError or an error from Conductor TODO: Payloads |
Test Planning for OOF Homing and Allocation Service (OOF-HAS)
...