Class TestCommentResourceSafeguardsLdap

java.lang.Object
com.atlassian.jira.functest.framework.BaseJiraFuncTest
com.atlassian.jira.webtests.EmailBaseFuncTestCase
com.atlassian.jira.webtests.ztests.tpm.ldap.TestCommentResourceSafeguardsLdap
All Implemented Interfaces:
FunctTestConstants

public class TestCommentResourceSafeguardsLdap extends EmailBaseFuncTestCase
  • Field Details

    • ldapUtil

      @Inject protected LdapUtil ldapUtil
  • Constructor Details

    • TestCommentResourceSafeguardsLdap

      public TestCommentResourceSafeguardsLdap()
  • Method Details

    • setUpTest

      public void setUpTest()
    • testAddCommentAboveLimitIsForbiddenForUsersPartOfNestedBotGroup

      public void testAddCommentAboveLimitIsForbiddenForUsersPartOfNestedBotGroup() throws InterruptedException
      To test locally you need a local LDAP server eg.
      docker run --name ldap -d -p 389:389 -e SLAPD_PASSWORD=mysecretpassword -e SLAPD_DOMAIN=ldap.example.org dinkel/openldap
      then you need to set test configuration parameters to:
      -ea -Dldap.type=OpenLdap -Dldap.server=localhost -Dldap.userdn="cn=admin,dc=ldap,dc=example,dc=org" -Dldap.password=mysecretpassword -Dldap.basedn="dc=ldap,dc=example,dc=org"
      Throws:
      InterruptedException
    • testAddCommentAboveLimitIsForbiddenForUsersPartOfNestedBotGroups

      public void testAddCommentAboveLimitIsForbiddenForUsersPartOfNestedBotGroups() throws InterruptedException
      Throws:
      InterruptedException
    • testAddCommentAboveLimitIsAllowedForUsersInParentGroupOfBotGroup

      public void testAddCommentAboveLimitIsAllowedForUsersInParentGroupOfBotGroup() throws InterruptedException
      Throws:
      InterruptedException