Class SamlConfigurationResourceTest
java.lang.Object
com.atlassian.crowd.acceptance.tests.rest.service.SamlConfigurationResourceTest
Tests for the SamlConfigurationResource resource
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
com.atlassian.testutils.rules.RunConditionallyRule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
onStart()
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
-
Field Details
-
CROWD_APP_NAME
- See Also:
-
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()
-