Skip to content

Commit 8570f6e

Browse files
authored
Update metadata_tiny_stack_test.go
Modified test to read the md5sums file from status.d directory instead of info.
1 parent 993c495 commit 8570f6e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

metadata_tiny_stack_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
122122
ContainSubstring("/."),
123123
)))
124124

125-
Expect(image).To(HaveFile("/var/lib/dpkg/info/base-files.md5sums"))
125+
Expect(image).To(HaveFile("/var/lib/dpkg/status.d/base-files.md5sums"))
126126

127127
Expect(image).To(HaveFileWithContent("/var/lib/dpkg/status.d/ca-certificates", SatisfyAll(
128128
ContainSubstring("Package: ca-certificates"),
@@ -134,7 +134,7 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
134134
ContainSubstring("/."),
135135
)))
136136

137-
Expect(image).To(HaveFile("/var/lib/dpkg/info/ca-certificates.md5sums"))
137+
Expect(image).To(HaveFile("/var/lib/dpkg/status.d/ca-certificates.md5sums"))
138138

139139
Expect(image).To(HaveFileWithContent("/var/lib/dpkg/status.d/libc6", SatisfyAll(
140140
ContainSubstring("Package: libc6"),
@@ -148,7 +148,7 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
148148
ContainSubstring("/."),
149149
)))
150150

151-
Expect(image).To(HaveFile("/var/lib/dpkg/info/libc6.md5sums"))
151+
Expect(image).To(HaveFile("/var/lib/dpkg/status.d/libc6.md5sums"))
152152

153153
Expect(image).To(HaveFileWithContent("/var/lib/dpkg/status.d/libssl3t64", SatisfyAll(
154154
ContainSubstring("Package: libssl3t64"),
@@ -162,7 +162,7 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
162162
ContainSubstring("/."),
163163
)))
164164

165-
Expect(image).To(HaveFile("/var/lib/dpkg/info/libssl3t64.md5sums"))
165+
Expect(image).To(HaveFile("/var/lib/dpkg/status.d/libssl3t64.md5sums"))
166166

167167
Expect(image).To(HaveFileWithContent("/var/lib/dpkg/status.d/netbase", SatisfyAll(
168168
ContainSubstring("Package: netbase"),
@@ -174,7 +174,7 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
174174
ContainSubstring("/."),
175175
)))
176176

177-
Expect(image).To(HaveFile("/var/lib/dpkg/info/netbase.md5sums"))
177+
Expect(image).To(HaveFile("/var/lib/dpkg/status.d/netbase.md5sums"))
178178

179179
Expect(image).To(HaveFileWithContent("/var/lib/dpkg/status.d/openssl", SatisfyAll(
180180
ContainSubstring("Package: openssl"),
@@ -188,7 +188,7 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
188188
ContainSubstring("/."),
189189
)))
190190

191-
Expect(image).To(HaveFile("/var/lib/dpkg/info/openssl.md5sums"))
191+
Expect(image).To(HaveFile("/var/lib/dpkg/status.d/openssl.md5sums"))
192192

193193
Expect(image).To(HaveFileWithContent("/var/lib/dpkg/status.d/tzdata", SatisfyAll(
194194
ContainSubstring("Package: tzdata"),
@@ -200,7 +200,7 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
200200
ContainSubstring("/."),
201201
)))
202202

203-
Expect(image).To(HaveFile("/var/lib/dpkg/info/tzdata.md5sums"))
203+
Expect(image).To(HaveFile("/var/lib/dpkg/status.d/tzdata.md5sums"))
204204

205205
Expect(image).To(HaveFileWithContent("/var/lib/dpkg/status.d/zlib1g", SatisfyAll(
206206
ContainSubstring("Package: zlib1g"),
@@ -214,7 +214,7 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
214214
ContainSubstring("/."),
215215
)))
216216

217-
Expect(image).To(HaveFile("/var/lib/dpkg/info/zlib1g.md5sums"))
217+
Expect(image).To(HaveFile("/var/lib/dpkg/status.d/zlib1g.md5sums"))
218218

219219
Expect(image).NotTo(HaveFile("/usr/share/ca-certificates"))
220220

0 commit comments

Comments
 (0)