We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c7b287 commit 6663380Copy full SHA for 6663380
pkg/update/result_test.go
@@ -117,6 +117,28 @@ func TestResultV2(t *testing.T) {
117
Setter: "foo-ns:policy",
118
})
119
120
+ expectedFileChanges := map[string]ObjectChanges{
121
+ "foo.yaml": {
122
+ objectNames[0]: []Change{
123
+ {
124
+ OldValue: "aaa",
125
+ NewValue: "bbb",
126
+ Setter: "foo-ns:policy:name",
127
+ },
128
129
130
+ "bar.yaml": {
131
+ objectNames[1]: []Change{
132
133
+ OldValue: "cccc:v1.0",
134
+ NewValue: "cccc:v1.2",
135
+ Setter: "foo-ns:policy",
136
137
138
139
+ }
140
+ g.Expect(result.FileChanges).To(Equal(expectedFileChanges))
141
+
142
result = ResultV2{
143
FileChanges: map[string]ObjectChanges{
144
"foo.yaml": {
0 commit comments