Commit afdb26d
fix: correct error message for full label length validation
Fix incorrect error message in NetworkConfiguration label validation.
The error previously stated "key length is greater than" when actually
checking the full label length (key=value combination).
Changes:
- Update error message to say "full label length (key=value)" instead of "key length"
- Add test case to verify the error message is correct
This makes the error message more accurate and helpful for users debugging
label validation issues.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 474906d commit afdb26d
2 files changed
Lines changed: 19 additions & 1 deletion
File tree
- Sources/ContainerResource/Network
- Tests/ContainerResourceTests
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
105 | 123 | | |
0 commit comments