blob: 5fe1c16d22077afe9f2c0ed23b9689a4a286f63a [file] [log] [blame]
// +build acceptance imageservice images
package v2
import (
"testing"
"gerrit.mcp.mirantis.net/debian/gophercloud.git/acceptance/clients"
"gerrit.mcp.mirantis.net/debian/gophercloud.git/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)
}