Skip to content

Commit

Permalink
Remove tests adnotated with @bug or irelevant for 5.2.X
Browse files Browse the repository at this point in the history
  • Loading branch information
Epurashu committed Apr 12, 2020
1 parent 7a400b6 commit 82ff456
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 565 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@ public void adminShouldConnectToSMTP() throws Exception
{
smtpProtocol.authenticateUser(dataUser.getAdminUser()).and().assertThat().smtpIsConnected();
}

@TestRail(section = { TestGroup.PROTOCOLS, TestGroup.SMTP }, executionType = ExecutionType.SANITY,
description = "Port is successfully changed to another value than default")
@Test(groups = { TestGroup.PROTOCOLS, TestGroup.SMTP, TestGroup.REQUIRE_JMX, TestGroup.SANITY })
public void updateSmtpServerPort() throws Exception
{
smtpProtocol.withJMX().updateSmtpServerPort(1125);
Assert.assertEquals(smtpProtocol.withJMX().getSmtpServerPort(), 1125);
smtpProtocol.authenticateUser(dataUser.getAdminUser(), 1125).and().assertThat().smtpIsConnected();
}

@TestRail(section = { TestGroup.PROTOCOLS, TestGroup.SMTP }, executionType = ExecutionType.REGRESSION,
description = "Verify user cannot connect to SMTP when maximum server connections is set to a negative value")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,51 +360,6 @@ public void emailSentSuccessfullyWithUserAddedToNewGroupSetForAuthGroup() throws
.sendMail();
}

@Bug(id = "ACE-5712")
@TestRail(section = { TestGroup.PROTOCOLS, TestGroup.SMTP }, executionType = ExecutionType.REGRESSION,
description = "Set Email Authentication Group to EMAIL_CONTRIBUTORS and set SMTP Authentication Enabled to true and add a user to a other group." +
"Email is not sent successfully with that user")
@Test(groups = { TestGroup.PROTOCOLS, TestGroup.SMTP, TestGroup.REQUIRE_JMX, TestGroup.CORE }, expectedExceptions=SMTPSendFailedException.class)
public void emailIsNotSentSuccessfullyToUserAddedToNewGroupNotSetForAuthGroup1() throws Exception
{
UserModel testUser1 = dataUser.createRandomTestUser();
GroupModel group = dataGroup.createRandomGroup();
dataGroup.addListOfUsersToGroup(group, testUser1);
testSite = dataSite.usingUser(testUser1).createIMAPSite();
testFolder = dataContent.usingUser(testUser1).usingSite(testSite).createFolder();
String alias = dataContent.usingSite(testSite).usingResource(testFolder).addEmailAlias("alias" + System.currentTimeMillis());
smtpProtocol.withJMX().updateSmtpEmailAuthenticationGroup(GroupModel.getEmailContributorsGroup().getDisplayName());
smtpProtocol.authenticateUser(testUser1).and()
.composeMessage()
.withRecipients(alias + "@tas-alfresco.com")
.withSubject("subject")
.withBody("body")
.sendMail();
}

@Bug(id = "ACE-5712")
@TestRail(section = { TestGroup.PROTOCOLS, TestGroup.SMTP }, executionType = ExecutionType.REGRESSION,
description = "Set Email Authentication Group to EMAIL_CONTRIBUTORS and set SMTP Authentication Enabled to false and add a user to a other group." +
"Email is not sent successfully with that user")
@Test(groups = { TestGroup.PROTOCOLS, TestGroup.SMTP, TestGroup.REQUIRE_JMX, TestGroup.CORE })
public void emailIsSentSuccessfullyToUserAddedToNewGroupNotSetForAuthGroup2() throws Exception
{
UserModel testUser1 = dataUser.createRandomTestUser();
GroupModel group = dataGroup.createRandomGroup();
dataGroup.addListOfUsersToGroup(group, testUser1);
testSite = dataSite.usingUser(testUser1).createIMAPSite();
testFolder = dataContent.usingUser(testUser1).usingSite(testSite).createFolder();
String alias = dataContent.usingSite(testSite).usingResource(testFolder).addEmailAlias("alias" + System.currentTimeMillis());
smtpProtocol.withJMX().disableSmtpAuthentication();
smtpProtocol.withJMX().updateSmtpEmailAuthenticationGroup(GroupModel.getEmailContributorsGroup().getDisplayName());
smtpProtocol.authenticateUser(testUser1).and()
.composeMessage()
.withRecipients(alias + "@tas-alfresco.com")
.withSubject("subject")
.withBody("body")
.sendMail();
}

@TestRail(section = { TestGroup.PROTOCOLS, TestGroup.SMTP }, executionType = ExecutionType.REGRESSION,
description = "Set Transport Layer Security (TLS) to Required. Email is not sent.")
@Test(groups = { TestGroup.PROTOCOLS, TestGroup.SMTP, TestGroup.REQUIRE_JMX, TestGroup.CORE }, expectedExceptions=SMTPSendFailedException.class,
Expand Down
Loading

0 comments on commit 82ff456

Please sign in to comment.