Commit f5743c89 authored by Misagh Moayyed's avatar Misagh Moayyed
Browse files

fixed test cases

parent 264c793f
......@@ -36,6 +36,7 @@ import org.springframework.core.io.Resource;
import javax.annotation.PostConstruct;
import java.util.Map;
import java.util.UUID;
/**
* A {@link StaticMetadataResolverAdapter} that loads metadata from static xml files
......@@ -88,8 +89,9 @@ public final class StaticMetadataResolverAdapter extends AbstractMetadataResolve
thread.start();
final JobDetail job = JobBuilder.newJob(this.getClass())
.withIdentity(this.getClass().getSimpleName()).build();
.withIdentity(this.getClass().getSimpleName().concat(UUID.randomUUID().toString())).build();
final Trigger trigger = TriggerBuilder.newTrigger()
.withIdentity(this.getClass().getSimpleName().concat(UUID.randomUUID().toString()))
.withSchedule(SimpleScheduleBuilder.simpleSchedule()
.withIntervalInMinutes(this.refreshIntervalInMinutes)
.repeatForever()).build();
......
......@@ -110,7 +110,7 @@
<util:map id="metadataResources">
<!-- http://md.incommon.org/InCommon/InCommon-metadata.xml -->
<entry key="classpath:/sample-metadata.xml"
<entry key="${cas.saml.metadata.resource:classpath:/sample-metadata.xml}"
value-ref="inCommonMetadataFilters" />
</util:map>
......@@ -147,8 +147,10 @@
<bean id="credentialFactoryBean"
class="net.shibboleth.idp.profile.spring.relyingparty.security.credential.BasicResourceCredentialFactoryBean"
p:publicKeyInfo="classpath:inc-md-pub.pem" >
</bean>
p:publicKeyInfo-ref="publicKeyInfo" />
<bean id="publicKeyInfo" class="org.springframework.core.io.ClassPathResource"
c:path="/inc-md-pub.pem" />
<bean id="servicesManager" class="org.jasig.cas.services.DefaultServicesManagerImpl"
c:serviceRegistryDao-ref="serviceRegistryDao" />
......
......@@ -38,3 +38,4 @@ cas.saml.ticketid.saml2=false
cas.saml.googleapps.publickey.file=classpath:DSAPublicKey01.key
cas.saml.googleapps.privatekey.file=classpath:DSAPrivateKey01.key
cas.saml.googleapps.key.alg=DSA
cas.saml.metadata.resource=classpath:/sample-metadata.xml
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0Chdkrn+dG5Zj5L3UIw+
xeWgNzm8ajw7/FyqRQ1SjD4Lfg2WCdlfjOrYGNnVZMCTfItoXTSpg4rXxHQsykeN
iYRu2+02uMS+1pnBqWjzdPJE0od+q8EbdvE6ShimjyNn0yQfGyQKCNdYuc+75MIH
saIOAEtDZUST9Sd4oeU1zRjV2sGvUd+JFHveUAhRc0b+JEZfIEuq/LIU9qxm/+gF
aawlmojZPyOWZ1JlswbrrJYYyn10qgnJvjh9gZWXKjmPxqvHKJcATPhAh2gWGabW
TXBJCckMe1hrHCl/vbDLCmz0/oYuoaSDzP6zE9YSA/xCplaHA0moC1Vs2H5MOQGl
ewIDAQAB
-----END PUBLIC KEY-----
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment