Skip to content

Commit

Permalink
increase root pass length to 64 (#1574)
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai authored Sep 11, 2024
1 parent 20ee667 commit e599b9b
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion linode/backup/datasource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestAccDataSourceInstanceBackups_basic(t *testing.T) {

resourceName := "data.linode_instance_backups.foobar"

rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

var instance linodego.Instance
var snapshot *linodego.InstanceSnapshot
Expand Down
4 changes: 2 additions & 2 deletions linode/instance/datasource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestAccDataSourceInstances_basic(t *testing.T) {

resName := "data.linode_instances.foobar"
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -94,7 +94,7 @@ func TestAccDataSourceInstances_multipleInstances(t *testing.T) {

instanceName := acctest.RandomWithPrefix("tf_test")
tagName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down
62 changes: 31 additions & 31 deletions linode/instance/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestAccResourceInstance_basic_smoke(t *testing.T) {
resName := "linode_instance.foobar"
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(16)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -107,7 +107,7 @@ func TestAccResourceInstance_watchdogDisabled(t *testing.T) {

resName := "linode_instance.foobar"
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -136,7 +136,7 @@ func TestAccResourceInstance_authorizedUsers(t *testing.T) {
resName := "linode_instance.foobar"
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)
resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
ProtoV5ProviderFactories: acceptance.ProtoV5ProviderFactories,
Expand Down Expand Up @@ -169,7 +169,7 @@ func TestAccResourceInstance_validateAuthorizedKeys(t *testing.T) {
t.Parallel()

instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -335,7 +335,7 @@ func TestAccResourceInstance_configInterfaces(t *testing.T) {
resName := "linode_instance.foobar"
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -405,7 +405,7 @@ func TestAccResourceInstance_configInterfacesNoReboot(t *testing.T) {
resName := "linode_instance.foobar"
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -521,7 +521,7 @@ func TestAccResourceInstance_diskImage(t *testing.T) {
resName := "linode_instance.foobar"
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -561,7 +561,7 @@ func TestAccResourceInstance_diskPair(t *testing.T) {
var instance linodego.Instance
var instanceDisk linodego.InstanceDisk
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -602,7 +602,7 @@ func TestAccResourceInstance_diskAndConfig(t *testing.T) {
resName := "linode_instance.foobar"
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -646,7 +646,7 @@ func TestAccResourceInstance_disksAndConfigs(t *testing.T) {

instanceName := acctest.RandomWithPrefix("tf_test")

rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -698,7 +698,7 @@ func TestAccResourceInstance_volumeAndConfig(t *testing.T) {
var instanceDisk linodego.InstanceDisk
var volume linodego.Volume
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -814,7 +814,7 @@ func TestAccResourceInstance_updateSimple(t *testing.T) {
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
resName := "linode_instance.foobar"
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -991,7 +991,7 @@ func TestAccResourceInstance_upsizeWithoutDisk(t *testing.T) {
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
resName := "linode_instance.foobar"
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -1164,7 +1164,7 @@ func TestAccResourceInstance_diskResize(t *testing.T) {
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
resName := "linode_instance.foobar"
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -1207,7 +1207,7 @@ func TestAccResourceInstance_withDiskLinodeUpsize(t *testing.T) {
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
resName := "linode_instance.foobar"
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -1250,7 +1250,7 @@ func TestAccResourceInstance_withDiskLinodeDownsize(t *testing.T) {
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
resName := "linode_instance.foobar"
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -1294,7 +1294,7 @@ func TestAccResourceInstance_downsizeWithoutDisk(t *testing.T) {
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
resName := "linode_instance.foobar"
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -1328,7 +1328,7 @@ func TestAccResourceInstance_fullDiskSwapUpsize(t *testing.T) {
instanceName := acctest.RandomWithPrefix("tf_test")
stackScriptName := acctest.RandomWithPrefix("tf_test")
resName := "linode_instance.foobar"
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -1392,7 +1392,7 @@ func TestAccResourceInstance_swapUpsize(t *testing.T) {
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
resName := "linode_instance.foobar"
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -1431,7 +1431,7 @@ func TestAccResourceInstance_swapDownsize(t *testing.T) {
instanceName := acctest.RandomWithPrefix("tf_test")
resName := "linode_instance.foobar"

rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -1468,7 +1468,7 @@ func TestAccResourceInstance_diskResizeAndExpanded(t *testing.T) {
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
resName := "linode_instance.foobar"
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -1517,7 +1517,7 @@ func TestAccResourceInstance_diskSlotReorder(t *testing.T) {
)
instanceName := acctest.RandomWithPrefix("tf_test")
resName := "linode_instance.foobar"
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -1574,7 +1574,7 @@ func TestAccResourceInstance_privateNetworking(t *testing.T) {
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
resName := "linode_instance.foobar"
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -1675,7 +1675,7 @@ func TestAccResourceInstance_stackScriptDisk(t *testing.T) {
resName := "linode_instance.foobar"
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -1901,7 +1901,7 @@ func TestAccResourceInstance_powerStateConfigUpdates(t *testing.T) {
resName := "linode_instance.foobar"
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -1943,7 +1943,7 @@ func TestAccResourceInstance_powerStateConfigBooted(t *testing.T) {
resName := "linode_instance.foobar"
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -2068,7 +2068,7 @@ func TestAccResourceInstance_userData(t *testing.T) {
t.Fatal(err)
}

rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -2113,7 +2113,7 @@ func TestAccResourceInstance_requestQuantity(t *testing.T) {

provider, providerMap := acceptance.CreateTestProvider()

rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

acceptance.ModifyProviderMeta(provider,
func(ctx context.Context, config *helper.ProviderMeta) error {
Expand Down Expand Up @@ -2167,7 +2167,7 @@ func TestAccResourceInstance_firewallOnCreation(t *testing.T) {
instanceName := acctest.RandomWithPrefix("tf_test")

region, err := acceptance.GetRandomRegionWithCaps([]string{"Cloud Firewall"}, "core")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -2322,7 +2322,7 @@ func TestAccResourceInstance_migration(t *testing.T) {

t.Parallel()

rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resName := "linode_instance.foobar"
var instance linodego.Instance
Expand Down Expand Up @@ -2520,7 +2520,7 @@ func TestAccResourceInstance_diskEncryption(t *testing.T) {
resName := "linode_instance.foobar"
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(16)
rootPass := acctest.RandString(64)

// Resolve a region that supports disk encryption
targetRegion, err := acceptance.GetRandomRegionWithCaps(
Expand Down
14 changes: 7 additions & 7 deletions linode/instanceconfig/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func TestAccResourceInstanceConfig_deviceBlock(t *testing.T) {

resName := "linode_instance_config.foobar"
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

devicesCheck := resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttrSet(resName, "devices.0.sda.0.disk_id"),
Expand Down Expand Up @@ -129,7 +129,7 @@ func TestAccResourceInstanceConfig_complex(t *testing.T) {
resName := "linode_instance_config.foobar"
var instance linodego.Instance
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -213,7 +213,7 @@ func TestAccResourceInstanceConfig_booted(t *testing.T) {

resName := "linode_instance_config.foobar"
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -272,7 +272,7 @@ func TestAccResourceInstanceConfig_bootedSwap(t *testing.T) {
config1Name := "linode_instance_config.foobar1"
config2Name := "linode_instance_config.foobar2"
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(retryT, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -326,7 +326,7 @@ func TestAccResourceInstanceConfig_provisioner(t *testing.T) {

resName := "linode_instance_config.foobar"
instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -358,7 +358,7 @@ func TestAccResourceInstanceConfig_vpcInterface(t *testing.T) {
resName := "linode_instance_config.foobar"
networkDSName := "data.linode_instance_networking.foobar"
instanceName := acctest.RandomWithPrefix("tf-test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down Expand Up @@ -457,7 +457,7 @@ func TestAccResourceInstanceConfig_rescueBooted(t *testing.T) {
instanceResName := "linode_instance.foobar"

instanceName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down
2 changes: 1 addition & 1 deletion linode/instancedisk/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func TestAccResourceInstanceDisk_bootedResize(t *testing.T) {

resName := "linode_instance_disk.foobar"
label := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

var instance linodego.Instance

Expand Down
2 changes: 1 addition & 1 deletion linode/nbnode/datasource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestAccDataSourceNodeBalancerNode_basic(t *testing.T) {

resName := "data.linode_nodebalancer_node.foonode"
nodebalancerName := acctest.RandomWithPrefix("tf_test")
rootPass := acctest.RandString(12)
rootPass := acctest.RandString(64)

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Expand Down
Loading

0 comments on commit e599b9b

Please sign in to comment.