|
1 | | -# Test Plan: IDP Score (`idp_score`) |
| 1 | +# Test Plan: IDP Score (`idp_score`, `idp_score_summary`) |
2 | 2 |
|
3 | 3 | | Field | Value | |
4 | 4 | |-------|-------| |
5 | | -| **Resource Type** | `idp_score` | |
6 | | -| **Display Name** | IDP Score | |
| 5 | +| **Resource Type** | `idp_score`, `idp_score_summary` | |
| 6 | +| **Display Name** | IDP Score, IDP Score Summary | |
7 | 7 | | **Toolset** | idp | |
8 | 8 | | **Scope** | account | |
9 | | -| **Operations** | list, get | |
| 9 | +| **Operations** | `idp_score`: list; `idp_score_summary`: get | |
10 | 10 | | **Execute Actions** | None | |
11 | | -| **Identifier Fields** | entity_id | |
12 | | -| **Filter Fields** | None | |
| 11 | +| **Identifier Fields** | entity_identifier | |
| 12 | +| **Filter Fields** | entity_identifier | |
13 | 13 | | **Deep Link** | No | |
14 | 14 |
|
15 | 15 | ## Test Cases |
16 | 16 |
|
17 | 17 | | Test ID | Category | Description | Prompt | Expected Result | |
18 | 18 | |---------|----------|-------------|--------|-----------------| |
19 | | -| TC-idp_score-001 | List | List all entity scores with defaults | `harness_list(resource_type="idp_score")` | Returns paginated list of entity scores | |
20 | | -| TC-idp_score-002 | List | List with pagination page 0 | `harness_list(resource_type="idp_score", page=0, size=5)` | Returns first page with up to 5 scores | |
21 | | -| TC-idp_score-003 | List | List with pagination page 1 | `harness_list(resource_type="idp_score", page=1, size=5)` | Returns second page of scores | |
22 | | -| TC-idp_score-004 | List | List with large page size | `harness_list(resource_type="idp_score", size=100)` | Returns up to 100 scores | |
23 | | -| TC-idp_score-005 | Get | Get score by entity_id | `harness_get(resource_type="idp_score", entity_id="my-service")` | Returns score summary for the entity | |
24 | | -| TC-idp_score-006 | Get | Verify score response structure | `harness_get(resource_type="idp_score", entity_id="my-service")` | Response contains score summary fields | |
25 | | -| TC-idp_score-007 | Error | Get with missing entity_id | `harness_get(resource_type="idp_score")` | Error: entity_id is required | |
26 | | -| TC-idp_score-008 | Error | Get non-existent entity score | `harness_get(resource_type="idp_score", entity_id="nonexistent")` | Error: entity not found (404) | |
27 | | -| TC-idp_score-009 | Edge | List with page beyond data | `harness_list(resource_type="idp_score", page=9999)` | Returns empty list | |
28 | | -| TC-idp_score-010 | Edge | List with size=1 | `harness_list(resource_type="idp_score", size=1)` | Returns exactly 1 score | |
| 19 | +| TC-idp_score-001 | List | List scorecard scores for an entity | `harness_list(resource_type="idp_score", filters={"entity_identifier":"default/Component/my-service"})` | Returns overall_score plus scorecard score items for the entity | |
| 20 | +| TC-idp_score-002 | List | List scorecard scores using top-level entity_identifier | `harness_list(resource_type="idp_score", entity_identifier="default/Component/my-service")` | Returns overall_score plus scorecard score items for the entity | |
| 21 | +| TC-idp_score-003 | Error | List without entity_identifier | `harness_list(resource_type="idp_score")` | Error from IDP API or validation indicating entity_identifier is required | |
| 22 | +| TC-idp_score-004 | Error | List scorecard scores for non-existent entity | `harness_list(resource_type="idp_score", filters={"entity_identifier":"default/Component/nonexistent"})` | Error: entity not found or empty/no scores depending on API behavior | |
| 23 | +| TC-idp_score_summary-001 | Get | Get aggregate score summary for an entity | `harness_get(resource_type="idp_score_summary", resource_id="default/Component/my-service")` | Returns aggregate score summary for the entity | |
| 24 | +| TC-idp_score_summary-002 | Get | Get aggregate score summary via params | `harness_get(resource_type="idp_score_summary", params={"entity_identifier":"default/Component/my-service"})` | Returns aggregate score summary for the entity | |
| 25 | +| TC-idp_score_summary-003 | Error | Get summary without entity_identifier | `harness_get(resource_type="idp_score_summary")` | Error: entity_identifier is required | |
| 26 | +| TC-idp_score_summary-004 | Error | Get summary for non-existent entity | `harness_get(resource_type="idp_score_summary", resource_id="default/Component/nonexistent")` | Error: entity not found or empty/no summary depending on API behavior | |
29 | 27 |
|
30 | 28 | ## Notes |
31 | 29 | - Account-scoped resource |
32 | | -- API paths: GET `/v1/scores` (list), GET `/v1/scores/{entityId}` (get) |
33 | | -- No filter fields; only pagination params supported for list |
| 30 | +- API paths: GET `/v1/scores` (`idp_score` list), GET `/v1/scores/summary` (`idp_score_summary` get) |
| 31 | +- `idp_score` requires `entity_identifier` and does not expose pagination |
| 32 | +- `idp_score_summary` requires `entity_identifier` |
34 | 33 | - No deep link template defined |
0 commit comments