Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
72 0 0 1 98.611% 31.949

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
info.magnolia.rest.client.setup 3 0 0 0 100% 2.761
info.magnolia.rest.client.integration 53 0 0 1 98.113% 29.142
info.magnolia.rest.client.value 10 0 0 0 100% 0.007
info.magnolia.rest.client.cache 3 0 0 0 100% 0.039
info.magnolia.rest.client.registry 3 0 0 0 100% 0

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

info.magnolia.rest.client.setup

Class Tests Errors Failures Skipped Success Rate Time
RestClientModuleVersionHandlerTest 3 0 0 0 100% 2.761

info.magnolia.rest.client.integration

Class Tests Errors Failures Skipped Success Rate Time
RestClientMutationTest 1 0 0 1 0% 0
RestClientIntegrationTest 11 0 0 0 100% 0.654
RestClientTimeoutExceptionIntegrationTest 3 0 0 0 100% 2.234
RestClientErrorIntegrationTest 2 0 0 0 100% 0.212
RestClientExternalIntegrationTest 1 0 0 0 100% 0.055
RestClientCacheIntegrationTest 4 0 0 0 100% 0.247
RestClientOpenApiIntegrationTest 5 0 0 0 100% 0.953
RestClientAuthenticationTest 9 0 0 0 100% 23.816
RestClientDisabledIntegrationTest 2 0 0 0 100% 0.099
RestClientRedirectIntegrationTest 3 0 0 0 100% 0.208
RestClientOpenApiMissingOperationIdIntegrationTest 2 0 0 0 100% 0.112
RestTemplatingFunctionsIntegrationTest 10 0 0 0 100% 0.552

info.magnolia.rest.client.value

Class Tests Errors Failures Skipped Success Rate Time
TemplateResolverTest 10 0 0 0 100% 0.007

info.magnolia.rest.client.cache

Class Tests Errors Failures Skipped Success Rate Time
RestResponseCacheKeyTest 3 0 0 0 100% 0.039

info.magnolia.rest.client.registry

Class Tests Errors Failures Skipped Success Rate Time
RestClientRegistryTest 3 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

RestClientModuleVersionHandlerTest

updateTo20 1.644
updateTo20WithRestEasyClient 0.629
updateTo20WithSSLClientDefinition 0.486

RestResponseCacheKeyTest

sameUri_distinctHeader_expectUnequals 0.005
sameUri_misorderHeader_expectEquals 0
sameUri_sameHeader_expectEquals 0

TemplateResolverTest

plainStringIsLeftUntouched 0
nullTemplateResolvedAsNull 0
exceptionIsThrownOnUnresolvedParameters 0
resolvePasswordParameter 0.003
stringTemplateIsResolved 0
nestedMapWithStringValuesIsResolved 0.001
exceptionIsThrownOnUnresolvedNestedParameters 0.001
emptyTemplateResolvedAsEmptyString 0.001
errorIsReportedIfPasswordIsNotInRegistry 0.001
multipleParamOccurrencesAreResolved 0

RestClientMutationTest

info.magnolia.rest.client.integration.RestClientMutationTest 0
Created https://jira.magnolia-cms.com/browse/DEV-1468

RestClientIntegrationTest

tryToMakeCallToNotExistingRestClientName 0.036
tryToMakeCallToNotExistingRestCallName 0.042
getAllArticlesAsJsonNodeFromClient 0.041
invokeWithDefaultValues 0.044
parametersAreConvertedToStrings 0.043
getAllArticlesFromClient 0.045
tryToMakeCallWithUnknownValue 0.038
getAllArticlesAsJavaFromClient 0.096
getArticlesWithCharsToEncode 0.081
useJaxInterfaceAsClient 0.113
responseReturnsCorrectStatusCode 0.073

RestClientTimeoutExceptionIntegrationTest

validateRestTimeoutConfiguration 0.105
reachReadTimeout_cacheEmpty_expectNullValue 1.06
reachReadTimeout_cacheEntryFound_fallBackToCacheEntry 1.068

RestClientErrorIntegrationTest

handle500Error 0.121
handle400ErrorWithBodyResult 0.091

RestClientExternalIntegrationTest

createAClientExternalAndUsesIt 0.055

RestClientCacheIntegrationTest

cacheEntryHasNoValue_expectPutNewResponseToCache 0.086
validateRestCacheConfiguration 0.046
cacheEntryIsExpired_expectPutNewResponseToCache 0.069
cacheEntryHasValue_restoreFromCacheEntry 0.046

RestClientOpenApiIntegrationTest

validateRestCallDefinition 0.087
restCallsArePresent 0.103
addNewPet 0.581
getPetById 0.129
validateRestDefinition 0.053

RestClientAuthenticationTest

getDataWithBearerTokenWithoutExpiry 6.794
getDataWithWrongBasicAuthentication 0.123
getDataWithBearerAuthenticationViaGetAutoRenewFixedDateToken 4.185
getDataWithBasicAuthentication 0.091
failWithWrongBasicCredential 0.083
getDataWithBearerAuthentication 0.083
getDataWithBearerAuthenticationAutoRenewFixedDateToken 4.112
getDataWithBearerAuthenticationAutoRenewToken 4.139
getDataWithBearerAuthenticationAutoRenewFixedLongToken 4.204

RestClientDisabledIntegrationTest

disabledClientsAreNotRegistered 0.051
invokeWhenClientIsDisabled 0.048

RestClientRegistryTest

registerAndUnregister 0
getAllClientNames 0
registerClientEndpointSuccessfully 0

RestClientRedirectIntegrationTest

handleRedirectGetAll 0.082
handleRedirectPost 0.073
handleBasicRedirect 0.053

RestClientOpenApiMissingOperationIdIntegrationTest

restCallsArePresent 0.051
validateRestDefinition 0.061

RestTemplatingFunctionsIntegrationTest

getFullArticleByIdInvokedWithParameter 0.06
createArticleInvokedWithPartialDefaultParameters 0.067
asMap_convertJsonNodeToMap 0.063
asMap_nullArgument_expectNPE 0.04
createArticleInvokedWithCustomParameters 0.056
createArticleInvokedWithDefaultParameters 0.054
asList_nullArgument_expectNPE 0.065
asList_convertJsonNodeToList 0.055
getArticleByIdInvokedWithParameter 0.051
getFullArticleByIdInvokedWithoutParameter 0.04

Failure Details

[Summary] [Package List] [Test Cases]


info.magnolia.rest.client.integration.RestClientMutationTest
skipped: Created https://jira.magnolia-cms.com/browse/DEV-1468