Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions syft/source/image_all_layers_resolver_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package source

import (
"fmt"
"io"
"runtime"
"sort"
"testing"

Expand Down Expand Up @@ -689,6 +691,11 @@ func Test_imageAllLayersResolver_resolvesLinks(t *testing.T) {
func TestAllLayersResolver_AllLocations(t *testing.T) {
img := imagetest.GetFixtureImage(t, "docker-archive", "image-files-deleted")

arch := "x86_64"
if runtime.GOARCH == "arm64" {
arch = "aarch64"
}

resolver, err := newAllLayersResolver(img)
assert.NoError(t, err)

Expand Down Expand Up @@ -799,9 +806,9 @@ func TestAllLayersResolver_AllLocations(t *testing.T) {
"/lib/apk/db/triggers",
"/lib/apk/exec",
"/lib/firmware",
"/lib/ld-musl-x86_64.so.1",
fmt.Sprintf("/lib/ld-musl-%s.so.1", arch),
"/lib/libapk.so.3.12.0",
"/lib/libc.musl-x86_64.so.1",
fmt.Sprintf("/lib/libc.musl-%s.so.1", arch),
"/lib/libcrypto.so.3",
"/lib/libssl.so.3",
"/lib/libz.so.1",
Expand Down