@@ -1490,12 +1490,16 @@ animals:
1490
1490
# @notationType -- yaml
1491
1491
fish:
1492
1492
name: nomoby
1493
+
1494
+ # -- (list) Declaring object as yaml with null value
1495
+ # @notationType -- yaml
1496
+ lizards:
1493
1497
` )
1494
1498
1495
1499
valuesRows , err := getSortedValuesTableRows (helmValues , make (map [string ]helm.ChartValueDescription ))
1496
1500
1497
1501
assert .Nil (t , err )
1498
- assert .Len (t , valuesRows , 4 )
1502
+ assert .Len (t , valuesRows , 5 )
1499
1503
1500
1504
assert .Equal (t , "animals.cats" , valuesRows [0 ].Key )
1501
1505
assert .Equal (t , listType , valuesRows [0 ].Type )
@@ -1520,6 +1524,10 @@ animals:
1520
1524
assert .Equal (t , yamlType , valuesRows [3 ].NotationType )
1521
1525
assert .Equal (t , "name: nomoby\n " , valuesRows [3 ].Default )
1522
1526
assert .Equal (t , "My animals lists" , valuesRows [0 ].AutoDescription )
1527
+
1528
+ assert .Equal (t , "animals.lizards" , valuesRows [4 ].Key )
1529
+ assert .Equal (t , listType , valuesRows [4 ].Type )
1530
+ assert .Equal (t , yamlType , valuesRows [4 ].NotationType )
1523
1531
}
1524
1532
1525
1533
func TestExtractCustomDeclaredType (t * testing.T ) {
0 commit comments