@@ -380,9 +380,9 @@ outputs:
380380// The first test ensures we don't regress on https://github.com/pulumi/pulumi-aws/issues/2682
381381//
382382// The second test is when upgrading from pulumi-aws version <5.0.0 to v6.x.x, and
383- // prevents regressions on https://github.com/pulumi/pulumi-aws/issues/2823.
383+ // prevents regressions on https://github.com/pulumi/pulumi-aws/issues/2823
384384//
385- // Updated in https://github.com/pulumi/pulumi-aws/pull/3881 to accept CHANGES_SOME so long as they are not
385+ // Updated in https://github.com/pulumi/pulumi-aws/pull/3881
386386// replacements.
387387func TestMigrateRdsInstance (t * testing.T ) {
388388 case1 := `[{
@@ -533,143 +533,7 @@ func TestMigrateRdsInstance(t *testing.T) {
533533 "__meta": "{\"e2bfb730-ecaa-11e6-8f88-34363bc7c4c0\":{\"create\":2400000000000,\"delete\":3600000000000,\"update\":4800000000000},\"schema_version\":\"1\"}",
534534 "address": "rds2f5ed54.c1xxca33i6kr.us-east-2.rds.amazonaws.com",
535535 "allocatedStorage": 16,
536- "arn": "arn:aws:rds:us-east-2:616138583583:db:rds2f5ed54",
537- "autoMinorVersionUpgrade": true,
538- "availabilityZone": "us-east-2c",
539- "backupRetentionPeriod": 0,
540- "backupWindow": "07:34-08:04",
541- "caCertIdentifier": "rds-ca-2019",
542- "copyTagsToSnapshot": false,
543- "dbSubnetGroupName": "default",
544- "deleteAutomatedBackups": true,
545- "deletionProtection": false,
546- "domain": "",
547- "domainIamRoleName": "",
548- "enabledCloudwatchLogsExports": [],
549- "endpoint": "rds2f5ed54.c1xxca33i6kr.us-east-2.rds.amazonaws.com:3306",
550- "engine": "mysql",
551- "engineVersion": "8.0.33",
552- "hostedZoneId": "Z2XHWR1WZ565X2",
553- "iamDatabaseAuthenticationEnabled": false,
554- "id": "rds2f5ed54",
555- "identifier": "rds2f5ed54",
556- "instanceClass": "db.t3.micro",
557- "iops": 0,
558- "kmsKeyId": "",
559- "latestRestorableTime": "0001-01-01T00:00:00Z",
560- "licenseModel": "general-public-license",
561- "maintenanceWindow": "sun:03:59-sun:04:29",
562- "maxAllocatedStorage": 0,
563- "monitoringInterval": 0,
564- "monitoringRoleArn": "",
565- "multiAz": false,
566- "name": "name",
567- "optionGroupName": "default:mysql-8-0",
568- "parameterGroupName": "default.mysql8.0",
569- "password": "FOO-BAR-FIZZ1!2",
570- "performanceInsightsEnabled": false,
571- "performanceInsightsKmsKeyId": "",
572- "performanceInsightsRetentionPeriod": 0,
573- "port": 3306,
574- "publiclyAccessible": false,
575- "replicas": [],
576- "replicateSourceDb": "",
577- "resourceId": "db-N57SF65OZ5KO3TPK73R7DQMLZA",
578- "securityGroupNames": [],
579- "skipFinalSnapshot": true,
580- "status": "available",
581- "storageEncrypted": false,
582- "storageType": "gp2",
583- "tags": {
584- "some": "change"
585- },
586- "timezone": "",
587- "username": "root",
588- "vpcSecurityGroupIds": [
589- "sg-1928d262"
590- ]
591- },
592- "news": {
593- "__defaults": [
594- "applyImmediately",
595- "autoMinorVersionUpgrade",
596- "copyTagsToSnapshot",
597- "deleteAutomatedBackups",
598- "identifier",
599- "monitoringInterval",
600- "performanceInsightsEnabled",
601- "publiclyAccessible"
602- ],
603- "allocatedStorage": 16,
604536 "applyImmediately": false,
605- "autoMinorVersionUpgrade": true,
606- "copyTagsToSnapshot": false,
607- "dbName": "name",
608- "deleteAutomatedBackups": true,
609- "engine": "mysql",
610- "identifier": "rds2f5ed54",
611- "instanceClass": "db.t3.micro",
612- "monitoringInterval": 0,
613- "password": "FOO-BAR-FIZZ1!2",
614- "performanceInsightsEnabled": false,
615- "publiclyAccessible": false,
616- "skipFinalSnapshot": true,
617- "tags": {
618- "__defaults": [],
619- "some": "change"
620- },
621- "username": "root"
622- },
623- "oldInputs": {
624- "__defaults": [
625- "applyImmediately",
626- "autoMinorVersionUpgrade",
627- "copyTagsToSnapshot",
628- "deleteAutomatedBackups",
629- "identifier",
630- "monitoringInterval",
631- "performanceInsightsEnabled",
632- "publiclyAccessible"
633- ],
634- "allocatedStorage": 16,
635- "applyImmediately": false,
636- "autoMinorVersionUpgrade": true,
637- "copyTagsToSnapshot": false,
638- "deleteAutomatedBackups": true,
639- "engine": "mysql",
640- "identifier": "rds2f5ed54",
641- "instanceClass": "db.t3.micro",
642- "monitoringInterval": 0,
643- "name": "name",
644- "password": "FOO-BAR-FIZZ1!2",
645- "performanceInsightsEnabled": false,
646- "publiclyAccessible": false,
647- "skipFinalSnapshot": true,
648- "tags": {
649- "__defaults": [],
650- "some": "change"
651- },
652- "username": "root"
653- }
654- },
655- "response": {
656- "stables": "*",
657- "changes": "*",
658- "hasDetailedDiff": true
659- }
660- }
661- ]`
662-
663- // Like case2 but permits detailedDiff.
664- case2a := `[{
665- "method": "/pulumirpc.ResourceProvider/Diff",
666- "request": {
667- "id": "rds2f5ed54",
668- "urn": "urn:pulumi:exp2::secret-random-yaml::aws:rds/instance:Instance::rds",
669- "olds": {
670- "__meta": "{\"e2bfb730-ecaa-11e6-8f88-34363bc7c4c0\":{\"create\":2400000000000,\"delete\":3600000000000,\"update\":4800000000000},\"schema_version\":\"1\"}",
671- "address": "rds2f5ed54.c1xxca33i6kr.us-east-2.rds.amazonaws.com",
672- "allocatedStorage": 16,
673537 "arn": "arn:aws:rds:us-east-2:616138583583:db:rds2f5ed54",
674538 "autoMinorVersionUpgrade": true,
675539 "availabilityZone": "us-east-2c",
@@ -790,20 +654,15 @@ func TestMigrateRdsInstance(t *testing.T) {
790654 }
791655 },
792656 "response": {
793- "diffs": "*",
794657 "stables": "*",
795658 "changes": "*",
796- "hasDetailedDiff": true,
797- "detailedDiff": "*"
659+ "hasDetailedDiff": true
798660 }
799661 }
800662 ]`
801663
802664 t .Run ("case1" , func (t * testing.T ) { replay (t , case1 ) })
803665 t .Run ("case2" , func (t * testing.T ) { replay (t , case2 ) })
804- t .Setenv ("PULUMI_ENABLE_PLAN_RESOURCE_CHANGE" , "true" )
805- t .Run ("case1-plan-resource-change" , func (t * testing.T ) { replay (t , case1 ) })
806- t .Run ("case2-plan-resource-change" , func (t * testing.T ) { replay (t , case2a ) })
807666}
808667
809668func TestRegressUnknownTags (t * testing.T ) {
@@ -1042,4 +901,4 @@ func TestSourceCodeHashImportedLambdaChecksCleanly(t *testing.T) {
1042901 "name": "aws"
1043902 }
1044903}]` )
1045- }
904+ }
0 commit comments