[midPoint] Can't start test for notification-impl module

Ващенков Алексей a.vashchenkov at solarsecurity.ru
Tue Aug 4 10:42:31 CEST 2015


Hi.

I need to test new functionality in notifications. But I can't start current tests.

I use IntelliJ Idea. I've configured run configuration (see screenshot) but test does't work.

In logs I see an error
[TestNG] Running:
  D:\.cache\idea14\system\temp-testng-customsuite.xml

Loading midPoint configuration from file target\midpoint-home\test-config.xml
Import of src\test\resources\common\resource-dummy.xml has failed: FATAL_ERROR: Repository reference {http://midpoint.evolveum.com/xml/ns/public/common/common-3}connectorRef cannot be resolved: filter matches no object
*op* com.evolveum.midpoint.model.api.ModelService.importObjectsFromStream, st: FATAL_ERROR, msg: Repository reference {http://midpoint.evolveum.com/xml/ns/public/common/common-3}connectorRef cannot be resolved: filter matches no object
        [p]options=com.evolveum.midpoint.xml.ns._public.common.api_types_3.ImportOptionsType at 27957ac[overwrite=false,keepOid=<null>,stopAfterErrors=<null>,summarizeSucceses=true,summarizeErrors=true,referentialIntegrity=<null>,validateStaticSchema=false,validateDynamicSchema=false,encryptProtectedValues=true,fetchResourceSchema=false,keepMetadata=<null>]
    *op* com.evolveum.midpoint.common.operation.import.object, st: FATAL_ERROR, msg: Repository reference {http://midpoint.evolveum.com/xml/ns/public/common/common-3}connectorRef cannot be resolved: filter matches no object
            [c]startLineNumber=18
            [c]progress=1
            [c]object=resource:10000000-0000-0000-0000-000000000004(Dummy Resource)
            [c]endLineNumber=316
        *op* com.evolveum.midpoint.common.validator.Validator.objectBasicsCheck, st: SUCCESS, msg: null
        *op* com.evolveum.midpoint.common.validator.Validator.resourceNamespaceCheck, st: SUCCESS, msg: null
        *op* com.evolveum.midpoint.model.impl.importer.ObjectImporter.resolveReference, st: FATAL_ERROR, msg: Repository reference {http://midpoint.evolveum.com/xml/ns/public/common/common-3}connectorRef cannot be resolved: filter matches no object
                [c]item={...common/common-3}connectorRef
            *op* com.evolveum.midpoint.repo.api.RepositoryService.searchObjects, st: SUCCESS, msg: null
                    [p]query=Q{AND(EQUAL(connectorType,PPV(String:com.evolveum.icf.dummy.connector.DummyConnector),EQUAL(connectorVersion,PPV(String:2.0)),null paging
                    [p]type=com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorType

java.lang.AssertionError: Import of src\test\resources\common\resource-dummy.xml has failed: FATAL_ERROR: Repository reference {http://midpoint.evolveum.com/xml/ns/public/common/common-3}connectorRef cannot be resolved: filter matches no object
                at com.evolveum.midpoint.test.util.TestUtil.assertSuccess(TestUtil.java:215)
                at com.evolveum.midpoint.test.util.TestUtil.assertSuccess(TestUtil.java:238)
                at com.evolveum.midpoint.test.util.TestUtil.assertSuccess(TestUtil.java:242)
                at com.evolveum.midpoint.model.test.AbstractModelIntegrationTest.importAndGetObjectFromFile(AbstractModelIntegrationTest.java:333)
                at com.evolveum.midpoint.model.test.AbstractModelIntegrationTest.importAndGetObjectFromFile(AbstractModelIntegrationTest.java:327)
                at com.evolveum.midpoint.model.impl.AbstractInternalModelIntegrationTest.initSystem(AbstractInternalModelIntegrationTest.java:207)
                at com.evolveum.midpoint.wf.impl.AbstractWfTest.initSystem(AbstractWfTest.java:158)
                at com.evolveum.midpoint.test.AbstractIntegrationTest.initSystemConditional(AbstractIntegrationTest.java:180)

How can I setup the run configuration to make this test working?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20150804/5b255878/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-run-config.png
Type: image/png
Size: 39303 bytes
Desc: test-run-config.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20150804/5b255878/attachment.png>


More information about the midPoint mailing list