mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 13:02:14 +00:00
cleanup flocker in /tmp
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
parent
ce11f74961
commit
6f3212f831
@ -165,7 +165,8 @@ func TestPlugin(t *testing.T) {
|
|||||||
|
|
||||||
func TestGetByName(t *testing.T) {
|
func TestGetByName(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
plugMgr, _ := newInitializedVolumePlugMgr(t)
|
plugMgr, dir := newInitializedVolumePlugMgr(t)
|
||||||
|
defer os.RemoveAll(dir)
|
||||||
|
|
||||||
plug, err := plugMgr.FindPluginByName(pluginName)
|
plug, err := plugMgr.FindPluginByName(pluginName)
|
||||||
assert.NotNil(plug, "Can't find the plugin by name")
|
assert.NotNil(plug, "Can't find the plugin by name")
|
||||||
@ -174,7 +175,8 @@ func TestGetByName(t *testing.T) {
|
|||||||
|
|
||||||
func TestCanSupport(t *testing.T) {
|
func TestCanSupport(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
plugMgr, _ := newInitializedVolumePlugMgr(t)
|
plugMgr, dir := newInitializedVolumePlugMgr(t)
|
||||||
|
defer os.RemoveAll(dir)
|
||||||
|
|
||||||
plug, err := plugMgr.FindPluginByName(pluginName)
|
plug, err := plugMgr.FindPluginByName(pluginName)
|
||||||
assert.NoError(err)
|
assert.NoError(err)
|
||||||
@ -242,7 +244,8 @@ func TestGetFlockerVolumeSource(t *testing.T) {
|
|||||||
func TestNewMounterDatasetName(t *testing.T) {
|
func TestNewMounterDatasetName(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
|
|
||||||
plugMgr, _ := newInitializedVolumePlugMgr(t)
|
plugMgr, dir := newInitializedVolumePlugMgr(t)
|
||||||
|
defer os.RemoveAll(dir)
|
||||||
plug, err := plugMgr.FindPluginByName(pluginName)
|
plug, err := plugMgr.FindPluginByName(pluginName)
|
||||||
assert.NoError(err)
|
assert.NoError(err)
|
||||||
|
|
||||||
@ -263,7 +266,8 @@ func TestNewMounterDatasetName(t *testing.T) {
|
|||||||
func TestNewMounterDatasetUUID(t *testing.T) {
|
func TestNewMounterDatasetUUID(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
|
|
||||||
plugMgr, _ := newInitializedVolumePlugMgr(t)
|
plugMgr, dir := newInitializedVolumePlugMgr(t)
|
||||||
|
defer os.RemoveAll(dir)
|
||||||
plug, err := plugMgr.FindPluginByName(pluginName)
|
plug, err := plugMgr.FindPluginByName(pluginName)
|
||||||
assert.NoError(err)
|
assert.NoError(err)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user