Skip to content

[DE-585] Subscription status endpoints tests #77

[DE-585] Subscription status endpoints tests

[DE-585] Subscription status endpoints tests #77

Triggered via pull request November 30, 2023 13:53
Status Failure
Total duration 2m 25s
Billable time 3m
Artifacts

build.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors
SubscriptionStatusControllerRetrySubscriptionTest.shouldRetryFailedSubscription: tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerRetrySubscriptionTest.java#L28
Expecting actual: Subscription [id=308172, state=active, balanceInCents=0, totalRevenueInCents=1000, productPriceInCents=1000, productVersionNumber=1, currentPeriodEndsAt=2023-12-30T08:55:05-05:00, nextAssessmentAt=2023-12-30T08:55:05-05:00, trialStartedAt=null, trialEndedAt=null, activatedAt=2023-11-30T08:55:07-05:00, expiresAt=null, createdAt=2023-11-30T08:55:05-05:00, updatedAt=2023-11-30T08:55:08-05:00, cancellationMessage=null, cancellationMethod=null, cancelAtEndOfPeriod=null, canceledAt=null, currentPeriodStartedAt=2023-11-30T08:55:05-05:00, previousState=active, signupPaymentId=10968707, signupRevenue=10.00, delayedCancelAt=null, couponCode=null, snapDay=null, paymentCollectionMethod=automatic, customer=Customer [firstName=Joe, lastName=Blow, [email protected], ccEmails=null, organization=null, reference=null, id=400148, createdAt=2023-11-30T08:55:02-05:00, updatedAt=2023-11-30T08:55:02-05:00, address=null, address2=null, city=null, state=null, stateName=null, zip=null, country=null, countryName=null, phone=null, verified=false, portalCustomerCreatedAt=null, portalInviteLastSentAt=null, portalInviteLastAcceptedAt=null, taxExempt=false, vatNumber=null, parentId=null, locale=null, defaultSubscriptionGroupUid=null], product=Product [id=29367, name=Initial Sample product-Umrjp, handle=initial-sample-product-9q2ls, description=null, accountingCode=null, requestCreditCard=true, expirationInterval=null, expirationIntervalUnit=null, createdAt=2023-11-30T08:55:02-05:00, updatedAt=2023-11-30T08:55:02-05:00, priceInCents=1000, interval=1, intervalUnit=month, initialChargeInCents=null, trialPriceInCents=null, trialInterval=null, trialIntervalUnit=null, archivedAt=null, requireCreditCard=true, returnParams=null, taxable=false, updateReturnUrl=null, initialChargeAfterTrial=false, versionNumber=1, updateReturnParams=null, productFamily=ProductFamily [id=21776, name=Test Product Family 9q2ls, handle=test-product-family-9q2ls, accountingCode=null, description=null, createdAt=2023-11-30T08:55:02-05:00, updatedAt=2023-11-30T08:55:02-05:00], publicSignupPages=[], productPricePointName=Original, requestBillingAddress=false, requireBillingAddress=false, requireShippingAddress=false, taxCode=null, defaultProductPricePointId=31844, useSiteExchangeRate=true, itemCategory=null, productPricePointId=31844, productPricePointHandle=uuid:fb4caab0-71b5-013c-c711-0286551bb34f], creditCard=PaymentProfile [id=294858, firstName=Joe, lastName=Blow, maskedCardNumber=XXXX-XXXX-XXXX-1, cardType=bogus, expirationMonth=12, expirationYear=2024, customerId=400148, currentVault=bogus, vaultToken=1, billingAddress=null, billingCity=null, billingState=null, billingZip=null, billingCountry=null, customerVaultToken=null, billingAddress2=null, paymentType=credit_card, disabled=false, chargifyToken=null, siteGatewaySettingId=null, gatewayHandle=null], group=null, bankAccount=null, paymentType=credit_card, referralCode=null, nextProductId=null, nextProductHandle=null, couponUseCount=null, couponUsesAllowed=null, reasonCode=null, automaticallyResumeAt=null, couponCodes=[], offerId=null, payerId=null, currentBillingAmountInCents=null, productPricePointId=31844, productPricePointType=null, nextProductPricePointId=null, netTerms=null, storedCredentialTransactionId=null, reference=null, onHoldAt=null, prepaidDunning=false, coupons=null, dunningCommunicationDelayEnabled=false, dunningCommunicationDelayTimeZone=null, receivesInvoiceEmails=null, locale=null, currency=USD, scheduledCancellationAt=null, creditBalanceInCents=0, prepaymentBalanceInCents=0] to be equal to: Subscription [id=308172, state=active, balanceInCents=0, totalRevenueInCents=1000, productPriceInCents=1000, productVersionNumber=1, currentPeriodEndsAt=2023-12-30T08:55:05-05:00, nextAssessmentAt=2023-12-30T08:55:05-05:00, trialStartedAt=null, trialEndedAt=null, activatedAt=2023-11-30T08:55:07-05:00, expiresAt=null, createdAt=2023-11-30T08:55:05-05:00, updatedAt=2023-11-30T08:55:07-05:00, cancellationMessage=null, cancellationMethod=null, cancelAtEndOfPeriod=null, canceledAt=null, currentPeriodStartedAt=2023-11-30T08:55:05-05:00, previousState=active, signupPaymentId=10968707, signupRevenue=10.00, delayedCancelAt=null, couponCode=null, snapDay=null, paymentCollectionMethod=automatic, customer=Customer [firstName=Joe, lastName=Blow, [email protected], ccEmails=null, organization=null, reference=null, id=400148, createdAt=2023-11-30T08:55:02-05:00, updatedAt=2023-11-30T08:55:02-05:00, address=null, address2=null, city=null, state=null, stateName=null, zip=null, country=null, countryName=null, phone=null, verified=false, portalCustomerCreatedAt=null, portalInviteLastSentAt=null, portalInviteLastAcceptedAt=null, taxExempt=false, vatNumber=null, parentId=null, locale=null, defaultSubscriptionGroupUid=null], product=Product [id=29367, name=Initial Sample product-Umrjp, handle=initial-sample-product-9q2ls, description=null, accountingCode=null, requestCreditCard=true, expirationInterval=null, expirationIntervalUnit=null, createdAt=2023-11-30T08:55:02-05:00, updatedAt=2023-11-30T08:55:02-05:00, priceInCents=1000, interval=1, intervalUnit=month, initialChargeInCents=null, trialPriceInCents=null, trialInterval=null, trialIntervalUnit=null, archivedAt=null, requireCreditCard=true, returnParams=null, taxable=false, updateReturnUrl=null, initialChargeAfterTrial=false, versionNumber=1, updateReturnParams=null, productFamily=ProductFamily [id=21776, name=Test Product Family 9q2ls, handle=test-product-family-9q2ls, accountingCode=null, description=null, createdAt=2023-11-30T08:55:02-05:00, updatedAt=2023-11-30T08:55:02-05:00], publicSignupPages=[], productPricePointName=Original, requestBillingAddress=false, requireBillingAddress=false, requireShippingAddress=false, taxCode=null, defaultProductPricePointId=31844, useSiteExchangeRate=true, itemCategory=null, productPricePointId=31844, productPricePointHandle=uuid:fb4caab0-71b5-013c-c711-0286551bb34f], creditCard=PaymentProfile [id=294858, firstName=Joe, lastName=Blow, maskedCardNumber=XXXX-XXXX-XXXX-1, cardType=bogus, expirationMonth=12, expirationYear=2024, customerId=400148, currentVault=bogus, vaultToken=1, billingAddress=null, billingCity=null, billingState=null, billingZip=null, billingCountry=null, customerVaultToken=null, billingAddress2=null, paymentType=credit_card, disabled=false, chargifyToken=null, siteGatewaySettingId=null, gatewayHandle=null], group=null, bankAccount=null, paymentType=credit_card, referralCode=null, nextProductId=null, nextProductHandle=null, couponUseCount=null, couponUsesAllowed=null, reasonCode=null, automaticallyResumeAt=null, couponCodes=[], offerId=null, payerId=null, currentBillingAmountInCents=null, productPricePointId=31844, productPricePointType=default, nextProductPricePointId=null, netTerms=null, storedCredentialTransactionId=null, reference=null, onHoldAt=null, prepaidDunning=null, coupons=null, dunningCommunicationDelayEnabled=false, dunningCommunicationDelayTimeZone=null, receivesInvoiceEmails=null, locale=null, currency=USD, scheduledCancellationAt=null, creditBalanceInCents=0, prepaymentBalanceInCents=0] when recursively comparing field by field, but found the following difference: field/property 'updatedAt' differ: - actual value : 2023-11-30T08:55:08-05:00 (java.time.ZonedDateTime) - expected value: 2023-11-30T08:55:07-05:00 (java.time.ZonedDateTime) The recursive comparison was performed with this configuration: - the following fields were ignored in the comparison: productPricePointType, prepaidDunning - no overridden equals methods were used in the comparison (except for java types) - these types were compared with the following comparators: - java.lang.Double -> DoubleComparator[precision=1.0E-15] - java.lang.Float -> FloatComparator[precision=1.0E-6] - java.nio.file.Path -> lexicographic comparator (Path natural order) - actual and expected objects and their fields were compared field by field recursively even if they were not of the same type, this allows for example to compare a Person to a PersonDto (call strictTypeChecking(true) to change that behavior). - the introspection strategy used was: DefaultRecursiveComparisonIntrospectionStrategy
test
Process completed with exit code 1.