Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 9b97f81

Browse files
committed
disable caching in tests
1 parent 7a765e9 commit 9b97f81

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

tests/integration_test.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,23 +106,23 @@ func TestDiffAndAnalysis(t *testing.T) {
106106
subcommand: "diff",
107107
imageA: diffBase,
108108
imageB: diffModified,
109-
differFlags: []string{"--type=file"},
109+
differFlags: []string{"--type=file", "--no-cache"},
110110
expectedFile: "file_diff_expected.json",
111111
},
112112
{
113113
description: "file layer differ",
114114
subcommand: "diff",
115115
imageA: diffLayerBase,
116116
imageB: diffLayerModifed,
117-
differFlags: []string{"--type=layer"},
117+
differFlags: []string{"--type=layer", "--no-cache"},
118118
expectedFile: "file_layer_diff_expected.json",
119119
},
120120
{
121121
description: "apt differ",
122122
subcommand: "diff",
123123
imageA: aptBase,
124124
imageB: aptModified,
125-
differFlags: []string{"--type=apt"},
125+
differFlags: []string{"--type=apt", "--no-cache"},
126126
expectedFile: "apt_diff_expected.json",
127127
},
128128
// {
@@ -138,54 +138,54 @@ func TestDiffAndAnalysis(t *testing.T) {
138138
subcommand: "diff",
139139
imageA: nodeBase,
140140
imageB: nodeModified,
141-
differFlags: []string{"--type=node"},
141+
differFlags: []string{"--type=node", "--no-cache"},
142142
expectedFile: "node_diff_order_expected.json",
143143
},
144144
{
145145
description: "multi differ",
146146
subcommand: "diff",
147147
imageA: multiBase,
148148
imageB: multiModified,
149-
differFlags: []string{"--type=node", "--type=pip", "--type=apt"},
149+
differFlags: []string{"--type=node", "--type=pip", "--type=apt", "--no-cache"},
150150
expectedFile: "multi_diff_expected.json",
151151
},
152152
{
153153
description: "multi differ local",
154154
subcommand: "diff",
155155
imageA: multiBaseLocal,
156156
imageB: multiModifiedLocal,
157-
differFlags: []string{"--type=node", "--type=pip", "--type=apt"},
157+
differFlags: []string{"--type=node", "--type=pip", "--type=apt", "--no-cache"},
158158
expectedFile: "multi_diff_expected.json",
159159
},
160160
{
161161
description: "history differ",
162162
subcommand: "diff",
163163
imageA: diffBase,
164164
imageB: diffModified,
165-
differFlags: []string{"--type=history"},
165+
differFlags: []string{"--type=history", "--no-cache"},
166166
expectedFile: "hist_diff_expected.json",
167167
},
168168
{
169169
description: "metadata differ",
170170
subcommand: "diff",
171171
imageA: metadataBase,
172172
imageB: metadataModified,
173-
differFlags: []string{"--type=metadata"},
173+
differFlags: []string{"--type=metadata", "--no-cache"},
174174
expectedFile: "metadata_diff_expected.json",
175175
},
176176
{
177177
description: "apt sorted differ",
178178
subcommand: "diff",
179179
imageA: aptBase,
180180
imageB: aptModified,
181-
differFlags: []string{"--type=apt", "-o"},
181+
differFlags: []string{"--type=apt", "-o", "--no-cache"},
182182
expectedFile: "apt_sorted_diff_expected.json",
183183
},
184184
{
185185
description: "apt analysis",
186186
subcommand: "analyze",
187187
imageA: aptModified,
188-
differFlags: []string{"--type=apt"},
188+
differFlags: []string{"--type=apt", "--no-cache"},
189189
expectedFile: "apt_analysis_expected.json",
190190
},
191191
// {
@@ -199,28 +199,28 @@ func TestDiffAndAnalysis(t *testing.T) {
199199
description: "file sorted analysis",
200200
subcommand: "analyze",
201201
imageA: diffModified,
202-
differFlags: []string{"--type=file", "-o"},
202+
differFlags: []string{"--type=file", "-o", "--no-cache"},
203203
expectedFile: "file_sorted_analysis_expected.json",
204204
},
205205
{
206206
description: "file layer analysis",
207207
subcommand: "analyze",
208208
imageA: diffLayerBase,
209-
differFlags: []string{"--type=layer"},
209+
differFlags: []string{"--type=layer", "--no-cache"},
210210
expectedFile: "file_layer_analysis_expected.json",
211211
},
212212
{
213213
description: "pip analysis",
214214
subcommand: "analyze",
215215
imageA: pipModified,
216-
differFlags: []string{"--type=pip"},
216+
differFlags: []string{"--type=pip", "--no-cache"},
217217
expectedFile: "pip_analysis_expected.json",
218218
},
219219
{
220220
description: "node analysis",
221221
subcommand: "analyze",
222222
imageA: nodeModified,
223-
differFlags: []string{"--type=node"},
223+
differFlags: []string{"--type=node", "--no-cache"},
224224
expectedFile: "node_analysis_expected.json",
225225
},
226226
}

0 commit comments

Comments
 (0)