From bc0c1bf1c590e852a23f707e8bf386529cab79f3 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Mon, 1 Nov 2021 15:11:38 +0100 Subject: [PATCH] Fixed unit test SELinux support Previously, an error from GetSELinuxSupport was treated as a filesystem did not support SELinux. Now the error is treated separately. --- pkg/volume/util/hostutil/fake_hostutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/volume/util/hostutil/fake_hostutil.go b/pkg/volume/util/hostutil/fake_hostutil.go index cc5fe628af6..36b72e5e8ec 100644 --- a/pkg/volume/util/hostutil/fake_hostutil.go +++ b/pkg/volume/util/hostutil/fake_hostutil.go @@ -108,7 +108,7 @@ func (hu *FakeHostUtil) GetOwner(pathname string) (int64, int64, error) { // GetSELinuxSupport tests if pathname is on a mount that supports SELinux. // Not implemented for testing func (hu *FakeHostUtil) GetSELinuxSupport(pathname string) (bool, error) { - return false, errors.New("GetSELinuxSupport not implemented") + return false, nil } // GetMode returns permissions of pathname.