The ability to use a service account other than the default was
introduced in #5928. This change adds to that by introducing the
'disable_default_service_account' config option. If true - and
'service_account_email' is not set - Packer will create a GCE VM
with no service account.
assert.Equal(t,step.Run(context.Background(),state),multistep.ActionContinue,"Step should have passed and continued.")
// cleanup
step.Cleanup(state)
// Check args passed to the driver.
assert.Equal(t,d.RunInstanceConfig.DisableDefaultServiceAccount,c.DisableDefaultServiceAccount,"Incorrect value for DisableDefaultServiceAccount passed to driver.")
assert.Equal(t,d.RunInstanceConfig.ServiceAccountEmail,c.ServiceAccountEmail,"Incorrect value for ServiceAccountEmail passed to driver.")
assert.Equal(t,step.Run(context.Background(),state),multistep.ActionContinue,"Step should have passed and continued.")
// cleanup
step.Cleanup(state)
// Check args passed to the driver.
assert.Equal(t,d.RunInstanceConfig.DisableDefaultServiceAccount,c.DisableDefaultServiceAccount,"Incorrect value for DisableDefaultServiceAccount passed to driver.")
assert.Equal(t,d.RunInstanceConfig.ServiceAccountEmail,c.ServiceAccountEmail,"Incorrect value for ServiceAccountEmail passed to driver.")