@@ -61,8 +61,8 @@ func testAccCheckLibvirtPoolDoesNotExists(n string, pool *libvirt.StoragePool) r
61
61
62
62
func TestAccLibvirtPool_Basic (t * testing.T ) {
63
63
var pool libvirt.StoragePool
64
- randomPoolResource := acctest .RandString (10 )
65
- randomPoolName := acctest .RandString (10 )
64
+ randomPoolResource := acctest .RandStringFromCharSet (10 , acctest . CharSetAlpha )
65
+ randomPoolName := acctest .RandStringFromCharSet (10 , acctest . CharSetAlpha )
66
66
poolPath := "/tmp/cluster-api-provider-libvirt-pool-" + randomPoolName
67
67
resource .Test (t , resource.TestCase {
68
68
PreCheck : func () { testAccPreCheck (t ) },
@@ -94,8 +94,8 @@ func TestAccLibvirtPool_Basic(t *testing.T) {
94
94
// This test should fail without a proper "Exists" implementation
95
95
func TestAccLibvirtPool_ManuallyDestroyed (t * testing.T ) {
96
96
var pool libvirt.StoragePool
97
- randomPoolResource := acctest .RandString (10 )
98
- randomPoolName := acctest .RandString (10 )
97
+ randomPoolResource := acctest .RandStringFromCharSet (10 , acctest . CharSetAlpha )
98
+ randomPoolName := acctest .RandStringFromCharSet (10 , acctest . CharSetAlpha )
99
99
poolPath := "/tmp/cluster-api-provider-libvirt-pool-" + randomPoolName
100
100
testAccCheckLibvirtPoolConfigBasic := fmt .Sprintf (`
101
101
resource "libvirt_pool" "%s" {
@@ -131,9 +131,9 @@ func TestAccLibvirtPool_ManuallyDestroyed(t *testing.T) {
131
131
}
132
132
133
133
func TestAccLibvirtPool_UniqueName (t * testing.T ) {
134
- randomPoolName := acctest .RandString (10 )
135
- randomPoolResource2 := acctest .RandString (10 )
136
- randomPoolResource := acctest .RandString (10 )
134
+ randomPoolName := acctest .RandStringFromCharSet (10 , acctest . CharSetAlpha )
135
+ randomPoolResource2 := acctest .RandStringFromCharSet (10 , acctest . CharSetAlpha )
136
+ randomPoolResource := acctest .RandStringFromCharSet (10 , acctest . CharSetAlpha )
137
137
poolPath := "/tmp/cluster-api-provider-libvirt-pool-" + randomPoolName
138
138
poolPath2 := "/tmp/cluster-api-provider-libvirt-pool-" + randomPoolName + "-2"
139
139
config := fmt .Sprintf (`
@@ -164,8 +164,8 @@ func TestAccLibvirtPool_UniqueName(t *testing.T) {
164
164
}
165
165
166
166
func TestAccLibvirtPool_NoDirPath (t * testing.T ) {
167
- randomPoolResource := acctest .RandString (10 )
168
- randomPoolName := acctest .RandString (10 )
167
+ randomPoolResource := acctest .RandStringFromCharSet (10 , acctest . CharSetAlpha )
168
+ randomPoolName := acctest .RandStringFromCharSet (10 , acctest . CharSetAlpha )
169
169
resource .Test (t , resource.TestCase {
170
170
PreCheck : func () { testAccPreCheck (t ) },
171
171
Providers : testAccProviders ,
0 commit comments