public class FileBackedHTTPMetadataResolverTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
FileBackedHTTPMetadataResolver.| Modifier and Type | Field and Description |
|---|---|
private String |
backupFilePath |
private String |
badMDURL |
private CriteriaSet |
criteriaSet |
private String |
entityID |
private HttpClientBuilder |
httpClientBuilder |
private org.opensaml.saml.metadata.resolver.impl.FileBackedHTTPMetadataResolver |
metadataProvider |
private String |
metadataURLHttp |
private String |
metadataURLHttps |
private String |
relativeMDResource |
| Constructor and Description |
|---|
FileBackedHTTPMetadataResolverTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testFailFastBadBackupFile()
Test fail-fast = true and bad backup file
|
void |
testFailFastBadURL()
Test fail-fast = true with known bad metadata URL.
|
void |
testGetEntityDescriptor()
Tests the basic success case.
|
void |
testHTTPSNoTrustEngine() |
void |
testHTTPSTrustEngineExplicitKey() |
void |
testHTTPSTrustEngineInvalidKey() |
void |
testHTTPSTrustEngineInvalidPKIX() |
void |
testHTTPSTrustEngineValidPKIX() |
void |
testHTTPSTrustEngineValidPKIXExplicitName() |
void |
testHTTPSTrustEngineValidPKIXInvalidName() |
void |
testHTTPSTrustEngineWrongSocketFactory() |
void |
testInitFromBackupFile()
Tests initialization from backup file, followed shortly by real refresh via HTTP.
|
void |
testNoBackupFileLoadWhenMetadataCached()
Tests that backup file is not loaded on a refresh when already have cached metadata.
|
void |
testNoFailFastBadBackupFile()
Test case of fail-fast = false and bad backup file
|
void |
testNoFailFastBadURL()
Test fail-fast = false with known bad metadata URL.
|
void |
testTrustEngineSocketFactoryNoHTTPSNoTrustEngine() |
void |
testTrustEngineSocketFactoryNoHTTPSWithTrustEngine() |
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementprivate HttpClientBuilder httpClientBuilder
private String relativeMDResource
private String metadataURLHttps
private String metadataURLHttp
private String badMDURL
private String backupFilePath
private org.opensaml.saml.metadata.resolver.impl.FileBackedHTTPMetadataResolver metadataProvider
private String entityID
private CriteriaSet criteriaSet
protected void tearDown()
throws IOException
IOExceptionpublic void testGetEntityDescriptor()
throws Exception
public void testFailFastBadURL()
throws Exception
Exceptionpublic void testNoFailFastBadURL()
throws Exception
Exceptionpublic void testFailFastBadBackupFile()
throws Exception
Exceptionpublic void testNoFailFastBadBackupFile()
throws Exception
ResolverExceptionExceptionpublic void testInitFromBackupFile()
throws Exception
ComponentInitializationExceptionResolverException, - ComponentInitializationExceptionExceptionpublic void testNoBackupFileLoadWhenMetadataCached()
throws Exception
ComponentInitializationExceptionResolverException, - ComponentInitializationExceptionExceptionpublic void testTrustEngineSocketFactoryNoHTTPSNoTrustEngine()
throws Exception
Exceptionpublic void testTrustEngineSocketFactoryNoHTTPSWithTrustEngine()
throws Exception
Exceptionpublic void testHTTPSTrustEngineExplicitKey()
throws Exception
Exceptionpublic void testHTTPSTrustEngineInvalidKey()
throws Exception
Exceptionpublic void testHTTPSTrustEngineValidPKIX()
throws Exception
Exceptionpublic void testHTTPSTrustEngineValidPKIXExplicitName()
throws Exception
Exceptionpublic void testHTTPSTrustEngineInvalidPKIX()
throws Exception
Exceptionpublic void testHTTPSTrustEngineValidPKIXInvalidName()
throws Exception
ExceptionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.