Skip to content

Commit

Permalink
chore(ci): Snapshot needs to be consistent
Browse files Browse the repository at this point in the history
Can't have random in it
  • Loading branch information
kichik committed Jul 10, 2022
1 parent 8500bf2 commit 2281fd7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@
}
}
},
"bb258c0c235df6983b581ef5f8fa23dd95cbab81e4841e2d128edd433a36235a": {
"1ef0117e4c0e33ddf9c7d71eeb163adc4284ce57ae03f72e4055459e96237e1a": {
"source": {
"path": "RDS-Sanitized-Snapshotter-Test.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "bb258c0c235df6983b581ef5f8fa23dd95cbab81e4841e2d128edd433a36235a.json",
"objectKey": "1ef0117e4c0e33ddf9c7d71eeb163adc4284ce57ae03f72e4055459e96237e1a.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,7 @@
},
"StepFunctionArn": {
"Fn::ImportValue": "RDS-Sanitized-Snapshotter-SFN:ExportsOutputRefMySQLInstanceSnapshotterDirector69A6B7B421EEFD9B"
},
"AlwaysRun": 0.6847972668183793
}
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
Expand All @@ -825,8 +824,7 @@
},
"StepFunctionArn": {
"Fn::ImportValue": "RDS-Sanitized-Snapshotter-SFN:ExportsOutputRefMySQLClusterSnapshotterDirector73A14BB07F203611"
},
"AlwaysRun": 0.14812968616823485
}
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
Expand All @@ -842,8 +840,7 @@
},
"StepFunctionArn": {
"Fn::ImportValue": "RDS-Sanitized-Snapshotter-SFN:ExportsOutputRefPostgreSQLInstanceSnapshotterDirector22C6400CD7D4E9FC"
},
"AlwaysRun": 0.8329048601954834
}
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
Expand All @@ -859,8 +856,7 @@
},
"StepFunctionArn": {
"Fn::ImportValue": "RDS-Sanitized-Snapshotter-SFN:ExportsOutputRefPostgreSQLClusterSnapshotterDirector864DA8F006C62DA7"
},
"AlwaysRun": 0.33232458203896487
}
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
Expand Down
2 changes: 1 addition & 1 deletion test/default.integ.snapshot/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@
"validateOnSynth": false,
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/bb258c0c235df6983b581ef5f8fa23dd95cbab81e4841e2d128edd433a36235a.json",
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1ef0117e4c0e33ddf9c7d71eeb163adc4284ce57ae03f72e4055459e96237e1a.json",
"requiresBootstrapStackVersion": 6,
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
"additionalDependencies": [
Expand Down
4 changes: 0 additions & 4 deletions test/default.integ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,27 +133,23 @@ new cdk.CustomResource(testStack, 'Test MySQL Instance', {
serviceToken: provider.serviceToken,
properties: {
StepFunctionArn: mysqlInstanceSfn.stateMachineArn,
AlwaysRun: Math.random(),
},
});
new cdk.CustomResource(testStack, 'Test MySQL Cluster', {
serviceToken: provider.serviceToken,
properties: {
StepFunctionArn: mysqlClusterSfn.stateMachineArn,
AlwaysRun: Math.random(),
},
});
new cdk.CustomResource(testStack, 'Test PostgreSQL Instance', {
serviceToken: provider.serviceToken,
properties: {
StepFunctionArn: postgresInstanceSfn.stateMachineArn,
AlwaysRun: Math.random(),
},
});
new cdk.CustomResource(testStack, 'Test PostgreSQL Cluster', {
serviceToken: provider.serviceToken,
properties: {
StepFunctionArn: postgresClusterSfn.stateMachineArn,
AlwaysRun: Math.random(),
},
});

0 comments on commit 2281fd7

Please sign in to comment.