test (builder/oracle-oci): add config test for LaunchMode
This commit is contained in:
parent
ab23014489
commit
749a1372d2
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue