File tree 3 files changed +22
-1
lines changed
examples/sdk/helm-template
3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ require (
33
33
github.com/gogo/protobuf v1.3.2 // indirect
34
34
github.com/golang/protobuf v1.5.4 // indirect
35
35
github.com/google/gnostic-models v0.6.8 // indirect
36
- github.com/google/go-cmp v0.6 .0 // indirect
36
+ github.com/google/go-cmp v0.7 .0 // indirect
37
37
github.com/google/gofuzz v1.2.0 // indirect
38
38
github.com/google/uuid v1.6.0 // indirect
39
39
github.com/huandu/xstrings v1.5.0 // indirect
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ github.com/google/gnostic-models v0.6.8/go.mod h1:5n7qKqH0f5wFt+aWF8CW6pZLLNOfYu
43
43
github.com/google/go-cmp v0.5.9 /go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY =
44
44
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI =
45
45
github.com/google/go-cmp v0.6.0 /go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY =
46
+ github.com/google/go-cmp v0.7.0 /go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU =
46
47
github.com/google/gofuzz v1.0.0 /go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg =
47
48
github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0 =
48
49
github.com/google/gofuzz v1.2.0 /go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg =
Original file line number Diff line number Diff line change @@ -160,6 +160,26 @@ func TestAnalyzeHostOSCheckCondition(t *testing.T) {
160
160
expected : false ,
161
161
expectErr : false ,
162
162
},
163
+ {
164
+ name : "multiple conditionals, outside the three" ,
165
+ conditional : "redhat >= 8 && < 9 || == 9.1.0" ,
166
+ osInfo : collect.HostOSInfo {
167
+ Platform : "redhat" ,
168
+ PlatformVersion : "9.2" ,
169
+ },
170
+ expected : false ,
171
+ expectErr : false ,
172
+ },
173
+ {
174
+ name : "multiple conditionals, matches the third" ,
175
+ conditional : "redhat >= 8 && < 9 || == 9.2.0" ,
176
+ osInfo : collect.HostOSInfo {
177
+ Platform : "redhat" ,
178
+ PlatformVersion : "9.2" ,
179
+ },
180
+ expected : true ,
181
+ expectErr : false ,
182
+ },
163
183
}
164
184
165
185
for _ , test := range tests {
You can’t perform that action at this time.
0 commit comments