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

Validate sqsqueues includes all queue properties #3958

Merged

Conversation

rtjd6554
Copy link
Collaborator

@rtjd6554 rtjd6554 commented Dec 17, 2024

Make sure you have checked all steps below.

Issue

Tests

  • My PR adds the following tests OR does not need testing for this extremely good reason:
    • New tests within SQSQueuesTests

Documentation

  • In case of new functionality, my PR adds documentation that describes how to use it, or I have linked to a
    separate issue for that below.
  • If I have added or removed any dependencies from the project, I have updated the NOTICES file.

@rtjd6554 rtjd6554 linked an issue Dec 17, 2024 that may be closed by this pull request
@rtjd6554 rtjd6554 self-assigned this Dec 17, 2024

import static org.assertj.core.api.Assertions.assertThat;

public class SQSTest {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We could call this SqsQueuesTest?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed

Comment on lines 43 to 45
Field[] interfaceFields = CdkDefinedInstanceProperty.class.getFields();
for (Field f : interfaceFields) {
CdkDefinedInstanceProperty present = (CdkDefinedInstanceProperty) f.get(this);
Copy link
Collaborator

Choose a reason for hiding this comment

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

There's a function CdkDefinedInstanceProperty.getAll, the reflection isn't needed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed

@rtjd6554 rtjd6554 changed the title First pass at new tests for SQS Queues Validate sqsqueues includes all queue properties Dec 17, 2024
@rtjd6554 rtjd6554 assigned patchwork01 and unassigned rtjd6554 Dec 17, 2024
@rtjd6554 rtjd6554 marked this pull request as ready for review December 17, 2024 13:05
@patchwork01 patchwork01 assigned rtjd6554 and unassigned patchwork01 Dec 17, 2024
@rtjd6554 rtjd6554 merged commit 24428f5 into develop Dec 17, 2024
8 checks passed
@rtjd6554 rtjd6554 deleted the 3907-validate-sqsqueues-includes-all-queue-properties branch December 17, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validate SqsQueues includes all queue properties
2 participants