Skip to content

Commit e0ea63e

Browse files
committed
Update platform test to verify image platform
Signed-off-by: Taylor Silva <[email protected]>
1 parent 914a807 commit e0ea63e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

task_test.go

+9
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,15 @@ func (s *TaskSuite) TestImagePlatform() {
537537

538538
_, err := s.build()
539539
s.NoError(err)
540+
541+
image, err := tarball.ImageFromPath(s.imagePath("image.tar"), nil)
542+
s.NoError(err)
543+
544+
configFile, err := image.ConfigFile()
545+
s.NoError(err)
546+
547+
s.Equal("linux", configFile.OS)
548+
s.Equal("arm64", configFile.Architecture)
540549
}
541550

542551
func (s *TaskSuite) build() (task.Response, error) {

0 commit comments

Comments
 (0)