github.com/vnpaycloud-console/gophercloud/v2@v2.0.5/internal/acceptance/openstack/orchestration/v1/buildinfo_test.go (about)

     1  //go:build acceptance || orchestration || buildinfo
     2  
     3  package v1
     4  
     5  import (
     6  	"context"
     7  	"testing"
     8  
     9  	"github.com/vnpaycloud-console/gophercloud/v2/internal/acceptance/clients"
    10  	"github.com/vnpaycloud-console/gophercloud/v2/openstack/orchestration/v1/buildinfo"
    11  	th "github.com/vnpaycloud-console/gophercloud/v2/testhelper"
    12  )
    13  
    14  func TestBuildInfo(t *testing.T) {
    15  	client, err := clients.NewOrchestrationV1Client()
    16  	th.AssertNoErr(t, err)
    17  
    18  	bi, err := buildinfo.Get(context.TODO(), client).Extract()
    19  	th.AssertNoErr(t, err)
    20  	t.Logf("retrieved build info: %+v\n", bi)
    21  }