@@ -106,23 +106,23 @@ func TestDiffAndAnalysis(t *testing.T) {
106
106
subcommand : "diff" ,
107
107
imageA : diffBase ,
108
108
imageB : diffModified ,
109
- differFlags : []string {"--type=file" },
109
+ differFlags : []string {"--type=file" , "--no-cache" },
110
110
expectedFile : "file_diff_expected.json" ,
111
111
},
112
112
{
113
113
description : "file layer differ" ,
114
114
subcommand : "diff" ,
115
115
imageA : diffLayerBase ,
116
116
imageB : diffLayerModifed ,
117
- differFlags : []string {"--type=layer" },
117
+ differFlags : []string {"--type=layer" , "--no-cache" },
118
118
expectedFile : "file_layer_diff_expected.json" ,
119
119
},
120
120
{
121
121
description : "apt differ" ,
122
122
subcommand : "diff" ,
123
123
imageA : aptBase ,
124
124
imageB : aptModified ,
125
- differFlags : []string {"--type=apt" },
125
+ differFlags : []string {"--type=apt" , "--no-cache" },
126
126
expectedFile : "apt_diff_expected.json" ,
127
127
},
128
128
// {
@@ -138,54 +138,54 @@ func TestDiffAndAnalysis(t *testing.T) {
138
138
subcommand : "diff" ,
139
139
imageA : nodeBase ,
140
140
imageB : nodeModified ,
141
- differFlags : []string {"--type=node" },
141
+ differFlags : []string {"--type=node" , "--no-cache" },
142
142
expectedFile : "node_diff_order_expected.json" ,
143
143
},
144
144
{
145
145
description : "multi differ" ,
146
146
subcommand : "diff" ,
147
147
imageA : multiBase ,
148
148
imageB : multiModified ,
149
- differFlags : []string {"--type=node" , "--type=pip" , "--type=apt" },
149
+ differFlags : []string {"--type=node" , "--type=pip" , "--type=apt" , "--no-cache" },
150
150
expectedFile : "multi_diff_expected.json" ,
151
151
},
152
152
{
153
153
description : "multi differ local" ,
154
154
subcommand : "diff" ,
155
155
imageA : multiBaseLocal ,
156
156
imageB : multiModifiedLocal ,
157
- differFlags : []string {"--type=node" , "--type=pip" , "--type=apt" },
157
+ differFlags : []string {"--type=node" , "--type=pip" , "--type=apt" , "--no-cache" },
158
158
expectedFile : "multi_diff_expected.json" ,
159
159
},
160
160
{
161
161
description : "history differ" ,
162
162
subcommand : "diff" ,
163
163
imageA : diffBase ,
164
164
imageB : diffModified ,
165
- differFlags : []string {"--type=history" },
165
+ differFlags : []string {"--type=history" , "--no-cache" },
166
166
expectedFile : "hist_diff_expected.json" ,
167
167
},
168
168
{
169
169
description : "metadata differ" ,
170
170
subcommand : "diff" ,
171
171
imageA : metadataBase ,
172
172
imageB : metadataModified ,
173
- differFlags : []string {"--type=metadata" },
173
+ differFlags : []string {"--type=metadata" , "--no-cache" },
174
174
expectedFile : "metadata_diff_expected.json" ,
175
175
},
176
176
{
177
177
description : "apt sorted differ" ,
178
178
subcommand : "diff" ,
179
179
imageA : aptBase ,
180
180
imageB : aptModified ,
181
- differFlags : []string {"--type=apt" , "-o" },
181
+ differFlags : []string {"--type=apt" , "-o" , "--no-cache" },
182
182
expectedFile : "apt_sorted_diff_expected.json" ,
183
183
},
184
184
{
185
185
description : "apt analysis" ,
186
186
subcommand : "analyze" ,
187
187
imageA : aptModified ,
188
- differFlags : []string {"--type=apt" },
188
+ differFlags : []string {"--type=apt" , "--no-cache" },
189
189
expectedFile : "apt_analysis_expected.json" ,
190
190
},
191
191
// {
@@ -199,28 +199,28 @@ func TestDiffAndAnalysis(t *testing.T) {
199
199
description : "file sorted analysis" ,
200
200
subcommand : "analyze" ,
201
201
imageA : diffModified ,
202
- differFlags : []string {"--type=file" , "-o" },
202
+ differFlags : []string {"--type=file" , "-o" , "--no-cache" },
203
203
expectedFile : "file_sorted_analysis_expected.json" ,
204
204
},
205
205
{
206
206
description : "file layer analysis" ,
207
207
subcommand : "analyze" ,
208
208
imageA : diffLayerBase ,
209
- differFlags : []string {"--type=layer" },
209
+ differFlags : []string {"--type=layer" , "--no-cache" },
210
210
expectedFile : "file_layer_analysis_expected.json" ,
211
211
},
212
212
{
213
213
description : "pip analysis" ,
214
214
subcommand : "analyze" ,
215
215
imageA : pipModified ,
216
- differFlags : []string {"--type=pip" },
216
+ differFlags : []string {"--type=pip" , "--no-cache" },
217
217
expectedFile : "pip_analysis_expected.json" ,
218
218
},
219
219
{
220
220
description : "node analysis" ,
221
221
subcommand : "analyze" ,
222
222
imageA : nodeModified ,
223
- differFlags : []string {"--type=node" },
223
+ differFlags : []string {"--type=node" , "--no-cache" },
224
224
expectedFile : "node_analysis_expected.json" ,
225
225
},
226
226
}
0 commit comments