blob: aa0390bd11a3ba1aa6e1fdbd4d62d2c521064a6b [file] [log] [blame]
// +build acceptance imageservice images
package v2
import (
"testing"
"github.com/gophercloud/gophercloud/acceptance/clients"
"github.com/gophercloud/gophercloud/acceptance/tools"
)
func TestImagesCreateDestroyEmptyImage(t *testing.T) {
client, err := clients.NewImageServiceV2Client()
if err != nil {
t.Fatalf("Unable to create an image service client: %v", err)
}
image, err := CreateEmptyImage(t, client)
if err != nil {
t.Fatalf("Unable to create empty image: %v", err)
}
defer DeleteImage(t, client, image)
tools.PrintResource(t, image)
}