Skip to content

Commit

Permalink
Updating tests to include Queue model
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnysw authored Jun 19, 2024
1 parent d0ca35f commit ccfcc9e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ public void testLoadConnectEvent() {
assertThat(contactData.getSystemEndpoint())
.returns("+21234567890",from(ConnectEvent.SystemEndpoint::getAddress))
.returns("TELEPHONE_NUMBER",from(ConnectEvent.SystemEndpoint::getType));

assertThat(contactData.getQueue())
.returns("arn:aws:connect:eu-central-1:123456789012:instance/9308c2a1-9bc6-4cea-8290-6c0b4a6d38fa/queue/941464de-39b7-4cae-82e9-a44f070ef59e", from(ConnectEvent.Queue::getArn))
.returns("ExampleQueue",from(ConnectEvent.Queue::getName));
}

@Test
Expand Down
5 changes: 4 additions & 1 deletion aws-lambda-java-tests/src/test/resources/connect_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
}
},
"PreviousContactId": "4ca32fbd-8f92-46af-92a5-6b0f970f0efe",
"Queue": null,
"Queue": {
"ARN": "arn:aws:connect:eu-central-1:123456789012:instance/9308c2a1-9bc6-4cea-8290-6c0b4a6d38fa/queue/941464de-39b7-4cae-82e9-a44f070ef59e",
"Name": "PasswordReset"
},
"SystemEndpoint": {
"Address": "+21234567890",
"Type": "TELEPHONE_NUMBER"
Expand Down

0 comments on commit ccfcc9e

Please sign in to comment.