Skip to content

Commit

Permalink
chore(arch): add test
Browse files Browse the repository at this point in the history
  • Loading branch information
MaineK00n committed Jan 16, 2022
1 parent 2291f79 commit 9938750
Show file tree
Hide file tree
Showing 4 changed files with 739 additions and 0 deletions.
7 changes: 7 additions & 0 deletions integration/client_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ func TestClientServer(t *testing.T) {
},
golden: "testdata/photon-30.json.golden",
},
{
name: "archlinux",
args: csArgs{
Input: "testdata/fixtures/images/archlinux.tar.gz",
},
golden: "testdata/archlinux.json.golden",
},
{
name: "buxybox with Cargo.lock",
args: csArgs{
Expand Down
6 changes: 6 additions & 0 deletions integration/docker_engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ func TestDockerEngine(t *testing.T) {
wantOutputFile: "testdata/photon-30.json.golden",
testfile: "testdata/fixtures/images/photon-30.tar.gz",
},
{
name: "happy path, valid image path, archlinux",
imageTag: "archlinux:latest",
wantOutputFile: "testdata/archlinux.json.golden",
testfile: "testdata/fixtures/images/archlinux.tar.gz",
},
{
name: "buxybox with Cargo.lock",
imageTag: "busy-cargo:latest",
Expand Down
8 changes: 8 additions & 0 deletions integration/standalone_tar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,14 @@ func TestTar(t *testing.T) {
},
golden: "testdata/photon-30.json.golden",
},
{
name: "archlinux",
testArgs: args{
Format: "json",
Input: "testdata/fixtures/images/archlinux.tar.gz",
},
golden: "testdata/archlinux.json.golden",
},
{
name: "buxybox with Cargo.lock integration",
testArgs: args{
Expand Down
Loading

0 comments on commit 9938750

Please sign in to comment.