| Test Name | automatic-payments_api_sweeping-accounts-invalid-cnpj_test-module_v1 |
|---|---|
| Variant | client_auth_type=private_key_jwt, fapi_auth_request_method=pushed, fapi_profile=openbanking_brazil, fapi_response_mode=plain_response |
| Test ID | lx1U3ljPlhWAAXr https://web.conformance.directory.openbankingbrasil.org.br/log-detail.html?public=true&log=lx1U3ljPlhWAAXr |
| Created | 2024-07-15T20:06:46.217989367Z |
| Description | Swap Testes Funcionais |
| Test Version | 5.1.17 build: a089272a02fb4883b149202b506c0383228aa602 |
| Test Owner | tallys@contaswap.com https://auth.sandbox.directory.openbankingbrasil.org.br |
| Plan ID | 8XNrTiQ41UHcA https://web.conformance.directory.openbankingbrasil.org.br/plan-detail.html?public=true&plan=8XNrTiQ41UHcA |
| Exported From | https://web.conformance.directory.openbankingbrasil.org.br |
| Exported By | tallys@contaswap.com https://auth.sandbox.directory.openbankingbrasil.org.br |
| Suite Version | 5.1.17 build: f53b57fdae6fb87c5ac1bd5d1ab50d9093435f60 |
| Exported | 2025-02-27 02:11:42 (UTC) |
| Status: FINISHED Result: PASSED |
| SUCCESS 70 FAILURE 0 WARNING 0 REVIEW 0 INFO 1 |
| 2024-07-15 20:06:46 |
INFO
|
TEST-RUNNER
Test instance lx1U3ljPlhWAAXr created
|
||||||||||||||
|
||||||||||||||||
| 2024-07-15 20:06:46 |
SUCCESS
|
CreateRedirectUri
Created redirect URI
|
||
|
||||
| 2024-07-15 20:06:46 |
|
GetDynamicServerConfiguration
HTTP request
|
||||||||
|
||||||||||
| 2024-07-15 20:06:46 |
RESPONSE
|
GetDynamicServerConfiguration
HTTP response
|
||||||||
|
||||||||||
| 2024-07-15 20:06:46 |
SUCCESS
|
GetDynamicServerConfiguration
Successfully parsed server configuration
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2024-07-15 20:06:46 | SUCCESS |
AddMTLSEndpointAliasesToEnvironment
Added mtls_endpoint_aliases to environment
|
|
|
||
| 2024-07-15 20:06:46 |
SUCCESS
|
CheckServerConfiguration
Found required server configuration keys
|
||
|
||||
| 2024-07-15 20:06:46 |
|
FetchServerKeys
Fetching server key
|
||
|
||||
| 2024-07-15 20:06:46 |
|
FetchServerKeys
HTTP request
|
||||||||
|
||||||||||
| 2024-07-15 20:06:46 |
RESPONSE
|
FetchServerKeys
HTTP response
|
||||||||
|
||||||||||
| 2024-07-15 20:06:46 |
|
FetchServerKeys
Found JWK set string
|
||
|
||||
| 2024-07-15 20:06:47 |
SUCCESS
|
FetchServerKeys
Found server JWK set
|
||
|
||||
| 2024-07-15 20:06:47 |
SUCCESS
|
CheckServerKeysIsValid
Server JWKs is valid
|
||
|
||||
| 2024-07-15 20:06:47 | SUCCESS |
ValidateServerJWKs
Valid server JWKs: keys are valid JSON, contain the required fields and are correctly encoded using unpadded base64url
|
|
|
||
| 2024-07-15 20:06:47 | SUCCESS |
CheckForKeyIdInServerJWKs
All keys contain kids
|
|
|
||
| 2024-07-15 20:06:47 | SUCCESS |
EnsureServerJwksDoesNotContainPrivateOrSymmetricKeys
Jwks does not contain any private or symmetric keys
|
|
|
||
| 2024-07-15 20:06:47 | SUCCESS |
FAPIEnsureMinimumServerKeyLength
Validated minimum key lengths for server_jwks
|
||
|
||||
| 2024-07-15 20:06:47 |
SUCCESS
|
GetStaticClientConfiguration
Found a static client object
|
||||||||
|
||||||||||
| 2024-07-15 20:06:47 |
SUCCESS
|
AddOpenIdScope
Added scope of 'payments openid openid' to client's scope
|
||||||||
|
||||||||||
| 2024-07-15 20:06:47 |
|
ValidateMTLSCertificatesHeader
No certificate authority found for MTLS
|
|
|
||
| 2024-07-15 20:06:47 |
SUCCESS
|
ValidateMTLSCertificatesHeader
MTLS certificates header is valid
|
|
|
||
| 2024-07-15 20:06:47 |
|
ExtractMTLSCertificatesFromConfiguration
No certificate authority found for MTLS
|
|
|
||
| 2024-07-15 20:06:47 |
SUCCESS
|
ExtractMTLSCertificatesFromConfiguration
Mutual TLS authentication credentials loaded
|
||||
|
||||||
| 2024-07-15 20:06:47 |
|
Scopes and Permissions Builder
ScopesAndPermissionsBuilder was correctly instantiated
|
|
|
||
| 2024-07-15 20:06:47 |
SUCCESS
|
Scopes and Permissions Builder:
Providing Permissions/Scopes:
|
||||
|
||||||
| 2024-07-15 20:06:47 | SUCCESS |
ValidateClientJWKsPrivatePart
Valid client JWKs: keys are valid JSON, contain the required fields, the private/public exponents match and are correctly encoded using unpadded base64url
|
|
|
||
| 2024-07-15 20:06:47 |
SUCCESS
|
ExtractJWKsFromStaticClientConfiguration
Extracted client JWK
|
||||
|
||||||
| 2024-07-15 20:06:47 | SUCCESS |
CheckForKeyIdInClientJWKs
All keys contain kids
|
|
|
||
| 2024-07-15 20:06:47 | SUCCESS |
CheckDistinctKeyIdValueInClientJWKs
Distinct 'kid' value in all keys of client_jwks
|
||
|
||||
| 2024-07-15 20:06:47 | SUCCESS |
FAPIBrazilCheckKeyAlgInClientJWKs
Keys in client JWKS all have permitted 'alg'
|
||
|
||||
| 2024-07-15 20:06:47 | SUCCESS |
FAPIEnsureMinimumClientKeyLength
Validated minimum key lengths for client_jwks
|
||
|
||||
| 2024-07-15 20:06:47 |
SUCCESS
|
ValidateMTLSCertificatesAsX509
Mutual TLS authentication cert validated as X.509
|
|
|
||
| 2024-07-15 20:06:47 |
SUCCESS
|
AddRecurringPaymentResourceUrlToConfig
resourceUrl was added to the config
|
||
|
||||
| 2024-07-15 20:06:47 |
SUCCESS
|
CreateSweepingRecurringConfigurationObjectWithOnlyAmount
The recurringConfiguration object has been created
|
||
|
||||
| 2024-07-15 20:06:47 |
SUCCESS
|
AddRecurringPaymentConsentRequestBodyToConfig
Consent request body was added to the config
|
||
|
||||
| 2024-07-15 20:06:47 |
SUCCESS
|
GetResourceEndpointConfiguration
Found a resource endpoint object
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
| 2024-07-15 20:06:47 |
SUCCESS
|
SetProtectedResourceUrlToSingleResourceEndpoint
Set protected resource URL
|
||
|
||||
| 2024-07-15 20:06:47 |
SUCCESS
|
ExtractTLSTestValuesFromResourceConfiguration
Extracted TLS information from resource endpoint
|
||
|
||||
| 2024-07-15 20:06:47 |
SUCCESS
|
ExtractTLSTestValuesFromOBResourceConfiguration
Extracted TLS information from resource endpoint
|
||||
|
||||||
| 2024-07-15 20:06:47 |
SUCCESS
|
EnsureBusinessEntityIdentificationIsPresent
Business Entity CNPJ field is filled. The test will continue its execution
|
||
|
||||
| 2024-07-15 20:06:47 |
SUCCESS
|
AddAutomaticPaymentToTheResource
Hardcoded brazilPixPayment object was added to the resource
|
||
|
||||
| 2024-07-15 20:06:47 |
SUCCESS
|
SetAutomaticPaymentAmountTo300
The amount for the next automatic payment has been set
|
||
|
||||
| 2024-07-15 20:06:47 |
SUCCESS
|
PrepareToPostConsentRequest
Call to consent API will be an HTTP POST
|
|
|
||
| 2024-07-15 20:06:47 |
SUCCESS
|
SetProtectedResourceUrlToRecurringPaymentsEndpoint
Endpoint added
|
||
|
||||
| 2024-07-15 20:06:47 |
SUCCESS
|
SaveConsentsBody
Consents request body has been saved
|
|
|
||
| 2024-07-15 20:06:47 |
|
automatic-payments_api_sweeping-accounts-invalid-cnpj_test-module_v1
Setup Done
|
|
|
||
| POST consents endpoint with sweeping accounts, sending 2 creditors with different CNPJ - Expects 422 PARAMETRO_INVALIDO |
| 2024-07-15 20:06:47 |
SUCCESS
|
LoadConsentsBody
Consents request body has been loaded
|
|
|
||
| 2024-07-15 20:06:47 |
SUCCESS
|
EditRecurringPaymentsConsentBodyToSetSecondCreditorWithInvalidCNPJ
A new creditor with a different CNPJ has been added to the creditors array
|
||
|
||||
| Use client_credentials grant to obtain Brazil consent |
| 2024-07-15 20:06:47 |
SUCCESS
|
CreateTokenEndpointRequestForClientCredentialsGrant
Created token endpoint request
|
||||
|
||||||
| 2024-07-15 20:06:47 |
SUCCESS
|
SetRecurringPaymentsScopeOnTokenEndpointRequest
Set scope parameter to 'recurring-payments'
|
||||
|
||||||
| 2024-07-15 20:06:47 |
SUCCESS
|
CreateClientAuthenticationAssertionClaims
Created client assertion claims
|
||||||||||||
|
||||||||||||||
| 2024-07-15 20:06:47 |
SUCCESS
|
SignClientAuthenticationAssertion
Signed the client assertion
|
||
|
||||
| 2024-07-15 20:06:47 |
|
AddClientAssertionToTokenEndpointRequest
Added client assertion
|
||||||||
|
||||||||||
| 2024-07-15 20:06:47 |
|
CallTokenEndpoint
HTTP request
|
||||||||||
|
||||||||||||
| 2024-07-15 20:06:48 |
RESPONSE
|
CallTokenEndpoint
HTTP response
|
||||||||
|
||||||||||
| 2024-07-15 20:06:48 |
SUCCESS
|
CallTokenEndpoint
Parsed token endpoint response
|
||||||||
|
||||||||||
| 2024-07-15 20:06:48 |
SUCCESS
|
CheckIfTokenEndpointResponseError
No error from token endpoint
|
|
|
||
| 2024-07-15 20:06:48 |
SUCCESS
|
CheckForAccessTokenValue
Found an access token
|
||
|
||||
| 2024-07-15 20:06:48 |
SUCCESS
|
ExtractAccessTokenFromTokenResponse
Extracted the access token
|
||||
|
||||||
| 2024-07-15 20:06:48 | SUCCESS |
ExtractExpiresInFromTokenEndpointResponse
Extracted 'expires_in'
|
||
|
||||
| 2024-07-15 20:06:48 | SUCCESS |
ValidateExpiresIn
expires_in passed all validation checks
|
||
|
||||
| 2024-07-15 20:06:48 |
|
CreateEmptyResourceEndpointRequestHeaders
Created empty headers
|
||
|
||||
| 2024-07-15 20:06:48 |
SUCCESS
|
AddFAPIAuthDateToResourceEndpointRequest
Added x-fapi-auth-date to resource endpoint request headers
|
||
|
||||
| 2024-07-15 20:06:48 |
|
CreateRandomFAPIInteractionId
Created interaction ID
|
||
|
||||
| 2024-07-15 20:06:48 |
SUCCESS
|
AddFAPIInteractionIdToResourceEndpointRequest
Added x-fapi-interaction-id to resource endpoint request headers
|
||
|
||||
| 2024-07-15 20:06:48 |
SUCCESS
|
CreateIdempotencyKey
Created idempotency key
|
||
|
||||
| 2024-07-15 20:06:48 |
SUCCESS
|
AddIdempotencyKeyHeader
Added x-idempotency-key to resource endpoint request headers
|
||
|
||||
| 2024-07-15 20:06:48 |
SUCCESS
|
CreatePaymentConsentRequest
|
||
|
||||
| 2024-07-15 20:06:48 |
SUCCESS
|
FAPIBrazilExtractClientMTLSCertificateSubject
Extracted subject from MTLS certificate
|
||||||||
|
||||||||||
| 2024-07-15 20:06:48 | SUCCESS |
AddAudAsPaymentConsentUriToRequestObject
Added aud to request object claims
|
||
|
||||
| 2024-07-15 20:06:48 |
|
AddIssAsCertificateOuToRequestObject
Added iss value based on TLS certificate organizational unit to request object claims
|
||
|
||||
| 2024-07-15 20:06:48 | SUCCESS |
AddJtiAsUuidToRequestObject
Added jti to request object claims
|
||
|
||||
| 2024-07-15 20:06:48 | SUCCESS |
AddIatToRequestObject
Added iat to request object claims
|
||
|
||||
| 2024-07-15 20:06:48 |
SUCCESS
|
ValidateOrganizationJWKsPrivatePart
Valid organization JWKs: keys are valid JSON, contain the required fields, the private/public exponents match and are correctly encoded using unpadded base64url
|
|
|
||
| 2024-07-15 20:06:48 |
SUCCESS
|
FAPIBrazilSignPaymentConsentRequest
Signed the request
|
||||||||
|
||||||||||
| 2024-07-15 20:06:48 |
|
FAPIBrazilCallPaymentConsentEndpointWithBearerToken
HTTP request
|
||||||||||
|
||||||||||||
| 2024-07-15 20:06:48 |
RESPONSE
|
FAPIBrazilCallPaymentConsentEndpointWithBearerToken
HTTP response
|
||||||||
|
||||||||||
| 2024-07-15 20:06:48 |
SUCCESS
|
FAPIBrazilCallPaymentConsentEndpointWithBearerToken
Payment consent endpoint response
|
||||||||
|
||||||||||
| 2024-07-15 20:06:48 |
SUCCESS
|
EnsureConsentResponseCodeWas422
Correct status obtained
|
||
|
||||
| 2024-07-15 20:06:48 |
|
CreateConsentErrorValidatorV4
Looking up errors on the CreateConsentErrorValidatorV4 API response
|
|
|
||
| 2024-07-15 20:06:48 |
SUCCESS
|
CreateConsentErrorValidatorV4
The errors element is present in the CreateConsentErrorValidatorV4 API response
|
|
|
||
| 2024-07-15 20:06:48 |
|
CreateConsentErrorValidatorV4
Looking up code on the CreateConsentErrorValidatorV4 API response
|
|
|
||
| 2024-07-15 20:06:48 |
SUCCESS
|
CreateConsentErrorValidatorV4
The code element is present in the CreateConsentErrorValidatorV4 API response
|
|
|
||
| 2024-07-15 20:06:48 |
|
CreateConsentErrorValidatorV4
Looking up code on the CreateConsentErrorValidatorV4 API response
|
|
|
||
| 2024-07-15 20:06:48 |
SUCCESS
|
CreateConsentErrorValidatorV4
The code element is present in the CreateConsentErrorValidatorV4 API response
|
|
|
||
| 2024-07-15 20:06:48 |
|
CreateConsentErrorValidatorV4
Looking up title on the CreateConsentErrorValidatorV4 API response
|
|
|
||
| 2024-07-15 20:06:48 |
SUCCESS
|
CreateConsentErrorValidatorV4
The title element is present in the CreateConsentErrorValidatorV4 API response
|
|
|
||
| 2024-07-15 20:06:48 |
|
CreateConsentErrorValidatorV4
Looking up title on the CreateConsentErrorValidatorV4 API response
|
|
|
||
| 2024-07-15 20:06:48 |
SUCCESS
|
CreateConsentErrorValidatorV4
The title element is present in the CreateConsentErrorValidatorV4 API response
|
|
|
||
| 2024-07-15 20:06:48 |
|
CreateConsentErrorValidatorV4
Looking up detail on the CreateConsentErrorValidatorV4 API response
|
|
|
||
| 2024-07-15 20:06:48 |
SUCCESS
|
CreateConsentErrorValidatorV4
The detail element is present in the CreateConsentErrorValidatorV4 API response
|
|
|
||
| 2024-07-15 20:06:48 |
|
CreateConsentErrorValidatorV4
Looking up detail on the CreateConsentErrorValidatorV4 API response
|
|
|
||
| 2024-07-15 20:06:48 |
SUCCESS
|
CreateConsentErrorValidatorV4
The detail element is present in the CreateConsentErrorValidatorV4 API response
|
|
|
||
| 2024-07-15 20:06:48 |
|
EnsureErrorResponseCodeFieldWasParametroInvalido
Looking up errors on the EnsureErrorResponseCodeFieldWasParametroInvalido API response
|
|
|
||
| 2024-07-15 20:06:48 |
SUCCESS
|
EnsureErrorResponseCodeFieldWasParametroInvalido
The errors element is present in the EnsureErrorResponseCodeFieldWasParametroInvalido API response
|
|
|
||
| 2024-07-15 20:06:48 |
|
EnsureErrorResponseCodeFieldWasParametroInvalido
Looking up code on the EnsureErrorResponseCodeFieldWasParametroInvalido API response
|
|
|
||
| 2024-07-15 20:06:48 |
SUCCESS
|
EnsureErrorResponseCodeFieldWasParametroInvalido
The code element is present in the EnsureErrorResponseCodeFieldWasParametroInvalido API response
|
|
|
||
| 2024-07-15 20:06:48 |
SUCCESS
|
EnsureErrorResponseCodeFieldWasParametroInvalido
Found error with the expected code
|
||||
|
||||||
| 2024-07-15 20:06:48 |
FINISHED
|
automatic-payments_api_sweeping-accounts-invalid-cnpj_test-module_v1
Test has run to completion
|
||
|
||||
| 2024-07-15 20:06:56 |
|
TEST-RUNNER
Alias has now been claimed by another test
|
||||
|
||||||