Skip to content

Commit

Permalink
testFileOpSymlink: check that symlink is created
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Engelbert <[email protected]>
  • Loading branch information
pmengelbert committed Dec 18, 2024
1 parent 45eab8c commit 171eaaa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2483,14 +2483,17 @@ func testFileOpSymlink(t *testing.T, sb integration.Sandbox) {
require.Equal(t, fileGroup, header.Gid)

entry, ok = m["baz"]
require.Equal(t, true, ok)

header = entry.Header
require.NoError(t, err)
// ensure it is a symlink to the proper location
require.Equal(t, header.Linkname, "bar")

// make sure it was chowned properly
require.Equal(t, true, ok)
require.Equal(t, linkOwner, header.Uid)
require.Equal(t, linkGroup, header.Gid)

// ensure it was timestamped properly
require.Equal(t, dummyTime, header.ModTime)
}

Expand Down

0 comments on commit 171eaaa

Please sign in to comment.