func CIM_Simple_Test() {
	fmt.Print("\n\n============= CloudInfoManager: Simple Test =============\n")
	cim := api.NewCloudInfoManager()
	err := cim.SetServerAddr(spiderServer)
	if err != nil {
		log.Error(err)
	}
	err = cim.SetTimeout(90 * time.Second)
	if err != nil {
		log.Error(err)
	}
	err = cim.Open()
	if err != nil {
		log.Fatal(err)
	}
	defer cim.Close()
	result, err := cim.ListCloudOS()
	if err != nil {
		log.Error(err)
	}
	fmt.Printf("\nresult :\n%s\n", result)
}
****************************************
1. Create CloudInfoManager
2. Setup env.
3. Open New Session
4. Close (with defer)
5. Call API
****************************************
package main
import (
	"fmt"
	"time"
	"github.com/cloud-barista/cb-spider/api-runtime/grpc-runtime/logger"
	"github.com/cloud-barista/cb-spider/interface/api"
)
type ConnectionInfoTestData struct {
	DriverName        string
	DriverLibFileName string
	CredentialName string
	KeyValueList   []api.KeyValue
	RegionName string
	Region     string
	Zone       string
	ConnectionConfigName string
}
type ResourceInfoTestData struct {
	VPCName     string
	VPC_CIDR    string
	SubnetName  string
	Subnet_CIDR string
	SGName string
	Rule1_FromPort   string
	Rule1_ToPort     string
	Rule1_IPProtocol string
	Rule1_Direction  string
	Rule1_CIDR       string
	KeyName string
	VMName    string
	ImageName string
	VMSpec    string
}
var log *logger.Logger
var spiderServer string
func init() {
	log = logger.NewLogger()
	spiderServer = "localhost:2048"
}
var targetCSP = []string{
	"AWS",
	"GCP",
}
var connConfigNameList = []string{
	"aws-aws-(ohio)us-east-2-connection-config-01",  
	"gcp-gcp-ohio-region-connection-config-01",      
}
var AWSCredentialList = []api.KeyValue{
	api.KeyValue{Key: "ClientId", Value: "xxxxxxxxxx"},
	api.KeyValue{Key: "ClientSecret", Value: "xxxxxxxxxxxxxxxxxxxxxx"},
}
var GCPCredentialList = []api.KeyValue{
	api.KeyValue{Key: "PrivateKey", Value: "-----BEGIN PRIVATE KEY-----\nxxxxxxxxxxx\n-----END PRIVATE KEY-----"},
	api.KeyValue{Key: "ProjectID", Value: "powerkimhub"},
	api.KeyValue{Key: "ClientEmail", Value: "powerkimhub@powerkimhub.iam.gserviceaccount.com"},
}
var connInfoTestData = []ConnectionInfoTestData{
	{  
		"aws-driver-01", "aws-driver-v1.0.so",  
		"aws-credential-01", AWSCredentialList,  
		"aws-(ohio)us-east-2", "us-east-2", "us-east-2a",  
		connConfigNameList[0],  
	},
	{  
		"gcp-driver-01", "gcp-driver-v1.0.so",  
		"gcp-credential-01", GCPCredentialList,  
		"gcp-us-central1-us-central1-a", "us-central1", "us-central1-a",  
		connConfigNameList[1],  
	},
}
var resInfoTestData = []ResourceInfoTestData{
	{  
		"vpc-01", "192.168.0.0/16", "subnet-01", "192.168.1.0/24",  
		"sg-01", "1", "65535", "tcp", "inbound", "0.0.0.0/0",  
		"keypair-01",                                  
		"vm-01", "ami-0bbe28eb2173f6167", "t2.micro",  
	},
	{  
		"vpc-01", "192.168.0.0/16", "subnet-01", "192.168.1.0/24",  
		"sg-01", "1", "65535", "tcp", "inbound", "0.0.0.0/0",  
		"keypair-01",  
		"vm-01", "https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-minimal-1804-bionic-v20191024",
		"f1-micro",  
	},
}
func main() {
	fmt.Print("\n\n====================================================\n")
	fmt.Print("\n\n==== 1. Cloud Connection Info Manager(CIM) Test ====\n")
	fmt.Print("\n\n====================================================\n")
	CIM_Simple_Test()
	CIM_With_Config_Test()
	CIM_Create_Info_Test(0)  
	CIM_IOFormat_Test()
	fmt.Print("\n\n====================================================\n")
	fmt.Print("\n\n==== 2. Cloud Resource Handler(CRH) Test ====\n")
	fmt.Print("\n\n====================================================\n")
	CRH_Simple_Test()
	CRH_Create_Test(0)  
}