github.com/verrazzano/verrazzano@v1.7.0/cluster-operator/controllers/quickcreate/controller/oci/common/properties_test.go (about) 1 // Copyright (c) 2023, Oracle and/or its affiliates. 2 // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 4 package common 5 6 import ( 7 "github.com/stretchr/testify/assert" 8 vmcv1alpha1 "github.com/verrazzano/verrazzano/cluster-operator/apis/clusters/v1alpha1" 9 "testing" 10 ) 11 12 func TestIsQuickCreate(t *testing.T) { 13 o := &Values{} 14 assert.True(t, o.IsQuickCreate()) 15 o.Network = &vmcv1alpha1.Network{ 16 CreateVCN: false, 17 } 18 assert.False(t, o.IsQuickCreate()) 19 o.Network.CreateVCN = true 20 assert.True(t, o.IsQuickCreate()) 21 }