github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/acceptance/openstack/ces/v1/quotas_test.go (about)

     1  package v1
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/opentelekomcloud/gophertelekomcloud/acceptance/clients"
     7  	"github.com/opentelekomcloud/gophertelekomcloud/openstack/ces/v1/quotas"
     8  	th "github.com/opentelekomcloud/gophertelekomcloud/testhelper"
     9  )
    10  
    11  func TestQuotas(t *testing.T) {
    12  	client, err := clients.NewCesV1Client()
    13  	th.AssertNoErr(t, err)
    14  
    15  	quota, err := quotas.ShowQuotas(client).Extract()
    16  	th.AssertNoErr(t, err)
    17  
    18  	th.AssertEquals(t, quota.Quotas.Resources[0].Type, "alarm")
    19  }