@@ -490,35 +490,6 @@ func TestAccDomainResource_destroyShutdownRunningWithImage(t *testing.T) {
490490 })
491491}
492492
493- func testAccRequireDefaultPool (t * testing.T ) {
494- t .Helper ()
495-
496- ctx := context .Background ()
497- client , err := libvirtclient .NewClient (ctx , testAccLibvirtURI ())
498- if err != nil {
499- t .Skipf ("failed to create libvirt client: %v" , err )
500- }
501- defer func () { _ = client .Close () }()
502-
503- pool , err := client .Libvirt ().StoragePoolLookupByName ("default" )
504- if err != nil {
505- // Some CI environments don't provide a default pool out of the box.
506- // Define a standard dir pool matching libvirt defaults.
507- poolXML := `<pool type='dir'><name>default</name><target><path>/var/lib/libvirt/images</path></target></pool>`
508- pool , err = client .Libvirt ().StoragePoolDefineXML (poolXML , 0 )
509- if err != nil {
510- t .Skipf ("default storage pool not available and could not be defined: %v" , err )
511- }
512- }
513-
514- // Build can be required for newly defined dir pools. Ignore "already built".
515- if err := client .Libvirt ().StoragePoolBuild (pool , 0 ); err != nil && ! strings .Contains (strings .ToLower (err .Error ()), "already" ) {
516- t .Skipf ("failed to build default storage pool: %v" , err )
517- }
518-
519- // Ignore error if pool is already active; we only need a usable pool.
520- _ = client .Libvirt ().StoragePoolCreate (pool , 0 )
521- }
522493
523494func TestAccDomainResource_updateWithRunning (t * testing.T ) {
524495 resource .Test (t , resource.TestCase {
0 commit comments