Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 5.1 KB

File metadata and controls

61 lines (47 loc) · 5.1 KB

Component-Level Testing

Testing of ptx-edge components is based on the basic functionality and applicability of ptx-edge K8s components.

Setup Test Environment

$ ./install-dep.sh -u

Run Tests

$ ./runall.sh -o ./results

For the available configuration parameters, refer to the help menu:

$ ./runall.sh -h
Usage: ./runall.sh [options]

Options:
    -o <dir>    Generate Junit-style reports into <dir>.
    -h          Display help.

Expected Results

Each component test script starting with the prefix test in the folder kubernetes/test/suites is executed successfully (without error/failure notification), while the helper script runall.sh returns with value 0.

Programmatically, each test script returns 0 in case all defined test cases were successful, and a non-zero value otherwise.
The helper script runall.sh follows this UNIX behavior as well.

Test Execution Summary

Important

Since the Edge computing - AI processing BB (ptx-edge) is still under development, the defined test cases only cover the implemented parts of ptx-edge's planned capabilities. Further test cases are expected to be added continuously.

Test Suite Test Case ID Description Expected Outcome Actual Outcome Status Notes
near-data-scheduling testNearDataSchedulingWithNodeAffinity Test K8s node affinity/preference test-report-near-data-scheduling.xml ✔️ OK
pod-scheduling testSchedulingWithCPUConstraint Test K8s pod cpu limits test-report-pod-scheduling.xml OK Assert failure
pod-scheduling testSchedulingWithMemoryConstraint Test K8s pod memory limits test-report-pod-scheduling.xml OK Assert failure
policy-zone-scheduling testPolicyZoneSchedulingWithNodeSelector Test K8s node selector test-report-policy-zone-scheduling.xml ✔️ OK
policy-zone-scheduling testPolicyZoneSchedulingWithNodeAffinity Test K8s node affinity test-report-policy-zone-scheduling.xml ✔️ OK
ptx-edge-builder testPTXEdgeStaticVolumeClaim Test K8s local volume test-report-ptx-edge-builder.xml ✔️ SKIPPED Static volumes not supported in K3s local-path
ptx-edge-builder testPTXEdgeDynamicVolumeClaim Test K3s local-path volume test-report-ptx-edge-builder.xml ✔️ OK
ptx-edge-builder testPTXEdgeBuilder Test builder config test-report-ptx-edge-builder.xml ✔️ OK
ptx-edge-rest-api testPTXEdgeRESTAPI Test rest-api config test-report-ptx-edge-rest-api.xml ✔️ OK
ptx-connector testPTXSandboxCatalog Test ptx-core sandbox config test-report-ptx-connector.xml ✔️ OK
ptx-connector testPTXConnectorConfig Test pdc config test-report-ptx-connector.xml ✔️ OK
ptx-connector testPTXConnector Test pdc deployment test-report-ptx-connector.xml ✔️ OK