@@ -122,6 +122,8 @@ 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" ))
126+
125127 Expect (image ).To (HaveFileWithContent ("/var/lib/dpkg/status.d/ca-certificates" , SatisfyAll (
126128 ContainSubstring ("Package: ca-certificates" ),
127129 MatchRegexp ("Version: [0-9]+" ),
@@ -132,6 +134,8 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
132134 ContainSubstring ("/." ),
133135 )))
134136
137+ Expect (image ).To (HaveFile ("/var/lib/dpkg/info/ca-certificates.md5sums" ))
138+
135139 Expect (image ).To (HaveFileWithContent ("/var/lib/dpkg/status.d/libc6" , SatisfyAll (
136140 ContainSubstring ("Package: libc6" ),
137141 MatchRegexp ("Version: [0-9\\ .\\ -]+ubuntu[0-9\\ .]+" ),
@@ -144,6 +148,8 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
144148 ContainSubstring ("/." ),
145149 )))
146150
151+ Expect (image ).To (HaveFile ("/var/lib/dpkg/info/libc6.md5sums" ))
152+
147153 Expect (image ).To (HaveFileWithContent ("/var/lib/dpkg/status.d/libssl3t64" , SatisfyAll (
148154 ContainSubstring ("Package: libssl3t64" ),
149155 MatchRegexp ("Version: [0-9\\ .\\ -]+ubuntu[0-9\\ .]+" ),
@@ -156,6 +162,8 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
156162 ContainSubstring ("/." ),
157163 )))
158164
165+ Expect (image ).To (HaveFile ("/var/lib/dpkg/info/libssl3t64.md5sums" ))
166+
159167 Expect (image ).To (HaveFileWithContent ("/var/lib/dpkg/status.d/netbase" , SatisfyAll (
160168 ContainSubstring ("Package: netbase" ),
161169 MatchRegexp ("Version: [0-9\\ .]+" ),
@@ -166,6 +174,8 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
166174 ContainSubstring ("/." ),
167175 )))
168176
177+ Expect (image ).To (HaveFile ("/var/lib/dpkg/info/netbase.md5sums" ))
178+
169179 Expect (image ).To (HaveFileWithContent ("/var/lib/dpkg/status.d/openssl" , SatisfyAll (
170180 ContainSubstring ("Package: openssl" ),
171181 MatchRegexp ("Version: [0-9\\ .\\ -]+ubuntu[0-9\\ .]+" ),
@@ -178,6 +188,8 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
178188 ContainSubstring ("/." ),
179189 )))
180190
191+ Expect (image ).To (HaveFile ("/var/lib/dpkg/info/openssl.md5sums" ))
192+
181193 Expect (image ).To (HaveFileWithContent ("/var/lib/dpkg/status.d/tzdata" , SatisfyAll (
182194 ContainSubstring ("Package: tzdata" ),
183195 MatchRegexp ("Version: [a-z0-9\\ .\\ -]+ubuntu[0-9\\ .]+" ),
@@ -188,6 +200,8 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
188200 ContainSubstring ("/." ),
189201 )))
190202
203+ Expect (image ).To (HaveFile ("/var/lib/dpkg/info/tzdata.md5sums" ))
204+
191205 Expect (image ).To (HaveFileWithContent ("/var/lib/dpkg/status.d/zlib1g" , SatisfyAll (
192206 ContainSubstring ("Package: zlib1g" ),
193207 MatchRegexp ("Version: [a-z0-9\\ .\\ -\\ :]+ubuntu[0-9\\ .]+" ),
@@ -200,6 +214,8 @@ func testMetadataTinyStack(t *testing.T, context spec.G, it spec.S) {
200214 ContainSubstring ("/." ),
201215 )))
202216
217+ Expect (image ).To (HaveFile ("/var/lib/dpkg/info/zlib1g.md5sums" ))
218+
203219 Expect (image ).NotTo (HaveFile ("/usr/share/ca-certificates" ))
204220
205221 Expect (image ).To (HaveFileWithContent ("/etc/os-release" , SatisfyAll (
0 commit comments