cephfs: naming conventions: fix names in cephfs permissions test

Fix up variable names that don't meet Go standards.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2021-07-26 13:31:39 -04:00 committed by mergify[bot]
parent 7a542b786a
commit 067924a4cf
1 changed files with 6 additions and 6 deletions

View File

@ -9,12 +9,12 @@ import (
func TestChmodDir(t *testing.T) {
dirname := "two"
var stats_before uint32 = 0755
var stats_after uint32 = 0700
var statsBefore uint32 = 0755
var statsAfter uint32 = 0700
mount := fsConnect(t)
defer fsDisconnect(t, mount)
err := mount.MakeDir(dirname, stats_before)
err := mount.MakeDir(dirname, statsBefore)
assert.NoError(t, err)
defer mount.RemoveDir(dirname)
@ -24,14 +24,14 @@ func TestChmodDir(t *testing.T) {
sx, err := mount.Statx(dirname, StatxBasicStats, 0)
require.NoError(t, err)
assert.Equal(t, uint32(sx.Mode&0777), stats_before)
assert.Equal(t, uint32(sx.Mode&0777), statsBefore)
err = mount.Chmod(dirname, stats_after)
err = mount.Chmod(dirname, statsAfter)
assert.NoError(t, err)
sx, err = mount.Statx(dirname, StatxBasicStats, 0)
require.NoError(t, err)
assert.Equal(t, uint32(sx.Mode&0777), stats_after)
assert.Equal(t, uint32(sx.Mode&0777), statsAfter)
}
func TestChown(t *testing.T) {