Skip to content

Commit

Permalink
Update platform test to verify image platform
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Silva <tsilva@pivotal.io>
  • Loading branch information
taylorsilva committed Jul 15, 2021
1 parent 914a807 commit e0ea63e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,15 @@ func (s *TaskSuite) TestImagePlatform() {

_, err := s.build()
s.NoError(err)

image, err := tarball.ImageFromPath(s.imagePath("image.tar"), nil)
s.NoError(err)

configFile, err := image.ConfigFile()
s.NoError(err)

s.Equal("linux", configFile.OS)
s.Equal("arm64", configFile.Architecture)
}

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

0 comments on commit e0ea63e

Please sign in to comment.