Class SamlConfigurationResourceTest

java.lang.Object
com.atlassian.crowd.acceptance.tests.rest.service.SamlConfigurationResourceTest

public class SamlConfigurationResourceTest extends Object
Tests for the SamlConfigurationResource resource
  • Field Details

    • CROWD_APP_NAME

      protected static final String CROWD_APP_NAME
      See Also:
    • fixture

      public RestTestFixture fixture
    • runConditionallyRule

      public com.atlassian.testutils.rules.RunConditionallyRule runConditionallyRule
  • Constructor Details

    • SamlConfigurationResourceTest

      public SamlConfigurationResourceTest()
  • Method Details

    • onStart

      public static void onStart() throws org.opensaml.core.config.InitializationException
      Throws:
      org.opensaml.core.config.InitializationException
    • setupCertificate

      public void setupCertificate()
    • shouldNotFetchSamlConfigurationWhenAnonymousRequest

      public void shouldNotFetchSamlConfigurationWhenAnonymousRequest()
    • shouldNotResetSamlConfigurationWhenAnonymousRequest

      public void shouldNotResetSamlConfigurationWhenAnonymousRequest()
    • shouldSuccessfullyCheckDirectoryMappings

      public void shouldSuccessfullyCheckDirectoryMappings()
    • shouldGetFailedEntityWhileCheckDirectoryMappings

      public void shouldGetFailedEntityWhileCheckDirectoryMappings()
    • shouldCorrectlyFetchSamlConfiguration

      public void shouldCorrectlyFetchSamlConfiguration()
    • shouldGetLicenseErrorWhenFetchingSamlConfiguration

      public void shouldGetLicenseErrorWhenFetchingSamlConfiguration()
    • shouldGenerateCertificateAndCorrectlyFetchSamlConfiguration

      public void shouldGenerateCertificateAndCorrectlyFetchSamlConfiguration()
    • shouldCorrectlyFetchIdpMetadata

      public void shouldCorrectlyFetchIdpMetadata() throws net.shibboleth.utilities.java.support.xml.XMLParserException, org.opensaml.core.xml.io.UnmarshallingException
      Throws:
      net.shibboleth.utilities.java.support.xml.XMLParserException
      org.opensaml.core.xml.io.UnmarshallingException
    • shouldGetLicenseErrorWhenFetchingIdpMetaData

      public void shouldGetLicenseErrorWhenFetchingIdpMetaData()
    • shouldNotReturnIdpsMetadataWhenAnonymousRequest

      public void shouldNotReturnIdpsMetadataWhenAnonymousRequest()
    • shouldGetApplicationSamlConfig

      public void shouldGetApplicationSamlConfig()
    • shouldGetLicenseErrorWhenFetchingApplicationSamlConfig

      public void shouldGetLicenseErrorWhenFetchingApplicationSamlConfig()
    • shouldParseXml

      public void shouldParseXml()
    • shouldGetLicenseErrorWhenParsingXML

      public void shouldGetLicenseErrorWhenParsingXML()
    • shouldFailToParseXml

      public void shouldFailToParseXml()
    • shouldUpdateSamlConfig

      public void shouldUpdateSamlConfig()
    • shouldGetLicenseErrorWhenUpdatingSamlConfig

      public void shouldGetLicenseErrorWhenUpdatingSamlConfig()
    • testUpdateNotUnique

      public void testUpdateNotUnique()
    • testUpdateEmptyDisabled

      public void testUpdateEmptyDisabled()
    • testUpdateEmptyEnabled

      public void testUpdateEmptyEnabled()
    • shouldCorrectlyResetSamlConfigurationWhenAdminRequest

      public void shouldCorrectlyResetSamlConfigurationWhenAdminRequest()
    • shouldGetLicenseErrorWhenResettingSAMLCertificate

      public void shouldGetLicenseErrorWhenResettingSAMLCertificate()
    • shouldChangeNameIdFormatToEmail

      public void shouldChangeNameIdFormatToEmail()
    • shouldDefaultToUnspecifiedWhenNameIdFormatIsNull

      public void shouldDefaultToUnspecifiedWhenNameIdFormatIsNull()
    • validateSamlConfiguration

      public void validateSamlConfiguration()