Commit 1396074
committed
fix(ci): resolve Round 4 compilation errors (7 issues)
Round 4 Fixes:
1. adapters/vnf-operator/tests/chaos/monitoring_chaos_test.go
- Removed unused "net/http" import
2. adapters/vnf-operator/pkg/dms/o2_client_test.go:105
- Fixed: cannot take address of http.Client{}.Timeout
- Changed: &http.Client{}.Timeout → http.Client{}.Timeout
3. adapters/vnf-operator/pkg/translator/nephio_packager_test.go:33
- Removed duplicate ValidatePackage method (already in nephio_packager.go)
4. adapters/vnf-operator/tests/e2e/monitoring_e2e_test.go:127
- Fixed: declared and not used: promURL
- Changed: promURL := → _ = (variable not used in test)
5. adapters/vnf-operator/tests/monitoring/prometheus_deployment_test.go:62
- Fixed: TLSConfig redeclared
- Renamed: TLSConfig → PrometheusTLSConfig (avoid conflict)
6. adapters/vnf-operator/pkg/controller/deployment_controller_test.go:119
- Fixed: undefined: fixtures.eMBBVNFDeployment
- Changed: fixtures.eMBBVNFDeployment() → fixtures.EMBBVNFDeployment()
7. adapters/vnf-operator/tests/performance/monitoring_performance_test.go:537
- Fixed: TestMain using *testing.M instead of GinkgoTestingT
- Added: &testing.T{} + os.Exit(m.Run())
- Added: "os" import
All errors now resolved, code compiles successfully1 parent 1c52c00 commit 1396074
9 files changed
Lines changed: 2922 additions & 15 deletions
File tree
- adapters/vnf-operator
- pkg
- controller
- dms
- translator
- tests
- chaos
- e2e
- monitoring
- performance
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
534 | 535 | | |
535 | 536 | | |
536 | 537 | | |
537 | | - | |
| 538 | + | |
| 539 | + | |
538 | 540 | | |
0 commit comments