@@ -47,12 +47,12 @@ var (
47
47
"pvc-34d0f15c-65b9-4229-8b3e-b7bb912e382f" : []string {},
48
48
}
49
49
expectedShared = map [string ]string {
50
- "tp1" : "no " ,
51
- "tp2" : "no " ,
52
- "tp2-snap" : "no " ,
53
- "tp3" : "no " ,
54
- "pvc-6fc1fe2d-25f4-40b0-a616-04c019572154" : "no " ,
55
- "pvc-34d0f15c-65b9-4229-8b3e-b7bb912e382f" : "yes " ,
50
+ "tp1" : "false " ,
51
+ "tp2" : "false " ,
52
+ "tp2-snap" : "false " ,
53
+ "tp3" : "false " ,
54
+ "pvc-6fc1fe2d-25f4-40b0-a616-04c019572154" : "false " ,
55
+ "pvc-34d0f15c-65b9-4229-8b3e-b7bb912e382f" : "true " ,
56
56
}
57
57
)
58
58
@@ -70,10 +70,10 @@ func testVolumeCommon(t *testing.T, volOps PxVolumeOps, v *api.Volume) {
70
70
ba := BooleanAttributes (v )
71
71
eba := expectedAttributes [name ]
72
72
assert .Equalf (t , reflect .DeepEqual (ba , eba ), true , "Wrong attributes for %s" , name )
73
- y := YesOrNo (true )
74
- assert .Equal (t , y , "yes " , "bool translation not correct" )
75
- n := YesOrNo (false )
76
- assert .Equal (t , n , "no " , "bool translation not correct" )
73
+ y := TrueOrFalse (true )
74
+ assert .Equal (t , y , "true " , "bool translation not correct" )
75
+ n := TrueOrFalse (false )
76
+ assert .Equal (t , n , "false " , "bool translation not correct" )
77
77
}
78
78
79
79
func TestVolumeCommon (t * testing.T ) {
0 commit comments