Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed Feb 13, 2024
1 parent fcb6a08 commit e9f5fa9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions providers/os/connection/tar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestTarCommand(t *testing.T) {
Options: map[string]string{
connection.OPTION_FILE: alpineContainerPath,
},
}, nil)
}, &inventory.Asset{})
assert.Equal(t, nil, err, "should create tar without error")

cmd, err := c.RunCommand("ls /")
Expand All @@ -62,7 +62,7 @@ func TestPlatformIdentifier(t *testing.T) {
Options: map[string]string{
connection.OPTION_FILE: alpineContainerPath,
},
}, nil)
}, &inventory.Asset{})
require.NoError(t, err)
platformId, err := conn.Identifier()
require.NoError(t, err)
Expand All @@ -78,7 +78,7 @@ func TestTarSymlinkFile(t *testing.T) {
Options: map[string]string{
connection.OPTION_FILE: alpineContainerPath,
},
}, nil)
}, &inventory.Asset{})
assert.Equal(t, nil, err, "should create tar without error")

f, err := c.FileSystem().Open("/bin/cat")
Expand Down Expand Up @@ -110,7 +110,7 @@ func TestTarRelativeSymlinkFileCentos(t *testing.T) {
Options: map[string]string{
connection.OPTION_FILE: centosContainerPath,
},
}, nil)
}, &inventory.Asset{})
assert.Equal(t, nil, err, "should create tar without error")

f, err := c.FileSystem().Open("/etc/redhat-release")
Expand Down Expand Up @@ -141,7 +141,7 @@ func TestTarFile(t *testing.T) {
Options: map[string]string{
connection.OPTION_FILE: alpineContainerPath,
},
}, nil)
}, &inventory.Asset{})
assert.Equal(t, nil, err, "should create tar without error")

f, err := c.FileSystem().Open("/etc/alpine-release")
Expand Down Expand Up @@ -171,7 +171,7 @@ func TestFilePermissions(t *testing.T) {
Options: map[string]string{
connection.OPTION_FILE: alpineContainerPath,
},
}, nil)
}, &inventory.Asset{})
require.NoError(t, err)

path := "/etc/alpine-release"
Expand Down Expand Up @@ -228,7 +228,7 @@ func TestTarFileFind(t *testing.T) {
Options: map[string]string{
connection.OPTION_FILE: alpineContainerPath,
},
}, nil)
}, &inventory.Asset{})
assert.Equal(t, nil, err, "should create tar without error")

fs := c.FileSystem()
Expand Down

0 comments on commit e9f5fa9

Please sign in to comment.