feat: Cloudformation + RDS
This commit is contained in:
@@ -614,10 +614,12 @@ describe('WorkflowStudio', () => {
|
||||
expect(screen.getByRole('heading', {name: 'SNS Publish Task'})).toBeInTheDocument()
|
||||
expect(listCloudResources).toHaveBeenCalledWith('aws', 'notifications', undefined, expect.any(AbortSignal))
|
||||
await user.selectOptions(screen.getByRole('combobox', {name: 'SNS topic'}), 'arn:aws:sns:us-east-1:000000000000:orders')
|
||||
await user.clear(screen.getByRole('textbox', {name: 'SNS message'}))
|
||||
await user.type(screen.getByRole('textbox', {name: 'SNS message'}), 'Order succeeded')
|
||||
await user.click(screen.getByRole('button', {name: 'Save definition'}))
|
||||
await waitFor(() => expect(updateCloudResource).toHaveBeenCalledTimes(1))
|
||||
const saved = JSON.parse(updateCloudResource.mock.calls[0][3].definition) as {States: Record<string, {Parameters: Record<string, unknown>}>}
|
||||
expect(saved.States.PublishNotice.Parameters).toEqual({TopicArn: 'arn:aws:sns:us-east-1:000000000000:orders', Message: 'keep'})
|
||||
expect(saved.States.PublishNotice.Parameters).toEqual({TopicArn: 'arn:aws:sns:us-east-1:000000000000:orders', Message: 'Order succeeded'})
|
||||
})
|
||||
|
||||
test('edits SQS parameters from queue inventory and keeps shared task policy controls', async () => {
|
||||
|
||||
Reference in New Issue
Block a user