func PrepareVMSpec(mockName string) {
        cblogger := cblog.GetLogger("CB-SPIDER")
        cblogger.Info("Mock Driver: called prepare()!")
        if vmSpecInfoMap[mockName] != nil {
        	return
		}
		prepareVMSpecInfoList = []*irs.VMSpecInfo{
                {"common-region", "mock-vmspec-01", irs.VCpuInfo{"4", "2.7"}, "32768", []irs.GpuInfo{{"2", "NVIDIA", "V100", "16384MB"}}, nil},
                {"common-region", "mock-vmspec-02", irs.VCpuInfo{"4", "3.2"}, "32768", []irs.GpuInfo{{"1", "NVIDIA", "V100", "16384MB"}}, nil},
                {"common-region", "mock-vmspec-03", irs.VCpuInfo{"8", "2.7"}, "62464", nil, nil},
                {"common-region", "mock-vmspec-04", irs.VCpuInfo{"8", "2.7"}, "1024", nil, nil},
        }
		vmSpecInfoMap[mockName] = prepareVMSpecInfoList
}
Be called before using the User function.
Called in MockDriver
package resources
import (
	"fmt"
	cblog "github.com/cloud-barista/cb-log"
	irs "github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/interfaces/resources"
)
var vmSpecInfoMap map[string][]*irs.VMSpecInfo
type MockVMSpecHandler struct {
	MockName string
}
var prepareVMSpecInfoList []*irs.VMSpecInfo
func init() {
	vmSpecInfoMap = make(map[string][]*irs.VMSpecInfo)
}