test (builder/oracle-oci): add config test for LaunchMode

This commit is contained in:
js-g 2020-11-03 10:46:34 -05:00
parent ab23014489
commit 749a1372d2
1 changed files with 11 additions and 0 deletions

View File

@ -118,6 +118,17 @@ func TestConfig(t *testing.T) {
}
})
t.Run("LaunchMode", func(t *testing.T) {
raw := testConfig(cfgFile)
raw["image_launch_mode"] = "NATIVE"
var c Config
errs := c.Prepare(raw)
if errs != nil {
t.Fatalf("Unexpected error in configuration %+v", errs)
}
})
t.Run("NoAccessConfig", func(t *testing.T) {
raw := testConfig(cfgFile)
delete(raw, "access_cfg_file")