Testing guest detection
This commit is contained in:
parent
70d0d4dfb8
commit
1cfbea7437
@ -69,3 +69,15 @@ func TestMachineSetEmptyId(t *testing.T) {
|
||||
require.Nil(t, dbTarget)
|
||||
require.Error(t, err)
|
||||
}
|
||||
|
||||
func TestMachineConfigedGuest(t *testing.T) {
|
||||
tm, _ := TestMachine(t,
|
||||
WithTestTargetConfig(&vagrant_plugin_sdk.Vagrantfile_MachineConfig{
|
||||
ConfigVm: &vagrant_plugin_sdk.Vagrantfile_ConfigVM{Guest: "myguest"},
|
||||
}),
|
||||
)
|
||||
guest, err := tm.Guest()
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, guest)
|
||||
require.NotNil(t, tm.guest)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user