Files
ofbiz-framework/framework/service/testdef/servicetests.xml
T
Nicolas Malin f4aab777a5 Improved: Refactoring permission model call
(OFBIZ-7113)
With the problem to have a permission service not on the same transaction that the related service [1]

I realized the following improvement to
 * unified call evalPermission
 * move all related field for permission service on ModelService to ModelPermission
 * Remove deprecated code
 * add labelized error message  
 * call as same transaction the permission service by defautl with possibility to overide this rule 
 * add new attributes on permission model: require-new-transaction and return-error-on-failure

Thanks to Jacques Leroux for the review


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866137 13f79535-47bb-0310-9956-ffa450edef68
2019-08-30 08:47:48 +00:00

84 lines
4.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<test-suite suite-name="servicetests"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/test-suite.xsd">
<test-case case-name="service-tests"><junit-test-suite class-name="org.apache.ofbiz.service.test.ServiceEngineTests"/></test-case>
<test-case case-name="service-soap-tests"><junit-test-suite class-name="org.apache.ofbiz.service.test.ServiceSOAPTests"/></test-case>
<test-case case-name="service-entity-auto-tests"><junit-test-suite class-name="org.apache.ofbiz.service.test.ServiceEntityAutoTests"/></test-case>
<test-case case-name="load-service-test-data">
<entity-xml action="load" entity-xml-url="component://service/testdef/data/ServiceTestData.xml"/>
</test-case>
<test-case case-name="service-dead-lock-retry-test">
<service-test service-name="testServiceDeadLockRetry"/>
</test-case>
<test-case case-name="service-dead-lock-retry-assert-data">
<entity-xml action="assert" entity-xml-url="component://service/testdef/data/ServiceDeadLockRetryAssertData.xml"/>
</test-case>
<!-- this case is failing, so commenting out by default until an automatic fix can be found
<test-case case-name="service-lock-wait-timeout-retry-test">
<service-test service-name="testServiceLockWaitTimeoutRetry"/>
</test-case>
<test-case case-name="service-lock-wait-timeout-retry-assert-data">
<entity-xml action="assert" entity-xml-url="component://service/testdef/data/ServiceLockTimeoutRetryAssertData.xml"/>
</test-case>
-->
<!-- this case is failing, so commenting out by default until an automatic fix can be found
<test-case case-name="service-lock-wait-timeout-in-sub-service-retry-test">
<service-test service-name="testServiceLockWaitTimeoutRetryCantRecover"/>
</test-case>
<test-case case-name="service-lock-wait-timeout-in-sub-service-retry-test-assert-data">
<entity-xml action="assert" entity-xml-url="component://service/testdef/data/ServiceLockTimeoutRetryCantRecoverAssertData.xml"/>
</test-case>
-->
<test-case case-name="service-own-tx-sub-service-after-set-rollback-only-in-parent">
<service-test service-name="testServiceOwnTxSubServiceAfterSetRollbackOnlyInParentErrorCatchWrapper"/>
</test-case>
<test-case case-name="service-own-tx-sub-service-after-set-rollback-only-in-parent-assert-data">
<entity-xml action="assert" entity-xml-url="component://service/testdef/data/ServiceSetRollbackOnlyAssertData.xml"/>
</test-case>
<test-case case-name="service-eca-global-event-exec">
<service-test service-name="testServiceEcaGlobalEventExec"/>
</test-case>
<test-case case-name="service-eca-global-event-exec-assert-data">
<entity-xml action="assert" entity-xml-url="component://service/testdef/data/ServiceEcaGlobalEventAssertData.xml"/>
</test-case>
<test-case case-name="service-xml-rpc">
<junit-test-suite class-name="org.apache.ofbiz.service.test.XmlRpcTests"/>
</test-case>
<test-case case-name="service-xml-rpc-local-engine">
<service-test service-name="testXmlRpcClientAdd"/>
</test-case>
<test-case case-name="load-data-service-permission-tests">
<entity-xml entity-xml-url="component://service/testdef/data/PermissionServiceTestData.xml"/>
</test-case>
<test-case case-name="service-permission-tests">
<junit-test-suite class-name="org.apache.ofbiz.service.test.ServicePermissionTests"/>
</test-case>
</test-suite>