Commit d593ad3
committed
fix(tests): Round 25 - Fix 3 compilation errors
1. MockObservabilityStack.MeasureQueryPerformance method:
- Added missing interface method MeasureQueryPerformance
- Takes query string and TimeRange parameters
- Returns *PerformanceMetrics and error
- Completes ObservabilityStackInterface implementation
2. NephioPackager.ValidatePackage call:
- Method signature requires context.Context as first parameter
- Changed from ValidatePackage(pkg) to ValidatePackage(context.Background(), pkg)
- Matches actual method: ValidatePackage(ctx context.Context, pkg *NephioPackage) error
3. O2DMSClient.RetryCount field:
- Field doesn't exist in O2DMSClient struct
- Changed RetryCount to maxRetries (actual field name)
- Added retryDelay field initialization
- Matches struct definition: maxRetries int, retryDelay time.Duration
Errors fixed: 3 total
Total errors fixed across all 25 rounds: 1281 parent e63f075 commit d593ad3
3 files changed
Lines changed: 11 additions & 2 deletions
File tree
- adapters/vnf-operator
- pkg
- dms
- translator
- tests/monitoring
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
| 431 | + | |
| 432 | + | |
432 | 433 | | |
433 | 434 | | |
434 | 435 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
| |||
0 commit comments