Skip to content

Commit fa8d762

Browse files
neverdreamsRavi Tandon
authored andcommitted
fix TestDatabaseAutonomousDataWarehouseBackupResource_basic with InvalidParameter
1 parent e3e3a4a commit fa8d762

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

oci/database_autonomous_data_warehouse_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var (
3636
"values": Representation{repType: Required, create: []string{`${oci_database_autonomous_data_warehouse.test_autonomous_data_warehouse.id}`}},
3737
}
3838

39-
adwName = randomString(14, charset)
39+
adwName = randomString(1, charsetWithoutDigits) + randomString(13, charset)
4040

4141
autonomousDataWarehouseRepresentation = map[string]interface{}{
4242
"admin_password": Representation{repType: Required, create: `BEstrO0ng_#11`, update: `BEstrO0ng_#12`},

oci/helpers.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ import (
1515
"github.com/hashicorp/terraform/helper/schema"
1616
)
1717

18-
const charset = "abcdefghijklmnopqrstuvwxyz" +
19-
"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
18+
const charset = charsetWithoutDigits + "0123456789"
19+
20+
const charsetWithoutDigits = "abcdefghijklmnopqrstuvwxyz" + "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2021

2122
func literalTypeHashCodeForSets(m interface{}) int {
2223
return hashcode.String(fmt.Sprintf("%v", m))

0 commit comments

Comments
 (0)