Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --keep argument to allow test resources to be kept #5

Merged
merged 1 commit into from
May 16, 2021

Conversation

BenEllerby
Copy link
Collaborator

  • Added --keep=true argument to enable testing resources (like SQS queue for EventBridge) to be kept.

  • This was triggered by throttling of queue creation after deletion on repeated runs.

    • In the future this can also be used to speed up test runs.
  • Note, also removed bugs in messages being left on the SQS queue when events added to EventBridge via manual publish via sls-test-tools.

@@ -87,6 +92,8 @@ export default class EventBridge {
})
.promise();

await this.getEvents(); // need to clear this manual published event from the SQS observer queue.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we always want to delete the events?

It could be worth splitting this into two functions (eg. peekEvents, popEvents).
We would have to set the VisibilityTimeout to 0 when we create the queue so that peek doesn't change the visibly

@BenEllerby BenEllerby merged commit 1e585dc into main May 16, 2021
@agwhi agwhi deleted the feature/add-resource-keep-arg branch May 21, 2021 10:55
agwhi pushed a commit that referenced this pull request May 21, 2021
add --keep argument to allow test resources to be kept
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants