Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
64 24 17 0 35.938% 7.671

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
1 0 1 0 0% 1
fr.paris.lutece.plugins.identitystore.v3.service 4 0 1 0 75% 0.124
fr.paris.lutece.plugins.identitystore.v3.request.referentiel 6 0 0 0 100% 0.012
fr.paris.lutece.plugins.identitystore.v3.request.application 8 1 2 0 62.5% 1.005
fr.paris.lutece.plugins.identitystore.v3.request.history 4 3 1 0 0% 0.006
fr.paris.lutece.plugins.identitystore.service.indexer.elastic.client 1 1 0 0 0% 0.183
fr.paris.lutece.plugins.identitystore.v3.request.identity 16 10 6 0 0% 0.008
fr.paris.lutece.plugins.identitystore.service.attribute 10 4 0 0 60% 5.329
fr.paris.lutece.plugins.identitystore.v3.request.contract 14 5 6 0 21.429% 0.004

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

Class Tests Errors Failures Skipped Success Rate Time
antrunsql 1 0 1 0 0% 1

fr.paris.lutece.plugins.identitystore.v3.service

Class Tests Errors Failures Skipped Success Rate Time
IdentityStoreControlsTest 4 0 1 0 75% 0.124

fr.paris.lutece.plugins.identitystore.v3.request.referentiel

Class Tests Errors Failures Skipped Success Rate Time
AttributeKeyListGetRequestTest 2 0 0 0 100% 0
ProcessusListGetRequestTest 2 0 0 0 100% 0.012
LevelListGetRequestTest 2 0 0 0 100% 0

fr.paris.lutece.plugins.identitystore.v3.request.application

Class Tests Errors Failures Skipped Success Rate Time
ClientUpdateRequestTest 2 1 0 0 50% 0
ClientCreateRequestTest 2 0 0 0 100% 1.005
ClientsGetRequestTest 2 0 1 0 50% 0
ClientGetRequestTest 2 0 1 0 50% 0

fr.paris.lutece.plugins.identitystore.v3.request.history

Class Tests Errors Failures Skipped Success Rate Time
IdentityStoreHistoryGetRequestTest 2 1 1 0 0% 0.006
IdentityStoreHistorySearchRequestTest 2 2 0 0 0% 0

fr.paris.lutece.plugins.identitystore.service.indexer.elastic.client

Class Tests Errors Failures Skipped Success Rate Time
ElasticClientTest 1 1 0 0 0% 0.183

fr.paris.lutece.plugins.identitystore.v3.request.identity

Class Tests Errors Failures Skipped Success Rate Time
IdentityStoreSearchRequestTest 2 2 0 0 0% 0
IdentityStoreCreateRequestTest 2 0 2 0 0% 0
IdentityStoreUncertifyRequestTest 2 1 1 0 0% 0.001
IdentityStoreGetUpdatedIdentitiesRequestTest 2 1 1 0 0% 0.006
IdentityStoreDeleteRequestTest 2 1 1 0 0% 0
IdentityStoreExportRequestTest 2 2 0 0 0% 0
IdentityStoreUpdateRequestTest 2 2 0 0 0% 0.001
IdentityStoreGetRequestTest 2 1 1 0 0% 0

fr.paris.lutece.plugins.identitystore.service.attribute

Class Tests Errors Failures Skipped Success Rate Time
IdentityAttributeGeocodesAdjustmentServiceTest 10 4 0 0 60% 5.329

fr.paris.lutece.plugins.identitystore.v3.request.contract

Class Tests Errors Failures Skipped Success Rate Time
ServiceContractGetRequestTest 2 1 0 0 50% 0
ServiceContractPutEndDateRequestTest 2 2 0 0 0% 0.002
ServiceContractListGetRequestTest 2 0 1 0 50% 0
ServiceContractListGetAllRequestTest 2 0 1 0 50% 0.001
ActiveServiceContractGetRequestTest 2 0 2 0 0% 0
ServiceContractCreateRequestTest 2 0 2 0 0% 0
ServiceContractUpdateRequestTest 2 2 0 0 0% 0.001

Test Cases

[Summary] [Package List] [Test Cases]

IdentityStoreSearchRequestTest

test_1_RequestOK 0
No contract service found for client application with code TEST
test_2_RequestKO 0
No contract service found for client application with code TEST

ServiceContractGetRequestTest

test_1_RequestOK 0
No contract service found for client application with code TEST
test_2_RequestKO 0

IdentityStoreHistoryGetRequestTest

test_1_RequestOK 0.004
No contract service found for client application with code TEST
test_2_RequestKO 0.002
2.2. Get identity history with unknown customer ID : the exception that occured is not of the expected type. Exception message : No contract service found for client application with code TEST expected:<class fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException> but was:<class fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException>

ServiceContractPutEndDateRequestTest

test_1_RequestOK 0.001
No application could be found with code TEST
test_2_RequestKO 0.001
No application could be found with code TEST

ServiceContractListGetRequestTest

test_1_RequestOK 0
1.1. Get all service contract list by client code : request was expected to succeed, but it failed. Exception message : No application could be found with code TEST
test_2_RequestKO 0

AttributeKeyListGetRequestTest

test_1_RequestOK 0
test_2_RequestKO 0

ProcessusListGetRequestTest

test_1_RequestOK 0.01
test_2_RequestKO 0

LevelListGetRequestTest

test_1_RequestOK 0
test_2_RequestKO 0

IdentityAttributeGeocodesAdjustmentServiceTest

testFalseCountryNameOnly 5.271
testCityCodeNotFrench 0
testCityNameNotFrench 0
testCountryNameOnly 0.003
testOtherCountryToFrance 0.002
testCityNameUnique 0.009
testCityCodeOnlyNoCountry 0.001
testCityNameAndCode 0
testFranceToOtherCountry 0.001
testCityNameMultiple 0.001

ServiceContractListGetAllRequestTest

test_1_RequestOK 0.001
1.1. Get all service contracts : request was expected to succeed, but it failed. Exception message : No service contract found
test_2_RequestKO 0

IdentityStoreCreateRequestTest

test_1_RequestOK 0
1.1. Create identity request : request was expected to succeed, but it failed. Exception message : No contract service found for client application with code TEST
test_2_RequestKO 0
2.1. Create request without identity change request : the exception that occured is not of the expected type. Exception message : No contract service found for client application with code TEST expected:<class fr.paris.lutece.plugins.identitystore.web.exception.RequestFormatException> but was:<class fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException>

IdentityStoreUncertifyRequestTest

test_1_RequestOK 0
No contract service found for client application with code TEST
test_2_RequestKO 0
2.2. Uncertify identity with unknown customer ID : the exception that occured is not of the expected type. Exception message : No contract service found for client application with code TEST expected:<class fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException> but was:<class fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException>

ClientUpdateRequestTest

test_1_RequestOK 0
A client already exists with the code ClientCodeMock
test_2_RequestKO 0

antrunsql

antrunsql 1

IdentityStoreControlsTest

testControlAttributesIntegrityUpdateKO 0.11
testControlAttributesIntegrityUpdateOK 0.006
testControlAttributesIntegrityCreateKO 0.005
3.1. Create Identity with all attributes at level 400, without gender : expected to fail pivot attributes integrity validation, but validation passed successfully.
testControlAttributesIntegrityCreateOK 0.003

IdentityStoreGetUpdatedIdentitiesRequestTest

test_1_RequestOK 0
No contract service found for client application with code TEST
test_2_RequestKO 0.006
2.5. Get updated identities with no result : the exception that occured is not of the expected type. Exception message : DAOUtil error : user lacks privilege or object not found: IDENTITYSTORE_IDENTITY_HISTORY in statement [SELECT DISTINCT i.customer_id, i.last_update_date FROM identitystore_identity i JOIN identitystore_identity_history ih ON i.customer_id = ih.customer_id JOIN identitystore_identity_attribute_history iah ON i.id_identity = iah.id_identity WHERE 1=1 AND i.last_update_date > (NOW() - INTERVAL '0' DAY) AND ih.modification_date > (NOW() - INTERVAL '0' DAY) AND ih.change_type IN (6) ORDER BY i.last_update_date DESC LIMIT 500] - SQL statement : - Plugin : identitystore expected:<class fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException> but was:<class fr.paris.lutece.portal.service.util.AppException>

IdentityStoreDeleteRequestTest

test_1_RequestOK 0
No contract service found for client application with code TEST
test_2_RequestKO 0
2.1. Delete identity request without CUID : the exception that occured is not of the expected type. Exception message : No contract service found for client application with code TEST expected:<class fr.paris.lutece.plugins.identitystore.web.exception.RequestFormatException> but was:<class fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException>

ActiveServiceContractGetRequestTest

test_1_RequestOK 0
1.1. Get active service contract with existing client code : request was expected to succeed, but it failed. Exception message : No contract service found for client application with code TEST
test_2_RequestKO 0
2.3. Get active service contract with unknown client code : the exception that occured is not of the expected type. Exception message : No contract service found for client application with code unknownClientCode expected:<class fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException> but was:<class fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException>

IdentityStoreExportRequestTest

test_1_RequestOK 0
No contract service found for client application with code TEST
test_2_RequestKO 0
No contract service found for client application with code TEST

ServiceContractCreateRequestTest

test_1_RequestOK 0
1.1. Create service contract request : request was expected to succeed, but it failed. Exception message : No application could be found with code TEST
test_2_RequestKO 0
2.4. Create request with one missing mandatory field : the exception that occured is not of the expected type. Exception message : No application could be found with code TEST expected:<class fr.paris.lutece.plugins.identitystore.web.exception.RequestFormatException> but was:<class fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException>

ServiceContractUpdateRequestTest

test_1_RequestOK 0
No application could be found with code TEST
test_2_RequestKO 0.001
No application could be found with code TEST

IdentityStoreHistorySearchRequestTest

test_1_RequestOK 0
No contract service found for client application with code TEST
test_2_RequestKO 0
No contract service found for client application with code TEST

IdentityStoreUpdateRequestTest

test_1_RequestOK 0
No contract service found for client application with code TEST
test_2_RequestKO 0
No contract service found for client application with code TEST

ClientCreateRequestTest

test_1_RequestOK 1.004
test_2_RequestKO 0.001

IdentityStoreGetRequestTest

test_1_RequestOK 0
No contract service found for client application with code TEST
test_2_RequestKO 0
2.1. Get identity request without CUID : the exception that occured is not of the expected type. Exception message : No contract service found for client application with code TEST expected:<class fr.paris.lutece.plugins.identitystore.web.exception.RequestFormatException> but was:<class fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException>

ElasticClientTest

testClient 0.183
Could not find a valid Docker environment. Please see logs and check configuration

ClientsGetRequestTest

test_1_RequestOK 0
1.1. Get client applications with existing application code : request was expected to succeed, but it failed. Exception message : No client found
test_2_RequestKO 0

ClientGetRequestTest

test_1_RequestOK 0
1.1. Get client application with existing client code : request was expected to succeed, but it failed. Exception message : No client found
test_2_RequestKO 0

Failure Details

[Summary] [Package List] [Test Cases]


test_1_RequestOK
fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException: No contract service found for client application with code TEST
test_2_RequestKO
fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException: No contract service found for client application with code TEST
test_1_RequestOK
fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException: No contract service found for client application with code TEST
test_1_RequestOK
fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException: No contract service found for client application with code TEST
test_2_RequestKO
junit.framework.AssertionFailedError: 2.2. Get identity history with unknown customer ID : the exception that occured is not of the expected type. Exception message : No contract service found for client application with code TEST expected:<class fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException> but was:<class fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException>
test_1_RequestOK
fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException: No application could be found with code TEST
test_2_RequestKO
fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException: No application could be found with code TEST
test_1_RequestOK
junit.framework.AssertionFailedError: 1.1. Get all service contract list by client code : request was expected to succeed, but it failed. Exception message : No application could be found with code TEST
testCityNameUnique
java.lang.NullPointerException
testCityCodeOnlyNoCountry
java.lang.NullPointerException
testCityNameAndCode
java.lang.NullPointerException
testCityNameMultiple
java.lang.NullPointerException
test_1_RequestOK
junit.framework.AssertionFailedError: 1.1. Get all service contracts : request was expected to succeed, but it failed. Exception message : No service contract found
test_1_RequestOK
junit.framework.AssertionFailedError: 1.1. Create identity request : request was expected to succeed, but it failed. Exception message : No contract service found for client application with code TEST
test_2_RequestKO
junit.framework.AssertionFailedError: 2.1. Create request without identity change request : the exception that occured is not of the expected type. Exception message : No contract service found for client application with code TEST expected:<class fr.paris.lutece.plugins.identitystore.web.exception.RequestFormatException> but was:<class fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException>
test_1_RequestOK
fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException: No contract service found for client application with code TEST
test_2_RequestKO
junit.framework.AssertionFailedError: 2.2. Uncertify identity with unknown customer ID : the exception that occured is not of the expected type. Exception message : No contract service found for client application with code TEST expected:<class fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException> but was:<class fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException>
test_1_RequestOK
fr.paris.lutece.plugins.identitystore.web.exception.ResourceConsistencyException: A client already exists with the code ClientCodeMock
antrunsql
antrunsql
testControlAttributesIntegrityCreateKO
junit.framework.AssertionFailedError: 3.1. Create Identity with all attributes at level 400, without gender : expected to fail pivot attributes integrity validation, but validation passed successfully.
test_1_RequestOK
fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException: No contract service found for client application with code TEST
test_2_RequestKO
junit.framework.AssertionFailedError: 2.5. Get updated identities with no result : the exception that occured is not of the expected type. Exception message : DAOUtil error : user lacks privilege or object not found: IDENTITYSTORE_IDENTITY_HISTORY in statement [SELECT DISTINCT i.customer_id, i.last_update_date FROM identitystore_identity i JOIN identitystore_identity_history ih ON i.customer_id = ih.customer_id JOIN identitystore_identity_attribute_history iah ON i.id_identity = iah.id_identity WHERE 1=1 AND i.last_update_date > (NOW() - INTERVAL '0' DAY) AND ih.modification_date > (NOW() - INTERVAL '0' DAY) AND ih.change_type IN (6) ORDER BY i.last_update_date DESC LIMIT 500] - SQL statement : - Plugin : identitystore expected:<class fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException> but was:<class fr.paris.lutece.portal.service.util.AppException>
test_1_RequestOK
fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException: No contract service found for client application with code TEST
test_2_RequestKO
junit.framework.AssertionFailedError: 2.1. Delete identity request without CUID : the exception that occured is not of the expected type. Exception message : No contract service found for client application with code TEST expected:<class fr.paris.lutece.plugins.identitystore.web.exception.RequestFormatException> but was:<class fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException>
test_1_RequestOK
junit.framework.AssertionFailedError: 1.1. Get active service contract with existing client code : request was expected to succeed, but it failed. Exception message : No contract service found for client application with code TEST
test_2_RequestKO
junit.framework.AssertionFailedError: 2.3. Get active service contract with unknown client code : the exception that occured is not of the expected type. Exception message : No contract service found for client application with code unknownClientCode expected:<class fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException> but was:<class fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException>
test_1_RequestOK
fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException: No contract service found for client application with code TEST
test_2_RequestKO
fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException: No contract service found for client application with code TEST
test_1_RequestOK
junit.framework.AssertionFailedError: 1.1. Create service contract request : request was expected to succeed, but it failed. Exception message : No application could be found with code TEST
test_2_RequestKO
junit.framework.AssertionFailedError: 2.4. Create request with one missing mandatory field : the exception that occured is not of the expected type. Exception message : No application could be found with code TEST expected:<class fr.paris.lutece.plugins.identitystore.web.exception.RequestFormatException> but was:<class fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException>
test_1_RequestOK
fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException: No application could be found with code TEST
test_2_RequestKO
fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException: No application could be found with code TEST
test_1_RequestOK
fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException: No contract service found for client application with code TEST
test_2_RequestKO
fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException: No contract service found for client application with code TEST
test_1_RequestOK
fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException: No contract service found for client application with code TEST
test_2_RequestKO
fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException: No contract service found for client application with code TEST
test_1_RequestOK
fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException: No contract service found for client application with code TEST
test_2_RequestKO
junit.framework.AssertionFailedError: 2.1. Get identity request without CUID : the exception that occured is not of the expected type. Exception message : No contract service found for client application with code TEST expected:<class fr.paris.lutece.plugins.identitystore.web.exception.RequestFormatException> but was:<class fr.paris.lutece.plugins.identitystore.web.exception.ClientAuthorizationException>
testClient
java.lang.IllegalStateException: Could not find a valid Docker environment. Please see logs and check configuration
test_1_RequestOK
junit.framework.AssertionFailedError: 1.1. Get client applications with existing application code : request was expected to succeed, but it failed. Exception message : No client found
test_1_RequestOK
junit.framework.AssertionFailedError: 1.1. Get client application with existing client code : request was expected to succeed, but it failed. Exception message : No client found