Commit f3806d6
committed
fix(tests): Round 26 - Fix 3 compilation errors
1. O2DMSClient.GetInventory at line 497:
- Another instance of non-existent GetInventory method
- Changed to GetDeploymentStatus with test deployment ID
- Matches actual O2DMSClient API methods
2. ValidatePackage type mismatch:
- Method expects *NephioPackage, test passes *mocks.NephioPackage
- Used unsafe.Pointer to convert between mock and actual types
- Added unsafe import to translator package test
- TODO: Consider refactoring test to avoid unsafe conversion
3. MockObservabilityStack.PropagateAlert method:
- Added missing interface method PropagateAlert
- Takes Alert parameter, returns *AlertPropagation and error
- Completes ObservabilityStackInterface implementation
Errors fixed: 3 total
Total errors fixed across all 26 rounds: 1311 parent d593ad3 commit f3806d6
3 files changed
Lines changed: 12 additions & 2 deletions
File tree
- adapters/vnf-operator
- pkg
- dms
- translator
- tests/monitoring
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
406 | 407 | | |
407 | 408 | | |
408 | 409 | | |
409 | | - | |
| 410 | + | |
| 411 | + | |
410 | 412 | | |
411 | 413 | | |
412 | 414 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
88 | 96 | | |
89 | 97 | | |
90 | 98 | | |
| |||
0 commit comments