2016-01-08 21:17:54 +01:00
|
|
|
package provision
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
"github.com/docker/machine/drivers/fakedriver"
|
|
|
|
|
"github.com/docker/machine/libmachine/auth"
|
|
|
|
|
"github.com/docker/machine/libmachine/engine"
|
|
|
|
|
"github.com/docker/machine/libmachine/provision/provisiontest"
|
|
|
|
|
"github.com/docker/machine/libmachine/swarm"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func TestArchDefaultStorageDriver(t *testing.T) {
|
|
|
|
|
p := NewArchProvisioner(&fakedriver.Driver{}).(*ArchProvisioner)
|
2016-01-15 21:13:29 +01:00
|
|
|
p.SSHCommander = provisiontest.NewFakeSSHCommander(provisiontest.FakeSSHCommanderOptions{})
|
2016-01-08 21:17:54 +01:00
|
|
|
p.Provision(swarm.Options{}, auth.Options{}, engine.Options{})
|
2019-05-14 15:29:42 +03:00
|
|
|
if p.EngineOptions.StorageDriver != "overlay2" {
|
|
|
|
|
t.Fatal("Default storage driver should be overlay2")
|
2016-01-08 21:17:54 +01:00
|
|
|
}
|
|
|
|
|
}
|