Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chowning no longer breaks integration tests
- if we try to really chown to group vcap when no such group exists, it would be broken in CI - now, we don't do that when running tests [#154423151](https://www.pivotaltracker.com/story/show/154423151) Signed-off-by: Joshua Aresty <joshua.aresty@emc.com>
- Loading branch information
J Evelyn Quintana
authored and
Joshua Aresty
committed
Jan 27, 2018
1 parent
026134b
commit 7b2887c
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package platform | ||
|
||
import boshsys "github.com/cloudfoundry/bosh-utils/system" | ||
|
||
var _ boshsys.FileSystem = &DummyFs{} | ||
|
||
func DummyWrapFs(fs boshsys.FileSystem) boshsys.FileSystem { | ||
return &DummyFs{ | ||
FileSystem: fs, | ||
} | ||
} | ||
|
||
type DummyFs struct { | ||
boshsys.FileSystem | ||
} | ||
|
||
func (d *DummyFs) Chown(path string, username string) error { | ||
return nil | ||
} |