Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Aug 13, 2024
1 parent 886bd94 commit 0c15414
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export class ReindexFromSnapshotStack extends MigrationServiceCore {
servicePolicies.push(getSecretsPolicy);
}

const deployId = props.addOnMigrationDeployId ? props.addOnMigrationDeployId : props.defaultDeployId
this.createService({
serviceName: 'reindex-from-snapshot',
taskInstanceCount: 0,
Expand All @@ -106,6 +107,7 @@ export class ReindexFromSnapshotStack extends MigrationServiceCore {
"RFS_TARGET_USER": targetUser,
"RFS_TARGET_PASSWORD": targetPassword,
"RFS_TARGET_PASSWORD_ARN": targetPasswordArn,
"TUPLE_DIR_PATH": `/shared-replayer-output/traffic-replayer-${deployId}`
},
...props
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ describe('ReindexFromSnapshotStack Tests', () => {
{
Name: 'RFS_TARGET_PASSWORD_ARN',
Value: 'arn:aws:secretsmanager:us-east-1:123456789012:secret:test-secret'
},
{
Name: 'TUPLE_DIR_PATH',
Value: '/shared-replayer-output/traffic-replayer-default'
}
]);
});
Expand Down Expand Up @@ -207,6 +211,10 @@ describe('ReindexFromSnapshotStack Tests', () => {
{
Name: 'RFS_TARGET_PASSWORD_ARN',
Value: ''
},
{
Name: 'TUPLE_DIR_PATH',
Value: ''
}
]);
});
Expand Down

0 comments on commit 0c15414

Please sign in to comment.