Skip to content

Commit

Permalink
Remove test checks that cannot be used
Browse files Browse the repository at this point in the history
Signed-off-by: João Pereira <joao.pereira@broadcom.com>
  • Loading branch information
joaopapereira committed Sep 18, 2024
1 parent f8b7f8e commit 44e21cb
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions test/e2e/pull_test_unix_only_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"fmt"
"os"
"path/filepath"
"runtime"
"testing"

"carvel.dev/imgpkg/test/helpers"
Expand All @@ -26,10 +25,6 @@ func TestPull(t *testing.T) {
defer env.Cleanup()

t.Run("Image - copies the User Permission to group and other", func(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("Skipping test as this is a known issue: https://github.com/carvel-dev/imgpkg/issues/270")
}

folder := env.Assets.CreateTempFolder("simple-image")
env.Assets.AddFileToFolderWithPermissions(filepath.Join(folder, "all-on-user-only"), "some text", 0755)
env.Assets.AddFileToFolderWithPermissions(filepath.Join(folder, "read-on-user-only"), "some text", 0455)
Expand Down Expand Up @@ -70,10 +65,6 @@ func TestPull(t *testing.T) {
})

t.Run("Image - when --preserve-permissions flag is provided it keeps the original permissions on the files", func(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("Skipping test as this is a known issue: https://github.com/carvel-dev/imgpkg/issues/270")
}

folder := env.Assets.CreateTempFolder("simple-image")
env.Assets.AddFileToFolderWithPermissions(filepath.Join(folder, "all-on-user-only"), "some text", 0755)
env.Assets.AddFileToFolderWithPermissions(filepath.Join(folder, "read-on-user-only"), "some text", 0455)
Expand Down Expand Up @@ -114,10 +105,6 @@ func TestPull(t *testing.T) {
})

t.Run("Image - copies the User Permission to group and other but skips execution because umask is set to 0111", func(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("Skipping test as this is a known issue: https://github.com/carvel-dev/imgpkg/issues/270")
}

folder := env.Assets.CreateTempFolder("simple-image")
innerFolder := filepath.Join(folder, "some-folder")
env.Assets.AddFolder(innerFolder, 0755)
Expand Down Expand Up @@ -173,10 +160,6 @@ func TestPull(t *testing.T) {
})

t.Run("Bundle - copies the User Permission to group and other", func(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("Skipping test as this is a known issue: https://github.com/carvel-dev/imgpkg/issues/270")
}

bundleDir := env.BundleFactory.CreateBundleDir(helpers.BundleYAML, helpers.ImagesYAML)
env.Assets.AddFileToFolderWithPermissions(filepath.Join(bundleDir, "all-on-user-only"), "some text", 0755)
env.Assets.AddFileToFolderWithPermissions(filepath.Join(bundleDir, "read-on-user-only"), "some text", 0455)
Expand Down Expand Up @@ -211,10 +194,6 @@ func TestPull(t *testing.T) {
})

t.Run("Bundle - when --preserve-permissions flag is provided it keeps the original permissions on the files", func(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("Skipping test as this is a known issue: https://https://github.com/carvel-dev/imgpkg/issues/270")
}

bundleDir := env.BundleFactory.CreateBundleDir(helpers.BundleYAML, helpers.ImagesYAML)
env.Assets.AddFileToFolderWithPermissions(filepath.Join(bundleDir, "all-on-user-only"), "some text", 0755)
env.Assets.AddFileToFolderWithPermissions(filepath.Join(bundleDir, "read-on-user-only"), "some text", 0455)
Expand Down

0 comments on commit 44e21cb

Please sign in to comment.