Skip to content

Commit

Permalink
Fix upload test when /tmp is empty (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Feb 9, 2022
1 parent ce09f28 commit 22c694a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pkg/apis/k0sctl.k0sproject.io/v1beta1/cluster/uploadfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
func TestPermStringUnmarshalWithOctal(t *testing.T) {
u := UploadFile{}
yml := []byte(`
src: /tmp
dstDir: /tmp
src: .
dstDir: .
perm: 0755
`)

Expand All @@ -22,8 +22,8 @@ perm: 0755
func TestPermStringUnmarshalWithString(t *testing.T) {
u := UploadFile{}
yml := []byte(`
src: /tmp
dstDir: /tmp
src: .
dstDir: .
perm: "0755"
`)

Expand All @@ -34,8 +34,8 @@ perm: "0755"
func TestPermStringUnmarshalWithInvalidString(t *testing.T) {
u := UploadFile{}
yml := []byte(`
src: /tmp
dstDir: /tmp
src: .
dstDir: .
perm: u+rwx
`)

Expand All @@ -45,8 +45,8 @@ perm: u+rwx
func TestPermStringUnmarshalWithInvalidNumber(t *testing.T) {
u := UploadFile{}
yml := []byte(`
src: /tmp
dstDir: /tmp
src: .
dstDir: .
perm: 0800
`)

Expand All @@ -56,8 +56,8 @@ perm: 0800
func TestPermStringUnmarshalWithZero(t *testing.T) {
u := UploadFile{}
yml := []byte(`
src: /tmp
dstDir: /tmp
src: .
dstDir: .
perm: 0
`)

Expand Down

0 comments on commit 22c694a

Please sign in to comment.