github.com/gophercloud/gophercloud@v1.11.0/internal/acceptance/openstack/containerinfra/v1/quotas_test.go (about)

     1  //go:build acceptance || containerinfra
     2  // +build acceptance containerinfra
     3  
     4  package v1
     5  
     6  import (
     7  	"testing"
     8  
     9  	"github.com/gophercloud/gophercloud/internal/acceptance/clients"
    10  	"github.com/gophercloud/gophercloud/internal/acceptance/tools"
    11  	th "github.com/gophercloud/gophercloud/testhelper"
    12  )
    13  
    14  func TestQuotasCRUD(t *testing.T) {
    15  	client, err := clients.NewContainerInfraV1Client()
    16  	th.AssertNoErr(t, err)
    17  
    18  	quota, err := CreateQuota(t, client)
    19  	th.AssertNoErr(t, err)
    20  	tools.PrintResource(t, quota)
    21  }