summaryrefslogtreecommitdiff
path: root/eaaf_core/src/test/resources
diff options
context:
space:
mode:
Diffstat (limited to 'eaaf_core/src/test/resources')
-rw-r--r--eaaf_core/src/test/resources/SpringTest-authcommon-errorService.xml25
-rw-r--r--eaaf_core/src/test/resources/config/error_conf.yaml140
2 files changed, 165 insertions, 0 deletions
diff --git a/eaaf_core/src/test/resources/SpringTest-authcommon-errorService.xml b/eaaf_core/src/test/resources/SpringTest-authcommon-errorService.xml
new file mode 100644
index 00000000..35bd9d6f
--- /dev/null
+++ b/eaaf_core/src/test/resources/SpringTest-authcommon-errorService.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:context="http://www.springframework.org/schema/context"
+ xmlns:tx="http://www.springframework.org/schema/tx"
+ xmlns:aop="http://www.springframework.org/schema/aop"
+ xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
+ http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
+
+ <bean id="DummyAuthConfig"
+ class="at.gv.egiz.eaaf.core.impl.idp.auth.dummy.DummyAuthConfig" />
+
+ <bean id="errorTicketService"
+ class="at.gv.egiz.eaaf.core.impl.idp.auth.service.JunitTicketErrorService">
+ </bean>
+
+ <bean id="junitStatusMessanger"
+ class="at.gv.egiz.eaaf.core.impl.logging.JUnitTestStatusMessenger" />
+
+ <bean id="simplePendingReqStrategy"
+ class="at.gv.egiz.eaaf.core.impl.utils.SimplePendingRequestIdGenerationStrategy"/>
+
+</beans>
diff --git a/eaaf_core/src/test/resources/config/error_conf.yaml b/eaaf_core/src/test/resources/config/error_conf.yaml
new file mode 100644
index 00000000..0e204e97
--- /dev/null
+++ b/eaaf_core/src/test/resources/config/error_conf.yaml
@@ -0,0 +1,140 @@
+## If no externalCode specified -> 9199 is used
+
+## internal errors with tickets ##
+- action: ticket
+ externalCode: 9199
+ logLevel: ERROR
+ defaultConfig: True
+
+- action: ticket
+ externalCode: 1002
+ logLevel: WARN
+ internalCode:
+ - auth.39
+ - auth.40
+ - auth.41
+ - auth.42
+ - builder.08
+ - builder.11
+ - builder.13
+ - builder.15
+ - builder.16
+ - builder.17
+
+- action: ticket
+ externalCode: 1003
+ logLevel: WARN
+ internalCode:
+ - sl20.07.00
+ - sl20.07.01
+ - sl20.07.04
+ - sl20.07.05
+ - sl20.07.99
+
+- action: ticket
+ externalCode: 1200
+ logLevel: WARN
+ internalCode:
+ - module.binding.16
+ - module.binding.21
+ - module.binding.32
+
+- action: ticket
+ externalCode: 9199
+ logLevel: WARN
+ internalCode:
+ - internal.pendingreqid.01
+ - internal.pendingreqid.03
+ - internal.pendingreqid.04
+ - internal.pendingreqid.05
+ - internal.token.01
+ - internal.token.04
+ - internal.token.08
+ - internal.token.09
+ - internal.token.10
+
+- action: ticket
+ useInternalAsExternal: true
+ logLevel: ERROR
+ internalCode:
+ - config.06
+
+## internal errors without tickets ##
+- action: no_ticket
+ externalCode: 1001
+ logLevel: INFO
+ internalCode:
+ - internal.pendingreqid.06
+ - internal.token.11
+
+- action: no_ticket
+ externalCode: 1003
+ logLevel: WARN
+ internalCode:
+ - sl20.07.02
+ - sl20.07.03
+
+- action: no_ticket
+ externalCode: 1005
+ internalCode:
+ - auth.21
+ logLevel: INFO
+
+- action: no_ticket
+ externalCode: 1201
+ logLevel: WARN
+ internalCode:
+ - module.binding.17
+ - module.binding.19
+ - module.binding.15
+
+- action: no_ticket
+ externalCode: 1200
+ logLevel: info
+ internalCode:
+ - module.binding.33
+ - module.binding.34
+ - module.binding.35
+
+- action: no_ticket
+ externalCode: 9199
+ logLevel: WARN
+ internalCode:
+ - module.binding.14
+ - module.binding.25
+ - module.binding.29
+ - module.binding.30
+ - module.eidasauth.06
+ - module.mis.04
+ - module.mis.05
+ - module.mis.06
+ - module.mis.07
+ - module.mis.08
+ - module.mis.vemo.01
+ - module.mis.vemo.02
+ - module.mis.vemo.03
+ - module.mis.vemo.gui.01
+ - auth.eidbind.02
+ - internal.pendingreqid.00
+ - module.binding.04
+ - module.binding.05
+ - shibboleth.00
+
+- action: no_ticket
+ externalCode: 9199
+ internalCode:
+ - module.binding.31
+ - module.binding.36
+ logLevel: INFO
+
+- action: no_ticket
+ useInternalAsExternal: true
+ logLevel: ERROR
+ internalCode:
+ - auth.28
+ - auth.26
+- action: errorpage
+ useInternalAsExternal: true
+ logLevel: ERROR
+ internalCode:
+ - junit.01 \ No newline at end of file