Skip to content

chore: Update to API version 2.4 #825

chore: Update to API version 2.4

chore: Update to API version 2.4 #825

Triggered via pull request December 27, 2024 11:02
Status Failure
Total duration 18m 17s
Billable time 48m
Artifacts 4

build-test-upload.yml

on: pull_request
Unit Tests - SDK
7m 10s
Unit Tests - SDK
Unit Tests - Debug App
11m 36s
Unit Tests - Debug App
Matrix: Optional SDK Tests
Build app with SPM Integration
6m 24s
Build app with SPM Integration
Run Critical Path UI Tests
0s
Run Critical Path UI Tests
Build and upload app to Appetize
0s
Build and upload app to Appetize
SonarCloud
0s
SonarCloud
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
Unit Tests - SDK: Tests/Primer/Network/Endpoints/ListCardNetworksEndpointTests.swift#L71
testValidRequestWithErrorResponse, XCTAssertEqual failed: ("Optional("2.4")") is not equal to ("Optional("2.2")")
Unit Tests - SDK: Tests/Primer/Network/Endpoints/ListCardNetworksEndpointTests.swift#L41
testValidRequestWithSuccessResponse, XCTAssertEqual failed: ("Optional("2.4")") is not equal to ("Optional("2.2")")
Unit Tests - SDK: Tests/Primer/Network/Factories/NetworkRequestFactoryTests.swift#L63
testRequestCreation_configuration, XCTAssertEqual failed: ("Optional(["Primer-SDK-Version": "2.33.1", "Primer-SDK-Client": "IOS_NATIVE", "Primer-Client-Token": "bla", "X-Api-Version": "2.4"])") is not equal to ("Optional(["Primer-SDK-Client": "IOS_NATIVE", "Primer-SDK-Version": "2.33.1", "Primer-Client-Token": "bla", "X-Api-Version": "2.3"])")
Unit Tests - SDK: Tests/Primer/Network/Factories/NetworkRequestFactoryTests.swift#L53
testRequestCreation_createPayment, XCTAssertEqual failed: ("Optional(["X-Api-Version": "2.4", "Primer-SDK-Client": "IOS_NATIVE", "Primer-SDK-Version": "2.33.1", "Content-Type": "application/json", "Primer-Client-Token": "bla"])") is not equal to ("Optional(["Primer-SDK-Version": "2.33.1", "Primer-Client-Token": "bla", "Primer-SDK-Client": "IOS_NATIVE", "Content-Type": "application/json", "X-Api-Version": "2.2"])")
Unit Tests - SDK: Tests/Primer/Network/Factories/NetworkRequestFactoryTests.swift#L81
testRequestCreation_listCardNetworks, XCTAssertEqual failed: ("Optional(["Primer-SDK-Version": "2.33.1", "X-Api-Version": "2.4", "Primer-Client-Token": "bla", "Primer-SDK-Client": "IOS_NATIVE"])") is not equal to ("Optional(["Primer-Client-Token": "bla", "Primer-SDK-Client": "IOS_NATIVE", "Primer-SDK-Version": "2.33.1", "X-Api-Version": "2.2"])")
Unit Tests - SDK: Tests/Primer/Network/Factories/NetworkRequestFactoryTests.swift#L72
testRequestCreation_paymentInstruments, XCTAssertEqual failed: ("Optional(["Primer-SDK-Version": "2.33.1", "X-Api-Version": "2.4", "Primer-Client-Token": "bla", "Primer-SDK-Client": "IOS_NATIVE"])") is not equal to ("Optional(["Primer-SDK-Version": "2.33.1", "Primer-SDK-Client": "IOS_NATIVE", "Primer-Client-Token": "bla", "X-Api-Version": "2.2"])")
Unit Tests - SDK: Tests/Primer/Network/Factories/NetworkRequestFactoryTests.swift#L92
testRequestCreation_resumePayment, XCTAssertEqual failed: ("Optional(["Primer-SDK-Version": "2.33.1", "Primer-SDK-Client": "IOS_NATIVE", "X-Api-Version": "2.4", "Content-Type": "application/json", "Primer-Client-Token": "bla"])") is not equal to ("Optional(["X-Api-Version": "2.2", "Primer-SDK-Version": "2.33.1", "Primer-Client-Token": "bla", "Primer-SDK-Client": "IOS_NATIVE", "Content-Type": "application/json"])")
Unit Tests - SDK: Tests/Primer/Network/Factories/NetworkRequestFactoryTests.swift#L126
testRequestCreation_withIdentifier_shouldAddRequestIDHeader, XCTAssertEqual failed: ("Optional(["Primer-SDK-Version": "2.33.1", "X-Api-Version": "2.4", "Primer-Client-Token": "bla", "Content-Type": "application/json", "Primer-SDK-Client": "IOS_NATIVE", "X-Request-ID": "12345-request-id"])") is not equal to ("Optional(["Primer-Client-Token": "bla", "Content-Type": "application/json", "X-Request-ID": "12345-request-id", "Primer-SDK-Client": "IOS_NATIVE", "Primer-SDK-Version": "2.33.1", "X-Api-Version": "2.2"])")
Unit Tests - SDK: Tests/Primer/Network/Factories/NetworkRequestFactoryTests.swift#L138
testRequestCreation_withoutIdentifier_shouldNotAddRequestIDHeader, XCTAssertEqual failed: ("Optional(["Primer-Client-Token": "bla", "Content-Type": "application/json", "Primer-SDK-Client": "IOS_NATIVE", "X-Api-Version": "2.4", "Primer-SDK-Version": "2.33.1"])") is not equal to ("Optional(["Primer-SDK-Client": "IOS_NATIVE", "Primer-SDK-Version": "2.33.1", "Content-Type": "application/json", "X-Api-Version": "2.2", "Primer-Client-Token": "bla"])")
Unit Tests - SDK
Process completed with exit code 1.
Unit Tests - SDK: Sources/PrimerSDK/Classes/Error Handler/ErrorHandler.swift#L19
@discardableResult declared on a function returning Void is unnecessary
Unit Tests - SDK: Sources/PrimerSDK/Classes/PCI/Checkout Components/PrimerRawCardDataRedirectTokenizationBuilder.swift#L85
'primerRawDataManager(_:metadataDidChange:)' is deprecated: Use _:didReceiveCardMetadata:forState: instead
Unit Tests - SDK: Sources/PrimerSDK/Classes/PCI/Checkout Components/PrimerRawCardDataTokenizationBuilder.swift#L60
'primerRawDataManager(_:metadataDidChange:)' is deprecated: Use _:didReceiveCardMetadata:forState: instead
Unit Tests - SDK: Sources/PrimerSDK/Classes/Third Party/PromiseKit/Guarantee.swift#L64
generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
Unit Tests - SDK: Sources/PrimerSDK/Classes/Core/Primer/PrimerDelegate.swift#L98
'primerHeadlessUniveraslCheckoutUIDidDismissPaymentMethod()' is deprecated: use `primerHeadlessUniversalCheckoutUIDidDismissPaymentMethod` instead
Unit Tests - SDK: Sources/PrimerSDK/Classes/User Interface/TokenizationViewModels/ApplePayTokenizationViewModel.swift#L435
'merchantName' is deprecated: Use Client Session API to provide merchant name value: https://primer.io/docs/payment-methods/apple-pay/direct-integration#prepare-the-client-session
Unit Tests - SDK: Sources/PrimerSDK/Classes/Core/PrimerHeadlessUniversalCheckout/Managers/VaultManager.swift#L715
value 'resumeDecisionType' was defined but never used; consider replacing with boolean test
Unit Tests - SDK: Sources/PrimerSDK/Classes/Data Models/ClientSession.swift#L289
'merchantName' is deprecated: Use Client Session API to provide merchant name value: https://primer.io/docs/payment-methods/apple-pay/direct-integration#prepare-the-client-session
Unit Tests - SDK: Sources/PrimerSDK/Classes/Error Handler/ErrorHandler.swift#L19
@discardableResult declared on a function returning Void is unnecessary
Unit Tests - Debug App
No files were found with the provided path: sonar-coverage-.xml. No artifacts will be uploaded.

Artifacts

Produced during runtime
Name Size
coverage-file-3DS
59.6 KB
coverage-file-klarna
67.3 KB
coverage-file-nol-pay
64.6 KB
coverage-file-stripe
69.5 KB