You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by GitBox <gi...@apache.org> on 2021/11/25 03:45:16 UTC
[GitHub] [james-project] chibenwa commented on a change in pull request #761: [WIP] JAMES-3534 Identity/set update + delete and Identity/get should fail for identities whose alias is deleted
chibenwa commented on a change in pull request #761:
URL: https://github.com/apache/james-project/pull/761#discussion_r756551775
##########
File path: server/data/data-jmap/src/test/scala/org/apache/james/jmap/api/identity/CustomIdentityDAOContract.scala
##########
@@ -156,35 +156,7 @@ trait CustomIdentityDAOContract {
.isEmpty()
}
- @Test
- def updateShouldModifyUnderlyingRecord(): Unit = {
- val identity: Identity = SMono(testee().save(bob,
- IdentityCreationRequest(name = Some(IdentityName("Bob (custom address)")),
- email = bob.asMailAddress(),
- replyTo = Some(List(EmailAddress(Some(EmailerName("My Boss")), new MailAddress("boss@domain.tld")))),
- bcc = Some(List(EmailAddress(Some(EmailerName("My Boss 2")), new MailAddress("boss2@domain.tld")))),
- textSignature = Some(TextSignature("text signature")),
- htmlSignature = Some(HtmlSignature("html signature")))))
- .block()
-
- SMono(testee().update(bob, identity.id, IdentityUpdateRequest(
- name = Some(IdentityNameUpdate(IdentityName("Bob (new name)"))),
- replyTo = Some(IdentityReplyToUpdate(Some(List(EmailAddress(Some(EmailerName("My Boss (updated)")), new MailAddress("boss-updated@domain.tld")))))),
- bcc = Some(IdentityBccUpdate(Some(List(EmailAddress(Some(EmailerName("My Boss 2 (updated)")), new MailAddress("boss-updated-2@domain.tld")))))),
- textSignature = Some(IdentityTextSignatureUpdate(TextSignature("text 2 signature"))),
- htmlSignature = Some(IdentityHtmlSignatureUpdate(HtmlSignature("html 2 signature"))))))
- .block()
-
- assertThat(SFlux(testee().list(bob)).asJava().collectList().block())
- .containsExactlyInAnyOrder(Identity(id = identity.id,
- name = IdentityName("Bob (new name)"),
- email = bob.asMailAddress(),
- replyTo = Some(List(EmailAddress(Some(EmailerName("My Boss (updated)")), new MailAddress("boss-updated@domain.tld")))),
- bcc = Some(List(EmailAddress(Some(EmailerName("My Boss 2 (updated)")), new MailAddress("boss-updated-2@domain.tld")))),
- textSignature = TextSignature("text 2 signature"),
- htmlSignature = HtmlSignature("html 2 signature"),
- mayDelete = MayDeleteIdentity(true)))
- }
+ z
Review comment:
oups `z` ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org