You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

main_test.go 840 B

1234567891011121314151617181920212223242526272829303132
  1. package ecs
  2. import (
  3. "code.gitlink.org.cn/JCCE/PCM/common/tenanter"
  4. "code.gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
  5. "os"
  6. "testing"
  7. )
  8. var (
  9. aliTenant, tcTenant, hwTenant, k8sTenant []tenanter.Tenanter
  10. )
  11. func TestMain(m *testing.M) {
  12. err := tenanter.LoadCloudConfigs("../../../config.yaml")
  13. if err != nil {
  14. panic(err)
  15. }
  16. if aliTenant, err = tenanter.GetTenanters(pbtenant.CloudProvider_ali); err != nil {
  17. panic("get aliTenant failed")
  18. }
  19. if tcTenant, err = tenanter.GetTenanters(pbtenant.CloudProvider_tencent); err != nil {
  20. panic("get tcTenant failed")
  21. }
  22. if hwTenant, err = tenanter.GetTenanters(pbtenant.CloudProvider_huawei); err != nil {
  23. panic("get hwTenant failed")
  24. }
  25. if k8sTenant, err = tenanter.GetTenanters(pbtenant.CloudProvider_k8s); err != nil {
  26. panic("get awsTenant failed")
  27. }
  28. os.Exit(m.Run())
  29. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.