Commit 64921fd
committed
test: Add unit tests for zone-redundant load balancers
Add comprehensive unit tests for zone-redundant load balancer functionality:
- Add test fixture (fakeInternalAPILBSpecWithZones) with zone configuration
- Add test case to verify zones are correctly set on frontend IP configs
- Validate that zones array contains all expected zone values (1, 2, 3)
- Ensure zones are properly converted to Azure SDK format
The tests verify that the service layer correctly translates the API spec
into Azure SDK structures with zones on frontend IP configurations.1 parent 8b04806 commit 64921fd
File tree
2 files changed
+40
-0
lines changed- azure/services/loadbalancers
2 files changed
+40
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
114 | 138 | | |
115 | 139 | | |
116 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
181 | 197 | | |
182 | 198 | | |
183 | 199 | | |
| |||
0 commit comments