diff --git a/.circleci/default_config.yml b/.circleci/default_config.yml index 47e6e016f8..4b8fde6d3c 100644 --- a/.circleci/default_config.yml +++ b/.circleci/default_config.yml @@ -999,6 +999,40 @@ jobs: - slack-notify-on-fail - github-notify-pr-on-fail + # As of May 2026, StoreKit tests fail to fetch products on iOS simulators when + # building with Xcode 26.4+ (see run-test-ios-26 / build-xcode-265 notes below). + # The same bug does not appear to reproduce on Mac Catalyst, so this job runs the + # full iOS test plan (including StoreKit tests) on the Mac Catalyst variant with + # Xcode 26.5 to confirm this on CI. + run-test-mac-catalyst-xcode-26: + executor: + name: macos-executor + xcode_version: "26.5" + + steps: + - checkout + - install-dependencies + + # === Mac Catalyst tests === + - run: + name: Run Mac Catalyst tests + command: bundle exec fastlane mac test_catalyst + no_output_timeout: 15m + - compress_result_bundle: + directory: fastlane/test_output/xctest/catalyst + bundle_name: RevenueCat + - create-snapshot-pr-if-needed: + condition: << pipeline.parameters.generate_snapshots >> + job: "create_snapshot_pr" + version: "mac-catalyst-26" + - store_test_results: + path: fastlane/test_output + - store_artifacts: + path: fastlane/test_output/xctest + destination: scan-test-output-mac-catalyst + - slack-notify-on-fail + - github-notify-pr-on-fail + # As of May 12, 2026, there is a StoreKit bug that is preventing us from running unit tests # when building with Xcode 26.4+. When built with Xcode 26.4+, tests that fetch products # with StoreKit with a SKConfig file fail to fetch products. Thus, a good chunk of our @@ -2157,6 +2191,7 @@ workflows: - run-test-ios-15-and-14 - run-test-tvos-and-macos - run-test-watchos + - run-test-mac-catalyst-xcode-26 - backend-integration-tests-SK2 # Snapshots from this job are shared with all BackendIntegrationTests @@ -2217,6 +2252,9 @@ workflows: - build-xcode-265: context: - slack-secrets + - run-test-mac-catalyst-xcode-26: + context: + - slack-secrets - pod-lib-lint: context: - slack-secrets @@ -2381,6 +2419,7 @@ workflows: - check-api-changes-revenuecatui - run-test-ios-26 - build-xcode-265 + - run-test-mac-catalyst-xcode-26 - pod-lib-lint - run-revenuecat-ui-ios-26 - emerge_purchases_ui_snapshot_tests @@ -2685,6 +2724,9 @@ workflows: - build-xcode-265: context: - slack-secrets + - run-test-mac-catalyst-xcode-26: + context: + - slack-secrets - pod-lib-lint: context: - slack-secrets @@ -2706,6 +2748,7 @@ workflows: - lint - run-test-ios-26 - build-xcode-265 + - run-test-mac-catalyst-xcode-26 - pod-lib-lint - run-revenuecat-ui-ios-26 - emerge_purchases_ui_snapshot_tests diff --git a/.circleci/generate-requested-jobs-config.js b/.circleci/generate-requested-jobs-config.js index 60c8b284cb..f77b49f9d1 100644 --- a/.circleci/generate-requested-jobs-config.js +++ b/.circleci/generate-requested-jobs-config.js @@ -38,6 +38,7 @@ const JOBS = { "run-test-ios-16": ["slack-secrets"], "run-test-ios-18-and-17": ["slack-secrets"], "run-test-ios-26": ["slack-secrets"], + "run-test-mac-catalyst-xcode-26": ["slack-secrets"], "run-test-tvos-and-macos": ["slack-secrets"], "run-test-watchos": ["slack-secrets"], "spm-receipt-parser": ["slack-secrets"], diff --git a/Tests/StoreKitUnitTests/LocalReceiptParserStoreKitTests.swift b/Tests/StoreKitUnitTests/LocalReceiptParserStoreKitTests.swift index 3316b638e4..03ff2dc282 100644 --- a/Tests/StoreKitUnitTests/LocalReceiptParserStoreKitTests.swift +++ b/Tests/StoreKitUnitTests/LocalReceiptParserStoreKitTests.swift @@ -49,7 +49,7 @@ class LocalReceiptParserStoreKitTests: StoreKitConfigTestCase { let receipt = try self.parser.parse(from: data) expect(receipt.bundleId) == "com.revenuecat.StoreKitUnitTestsHostApp" - #if os(macOS) + #if os(macOS) || targetEnvironment(macCatalyst) expect(receipt.applicationVersion) == SystemInfo.frameworkVersion.replacingOccurrences( of: "-SNAPSHOT", with: "" diff --git a/Tests/StoreKitUnitTests/ProductsManagerTests.swift b/Tests/StoreKitUnitTests/ProductsManagerTests.swift index 29eb6d2fbc..41d7aa5fde 100644 --- a/Tests/StoreKitUnitTests/ProductsManagerTests.swift +++ b/Tests/StoreKitUnitTests/ProductsManagerTests.swift @@ -383,7 +383,10 @@ class SK2ProductsManagerDiagnosticsTrackingTests: ProductsManagerTests { expect(params.storeKitErrorDescription).to(beNil()) } - #if swift(>=5.9) + // `SKTestSession.setSimulatedError(_:forAPI:)` is part of the StoreKitTest Swift overlay, + // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst + // (Apple bug FB22922982). + #if swift(>=5.9) && !targetEnvironment(macCatalyst) @available(iOS 17.0, tvOS 17.0, macOS 14.0, watchOS 10.0, *) func testFetchProductsWithIdentifiersSK2ErrorTracksCorrectly() async throws { try AvailabilityChecks.iOS17APIAvailableOrSkipTest() diff --git a/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift b/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift index 7c322d39c6..730fb48e37 100644 --- a/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift +++ b/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift @@ -171,7 +171,10 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr expect(self.backend.invokedPostReceiptData) == false } - #if swift(>=5.9) + // `SKTestSession.setSimulatedError(_:forAPI:)` is part of the StoreKitTest Swift overlay, + // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst + // (Apple bug FB22922982). + #if swift(>=5.9) && !targetEnvironment(macCatalyst) @available(iOS 17.0, tvOS 17.0, watchOS 10.0, macOS 14.0, *) func testPurchaseSK2CancelledWithSimulatedError() async throws { try AvailabilityChecks.iOS17APIAvailableOrSkipTest() @@ -536,6 +539,15 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr } func testPurchaseFailureClearsPresentedPaywall() async throws { + // `SKTestSession.setSimulatedError(_:forAPI:)` is part of the StoreKitTest Swift overlay, + // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst + // (Apple bug FB22922982). + // This test relies on that fault-injection API, so it's skipped on Catalyst. The method is kept + // defined to satisfy the `PurchasesOrchestratorTests` protocol conformance. + #if targetEnvironment(macCatalyst) + throw XCTSkip("SKTestSession.setSimulatedError(_:forAPI:) is unavailable when compiling for Mac Catalyst " + + "(Apple bug FB22922982)") + #else try AvailabilityChecks.iOS17APIAvailableOrSkipTest() #if compiler(>=5.9) if #available(iOS 17.0, tvOS 17.0, macOS 14.0, watchOS 10.0, *) { @@ -594,6 +606,7 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr expect( self.backend.invokedPostReceiptDataParameters?.transactionData.presentedPaywall ).to(beNil()) + #endif } func testCancelEventClearsPresentedPaywall() async throws { @@ -2501,7 +2514,10 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr } } - #if swift(>=5.9) + // `SKTestSession.setSimulatedError(_:forAPI:)` is part of the StoreKitTest Swift overlay, + // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst + // (Apple bug FB22922982). + #if swift(>=5.9) && !targetEnvironment(macCatalyst) @available(iOS 17.0, tvOS 17.0, macOS 14.0, watchOS 10.0, *) func testPurchaseWithSimulatedErrorTracksError() async throws { try AvailabilityChecks.iOS17APIAvailableOrSkipTest() diff --git a/Tests/StoreKitUnitTests/Support/__Snapshots__/DebugViewSwiftUITests/mac-catalyst-26-testDebugView.1.png b/Tests/StoreKitUnitTests/Support/__Snapshots__/DebugViewSwiftUITests/mac-catalyst-26-testDebugView.1.png new file mode 100644 index 0000000000..3deaf0fe63 Binary files /dev/null and b/Tests/StoreKitUnitTests/Support/__Snapshots__/DebugViewSwiftUITests/mac-catalyst-26-testDebugView.1.png differ diff --git a/Tests/StoreKitUnitTests/Support/__Snapshots__/DebugViewSwiftUITests/mac-catalyst-26-testLoadingState.1.png b/Tests/StoreKitUnitTests/Support/__Snapshots__/DebugViewSwiftUITests/mac-catalyst-26-testLoadingState.1.png new file mode 100644 index 0000000000..b6be25a978 Binary files /dev/null and b/Tests/StoreKitUnitTests/Support/__Snapshots__/DebugViewSwiftUITests/mac-catalyst-26-testLoadingState.1.png differ diff --git a/Tests/UnitTests/Misc/SandboxEnvironmentDetectorTests.swift b/Tests/UnitTests/Misc/SandboxEnvironmentDetectorTests.swift index 3934e82307..9cc33c1c26 100644 --- a/Tests/UnitTests/Misc/SandboxEnvironmentDetectorTests.swift +++ b/Tests/UnitTests/Misc/SandboxEnvironmentDetectorTests.swift @@ -16,7 +16,9 @@ import XCTest @testable import RevenueCat -#if !os(macOS) +// Mac Catalyst detects sandbox the same way as macOS (via the receipt environment, not the +// receipt URL path), so it uses the macOS test branch below. +#if !os(macOS) && !targetEnvironment(macCatalyst) class SandboxEnvironmentDetectorTests: TestCase { @@ -42,7 +44,7 @@ class SandboxEnvironmentDetectorTests: TestCase { #else -// `macOS` sandbox detection does not rely on receipt path +// `macOS` and Mac Catalyst sandbox detection does not rely on receipt path class SandboxEnvironmentDetectorTests: TestCase { func testIsNotSandboxIfReceiptIsProduction() throws { diff --git a/Tests/UnitTests/Misc/__Snapshots__/AnyEncodableTests/mac-catalyst-26-testNestedDictionary.1.json b/Tests/UnitTests/Misc/__Snapshots__/AnyEncodableTests/mac-catalyst-26-testNestedDictionary.1.json new file mode 100644 index 0000000000..f58e2a124e --- /dev/null +++ b/Tests/UnitTests/Misc/__Snapshots__/AnyEncodableTests/mac-catalyst-26-testNestedDictionary.1.json @@ -0,0 +1,18 @@ +{ + "a" : 1, + "b" : { + "b1" : false, + "b2" : { + "b21" : 1, + "b22" : "https:\/\/google.com" + }, + "b3" : [ + 20.2, + 19.99, + 5 + ], + "b4" : 50000 + }, + "c" : "3", + "d" : null +} \ No newline at end of file diff --git a/Tests/UnitTests/Mocks/MockPurchases.swift b/Tests/UnitTests/Mocks/MockPurchases.swift index 990000a771..43c7716a8f 100644 --- a/Tests/UnitTests/Mocks/MockPurchases.swift +++ b/Tests/UnitTests/Mocks/MockPurchases.swift @@ -341,7 +341,7 @@ extension MockPurchases: PurchasesType { self.unimplemented() } - #if os(iOS) || VISION_OS + #if (os(iOS) && !targetEnvironment(macCatalyst)) || VISION_OS func presentCodeRedemptionSheet() { self.unimplemented() diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfig.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfig.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfig.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCachesForSameUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCachesForSameUserID.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCachesForSameUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCallsHTTPMethod.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCallsHTTPMethodWithRandomDelay.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCallsHTTPMethodWithRandomDelay.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCallsHTTPMethodWithRandomDelay.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigFailSendsNil.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigFailSendsNil.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigFailSendsNil.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigPassesLocales.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigPassesLocales.1.json new file mode 100644 index 0000000000..93ab40d14c --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigPassesLocales.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN,es_ES", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigPassesLocalesWithOverride.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigPassesLocalesWithOverride.1.json new file mode 100644 index 0000000000..cbf5b64835 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigPassesLocalesWithOverride.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "fr_FR,en_EN,es_ES", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerConfigDoesntCacheForMultipleUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerConfigDoesntCacheForMultipleUserID.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerConfigDoesntCacheForMultipleUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerConfigDoesntCacheForMultipleUserID.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerConfigDoesntCacheForMultipleUserID.2.json new file mode 100644 index 0000000000..324f243cf1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerConfigDoesntCacheForMultipleUserID.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user_id_2" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testCachesCustomerGetsForSameCustomer.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testCachesCustomerGetsForSameCustomer.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testCachesCustomerGetsForSameCustomer.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testDoesntCacheCustomerGetsForSameCustomer.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testDoesntCacheCustomerGetsForSameCustomer.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testDoesntCacheCustomerGetsForSameCustomer.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testDoesntCacheCustomerGetsForSameCustomer.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testDoesntCacheCustomerGetsForSameCustomer.2.json new file mode 100644 index 0000000000..eb104384ad --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testDoesntCacheCustomerGetsForSameCustomer.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user_id_2" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerCallsBackendProperly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerCallsBackendProperly.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerCallsBackendProperly.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoDoesNotMakeTwoRequests.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoDoesNotMakeTwoRequests.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoDoesNotMakeTwoRequests.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoWithFailedVerification.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoWithFailedVerification.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoWithFailedVerification.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoWithVerifiedResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoWithVerifiedResponse.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoWithVerifiedResponse.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetsCustomerInfo.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetsCustomerInfo.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetsCustomerInfo.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testHandlesGetCustomerInfoErrors.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testHandlesGetCustomerInfoErrors.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testHandlesGetCustomerInfoErrors.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testHandlesInvalidJSON.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testHandlesInvalidJSON.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testHandlesInvalidJSON.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testSendsNonceWhenEnabled.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testSendsNonceWhenEnabled.1.json new file mode 100644 index 0000000000..3fe0da469c --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testSendsNonceWhenEnabled.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Headers-Hash" : "X-Is-Sandbox:sha256:fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Nonce" : "MTIzNDU2Nzg5MGFi", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testUpdatesRequestDateFromResponseHeader.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testUpdatesRequestDateFromResponseHeader.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testUpdatesRequestDateFromResponseHeader.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testEligibilityUnknownIfError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testEligibilityUnknownIfError.1.json new file mode 100644 index 0000000000..7504d505cd --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testEligibilityUnknownIfError.1.json @@ -0,0 +1,37 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "AQI=", + "product_identifiers" : [ + "producta", + "productb", + "productc" + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/intro_eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testEligibilityUnknownIfUnknownError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testEligibilityUnknownIfUnknownError.1.json new file mode 100644 index 0000000000..7504d505cd --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testEligibilityUnknownIfUnknownError.1.json @@ -0,0 +1,37 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "AQI=", + "product_identifiers" : [ + "producta", + "productb", + "productc" + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/intro_eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testPostsProductIdentifiers.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testPostsProductIdentifiers.1.json new file mode 100644 index 0000000000..1f05260c0b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testPostsProductIdentifiers.1.json @@ -0,0 +1,38 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "AQID", + "product_identifiers" : [ + "producta", + "productb", + "productc", + "productd" + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/intro_eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetEntitlementsDoesntCacheForMultipleUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetEntitlementsDoesntCacheForMultipleUserID.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetEntitlementsDoesntCacheForMultipleUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetEntitlementsDoesntCacheForMultipleUserID.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetEntitlementsDoesntCacheForMultipleUserID.2.json new file mode 100644 index 0000000000..4b1d956f0e --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetEntitlementsDoesntCacheForMultipleUserID.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user_id_2/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCachesForSameUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCachesForSameUserID.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCachesForSameUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCallsHTTPMethod.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCallsHTTPMethodWithRandomDelay.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCallsHTTPMethodWithRandomDelay.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCallsHTTPMethodWithRandomDelay.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsFailSendsNil.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsFailSendsNil.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsFailSendsNil.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsOneOffering.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsOneOffering.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsOneOffering.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToFallbackUrl.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToFallbackUrl.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToFallbackUrl.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToFallbackUrlWhenBothFlagsSet.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToFallbackUrlWhenBothFlagsSet.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToFallbackUrlWhenBothFlagsSet.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToLoadShedder.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToLoadShedder.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToLoadShedder.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToMainServer.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToMainServer.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToMainServer.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testCoalescedRequestsLogDebugMessage.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testCoalescedRequestsLogDebugMessage.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testCoalescedRequestsLogDebugMessage.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigCallsHTTPMethod.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigCoalescesSimultaneousRequests.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigCoalescesSimultaneousRequests.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigCoalescesSimultaneousRequests.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigFailSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigFailSendsError.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigFailSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigParsesEmptyResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigParsesEmptyResponse.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigParsesEmptyResponse.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigParsesFullResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigParsesFullResponse.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigParsesFullResponse.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesCorrectPath.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesCorrectPath.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesCorrectPath.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesDefaultJitterableDelayWhenBackgrounded.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesDefaultJitterableDelayWhenBackgrounded.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesDefaultJitterableDelayWhenBackgrounded.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesNoDelayWhenNotBackgrounded.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesNoDelayWhenNotBackgrounded.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesNoDelayWhenNotBackgrounded.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusCallsHTTPMethod.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDedupesConcurrentCallsForSameTransactionID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDedupesConcurrentCallsForSameTransactionID.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDedupesConcurrentCallsForSameTransactionID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDoesNotDedupeAcrossDifferentTransactionIDs.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDoesNotDedupeAcrossDifferentTransactionIDs.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDoesNotDedupeAcrossDifferentTransactionIDs.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDoesNotDedupeAcrossDifferentTransactionIDs.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDoesNotDedupeAcrossDifferentTransactionIDs.2.json new file mode 100644 index 0000000000..d42fdf22d0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDoesNotDedupeAcrossDifferentTransactionIDs.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/ZZZZZZZZ-9999-8888-7777-666655554444" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusFailSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusFailSendsError.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusFailSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusFailed.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusFailed.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusFailed.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusPending.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusPending.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusPending.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusSequentialCallsForSameTransactionIDReissueRequest.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusSequentialCallsForSameTransactionIDReissueRequest.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusSequentialCallsForSameTransactionIDReissueRequest.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusSequentialCallsForSameTransactionIDReissueRequest.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusSequentialCallsForSameTransactionIDReissueRequest.2.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusSequentialCallsForSameTransactionIDReissueRequest.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusUnknownStatusDecodesAsUnknown.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusUnknownStatusDecodesAsUnknown.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusUnknownStatusDecodesAsUnknown.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusVerified.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusVerified.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusVerified.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesCachesForSameUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesCachesForSameUserID.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesCachesForSameUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesCallsHTTPMethod.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesDoesntCacheForMultipleUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesDoesntCacheForMultipleUserID.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesDoesntCacheForMultipleUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesDoesntCacheForMultipleUserID.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesDoesntCacheForMultipleUserID.2.json new file mode 100644 index 0000000000..25a28da98e --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesDoesntCacheForMultipleUserID.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user_id_2/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesFailSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesFailSendsError.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesFailSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesNoCurrencies.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesNoCurrencies.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesNoCurrencies.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesTwoCurrencies.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesTwoCurrencies.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesTwoCurrencies.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesUsesDefaultJitterableDelayWhenAppBackgrounded.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesUsesDefaultJitterableDelayWhenAppBackgrounded.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesUsesDefaultJitterableDelayWhenAppBackgrounded.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesUsesDefaultJitterableDelayWhenAppNotBackgrounded.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesUsesDefaultJitterableDelayWhenAppNotBackgrounded.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesUsesDefaultJitterableDelayWhenAppNotBackgrounded.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCachesForSameUserIDAndProductIds.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCachesForSameUserIDAndProductIds.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCachesForSameUserIDAndProductIds.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCallsHTTPMethod.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCallsHTTPMethodWithNoDelay.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCallsHTTPMethodWithNoDelay.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCallsHTTPMethodWithNoDelay.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForDifferentProductIds.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForDifferentProductIds.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForDifferentProductIds.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForDifferentProductIds.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForDifferentProductIds.2.json new file mode 100644 index 0000000000..46a8bf738f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForDifferentProductIds.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_lifetime" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForMultipleUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForMultipleUserID.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForMultipleUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForMultipleUserID.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForMultipleUserID.2.json new file mode 100644 index 0000000000..0ade6d1a50 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForMultipleUserID.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user_id_2/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsFailSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsFailSendsError.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsFailSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsTwoProducts.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsTwoProducts.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsTwoProducts.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCachesForSameUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCachesForSameUserID.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCachesForSameUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCallsHTTPMethod.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCallsHTTPMethodWithNoDelay.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCallsHTTPMethodWithNoDelay.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCallsHTTPMethodWithNoDelay.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsDoesntCacheForMultipleUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsDoesntCacheForMultipleUserID.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsDoesntCacheForMultipleUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsDoesntCacheForMultipleUserID.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsDoesntCacheForMultipleUserID.2.json new file mode 100644 index 0000000000..7d66ebe0b7 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsDoesntCacheForMultipleUserID.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user_id_2/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsFailSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsFailSendsError.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsFailSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsOneOffering.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsOneOffering.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsOneOffering.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowCachesForSameUserIDAndWorkflowId.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowCachesForSameUserIDAndWorkflowId.1.json new file mode 100644 index 0000000000..8cf7a9812f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowCachesForSameUserIDAndWorkflowId.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows/wf_1" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowInlineUnwrapsData.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowInlineUnwrapsData.1.json new file mode 100644 index 0000000000..8cf7a9812f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowInlineUnwrapsData.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows/wf_1" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowInlineWithEnrolledVariants.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowInlineWithEnrolledVariants.1.json new file mode 100644 index 0000000000..8cf7a9812f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowInlineWithEnrolledVariants.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows/wf_1" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowPropagatesHTTPErrors.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowPropagatesHTTPErrors.1.json new file mode 100644 index 0000000000..9ff45f1bde --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowPropagatesHTTPErrors.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows/wf_missing" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowUseCdnFetchesWorkflowFromCdnUrl.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowUseCdnFetchesWorkflowFromCdnUrl.1.json new file mode 100644 index 0000000000..8cf7a9812f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowUseCdnFetchesWorkflowFromCdnUrl.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows/wf_1" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCachesForSameUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCachesForSameUserID.1.json new file mode 100644 index 0000000000..a8b893d861 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCachesForSameUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCallsHTTPMethod.1.json new file mode 100644 index 0000000000..a8b893d861 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCallsHTTPMethodWithRandomDelayWhenBackgrounded.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCallsHTTPMethodWithRandomDelayWhenBackgrounded.1.json new file mode 100644 index 0000000000..a8b893d861 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCallsHTTPMethodWithRandomDelayWhenBackgrounded.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..a8b893d861 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsReturnsWorkflows.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsReturnsWorkflows.1.json new file mode 100644 index 0000000000..a8b893d861 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsReturnsWorkflows.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsWithTypePassesQueryParameter.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsWithTypePassesQueryParameter.1.json new file mode 100644 index 0000000000..c4ad3967ff --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsWithTypePassesQueryParameter.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows?type=paywall" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestIsNotAuthenticated.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestIsNotAuthenticated.1.json new file mode 100644 index 0000000000..7ce17c8261 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestIsNotAuthenticated.1.json @@ -0,0 +1,29 @@ +{ + "headers" : { + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/health" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestWithFailure.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestWithFailure.1.json new file mode 100644 index 0000000000..7ce17c8261 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestWithFailure.1.json @@ -0,0 +1,29 @@ +{ + "headers" : { + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/health" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestWithSuccess.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestWithSuccess.1.json new file mode 100644 index 0000000000..7ce17c8261 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestWithSuccess.1.json @@ -0,0 +1,29 @@ +{ + "headers" : { + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/health" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json new file mode 100644 index 0000000000..923c068644 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "jws-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/restore/eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityFailSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityFailSendsError.1.json new file mode 100644 index 0000000000..923c068644 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityFailSendsError.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "jws-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/restore/eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..923c068644 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityNetworkErrorSendsError.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "jws-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/restore/eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityReturnsDecodedResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityReturnsDecodedResponse.1.json new file mode 100644 index 0000000000..923c068644 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityReturnsDecodedResponse.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "jws-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/restore/eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilitySendsExpectedRequest.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilitySendsExpectedRequest.1.json new file mode 100644 index 0000000000..923c068644 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilitySendsExpectedRequest.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "jws-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/restore/eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityUsesDefaultJitterableDelayWhenAppBackgrounded.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityUsesDefaultJitterableDelayWhenAppBackgrounded.1.json new file mode 100644 index 0000000000..923c068644 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityUsesDefaultJitterableDelayWhenAppBackgrounded.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "jws-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/restore/eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityUsesNoJitterableDelayWhenAppNotBackgrounded.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityUsesNoJitterableDelayWhenAppNotBackgrounded.1.json new file mode 100644 index 0000000000..923c068644 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityUsesNoJitterableDelayWhenAppNotBackgrounded.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "jws-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/restore/eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCachesForSameUserIDs.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCachesForSameUserIDs.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCachesForSameUserIDs.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsAllCompletionBlocksInCache.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsAllCompletionBlocksInCache.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsAllCompletionBlocksInCache.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithCustomerInfoAndCreatedFalseIf200.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithCustomerInfoAndCreatedFalseIf200.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithCustomerInfoAndCreatedFalseIf200.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithCustomerInfoAndCreatedFalseIf201.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithCustomerInfoAndCreatedFalseIf201.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithCustomerInfoAndCreatedFalseIf201.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithErrorIfCustomerInfoIsEmpty.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithErrorIfCustomerInfoIsEmpty.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithErrorIfCustomerInfoIsEmpty.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentCurrentUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentCurrentUserID.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentCurrentUserID.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentCurrentUserID.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentCurrentUserID.2.json new file mode 100644 index 0000000000..b83ed47ea3 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentCurrentUserID.2.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id 2", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentNewUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentNewUserID.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentNewUserID.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentNewUserID.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentNewUserID.2.json new file mode 100644 index 0000000000..4b81d42c8d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentNewUserID.2.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id 2" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginMakesRightCalls.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginMakesRightCalls.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginMakesRightCalls.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginPassesNetworkErrorIfCouldntCommunicate.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginPassesNetworkErrorIfCouldntCommunicate.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginPassesNetworkErrorIfCouldntCommunicate.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginWithFailedVerification.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginWithFailedVerification.1.json new file mode 100644 index 0000000000..45945a8cbd --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginWithFailedVerification.1.json @@ -0,0 +1,36 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Headers-Hash" : "X-Is-Sandbox:sha256:fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Nonce" : "MTIzNDU2Nzg5MGFi", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Post-Params-Hash" : "app_user_id,new_app_user_id:sha256:6fa58b9e3bdb1ca187ac082d128c19f04da8711fe6b17873a48bc7ca37bbf95a", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "$RCAnonymousID:6b2787de2fb848a8b403a45f695ee74f", + "new_app_user_id" : "F72BF276-CD70-4C27-BCD2-FC1EFD988FA3" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginWithVerifiedResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginWithVerifiedResponse.1.json new file mode 100644 index 0000000000..d1c5ab9866 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginWithVerifiedResponse.1.json @@ -0,0 +1,36 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Headers-Hash" : "X-Is-Sandbox:sha256:fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Nonce" : "MTIzNDU2Nzg5MGFi", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Post-Params-Hash" : "app_user_id,new_app_user_id:sha256:ce001f7b6730af645a00622c062081d2105742d40101bb415176b88a18cfee97", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendOfflineEntitlementsTests/mac-catalyst-26-testGetProductEntitlementMapping.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendOfflineEntitlementsTests/mac-catalyst-26-testGetProductEntitlementMapping.1.json new file mode 100644 index 0000000000..a4a28cdca4 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendOfflineEntitlementsTests/mac-catalyst-26-testGetProductEntitlementMapping.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/product_entitlement_mapping" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendOfflineEntitlementsTests/mac-catalyst-26-testGetProductEntitlementMappingCachesForSameUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendOfflineEntitlementsTests/mac-catalyst-26-testGetProductEntitlementMappingCachesForSameUserID.1.json new file mode 100644 index 0000000000..a4a28cdca4 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendOfflineEntitlementsTests/mac-catalyst-26-testGetProductEntitlementMappingCachesForSameUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/product_entitlement_mapping" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostAdServicesTokenTests/mac-catalyst-26-testPostAdServicesCallsHttpClient.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostAdServicesTokenTests/mac-catalyst-26-testPostAdServicesCallsHttpClient.1.json new file mode 100644 index 0000000000..4bd51e455a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostAdServicesTokenTests/mac-catalyst-26-testPostAdServicesCallsHttpClient.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "aad_attribution_token" : "asdf" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/asdf/adservices_attribution" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostAttributionDataTests/mac-catalyst-26-testPostAttributesPutsDataInDataKey.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostAttributionDataTests/mac-catalyst-26-testPostAttributesPutsDataInDataKey.1.json new file mode 100644 index 0000000000..65ee702d0b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostAttributionDataTests/mac-catalyst-26-testPostAttributesPutsDataInDataKey.1.json @@ -0,0 +1,36 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "data" : { + "a" : "b", + "c" : "d" + }, + "network" : 1 + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/attribution" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketSendsCorrectParameters.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketSendsCorrectParameters.1.json new file mode 100644 index 0000000000..3635b4846a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketSendsCorrectParameters.1.json @@ -0,0 +1,34 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "customer_email" : "test@example.com", + "issue_description" : "Test ticket description" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/customercenter/support/create-ticket" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketUsesCorrectHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketUsesCorrectHTTPMethod.1.json new file mode 100644 index 0000000000..3635b4846a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketUsesCorrectHTTPMethod.1.json @@ -0,0 +1,34 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "customer_email" : "test@example.com", + "issue_description" : "Test ticket description" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/customercenter/support/create-ticket" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithFailedResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithFailedResponse.1.json new file mode 100644 index 0000000000..3635b4846a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithFailedResponse.1.json @@ -0,0 +1,34 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "customer_email" : "test@example.com", + "issue_description" : "Test ticket description" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/customercenter/support/create-ticket" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithNetworkError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithNetworkError.1.json new file mode 100644 index 0000000000..3635b4846a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithNetworkError.1.json @@ -0,0 +1,34 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "customer_email" : "test@example.com", + "issue_description" : "Test ticket description" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/customercenter/support/create-ticket" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithValidData.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithValidData.1.json new file mode 100644 index 0000000000..3635b4846a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithValidData.1.json @@ -0,0 +1,34 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "customer_email" : "test@example.com", + "issue_description" : "Test ticket description" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/customercenter/support/create-ticket" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostDiagnosticsTests/mac-catalyst-26-testPostDiagnosticsEventsWithMultipleEvents.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostDiagnosticsTests/mac-catalyst-26-testPostDiagnosticsEventsWithMultipleEvents.1.json new file mode 100644 index 0000000000..4dceb66442 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostDiagnosticsTests/mac-catalyst-26-testPostDiagnosticsEventsWithMultipleEvents.1.json @@ -0,0 +1,53 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "entries" : [ + { + "app_session_id" : "FD06888D-DEA6-43C5-A36A-A1E06F2D6A42", + "id" : "8FDEAD13-A05B-4236-84CF-36BCDD36A7BC", + "name" : "customer_info_verification_result", + "properties" : { + "verification_result" : "FAILED" + }, + "timestamp" : "2023-09-06T19:42:08Z", + "version" : 1 + }, + { + "app_session_id" : "FD06888D-DEA6-43C5-A36A-A1E06F2D6A42", + "id" : "4FAF3FE9-F239-4CC1-BB07-C3320BA40BCF", + "name" : "customer_info_verification_result", + "properties" : { + "verification_result" : "FAILED" + }, + "timestamp" : "2023-09-06T17:45:21Z", + "version" : 1 + } + ] + }, + "method" : "POST", + "url" : "https://api-diagnostics.revenuecat.com/v1/diagnostics" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostDiagnosticsTests/mac-catalyst-26-testPostDiagnosticsEventsWithOneEvent.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostDiagnosticsTests/mac-catalyst-26-testPostDiagnosticsEventsWithOneEvent.1.json new file mode 100644 index 0000000000..7a6e5e045b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostDiagnosticsTests/mac-catalyst-26-testPostDiagnosticsEventsWithOneEvent.1.json @@ -0,0 +1,43 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "entries" : [ + { + "app_session_id" : "FD06888D-DEA6-43C5-A36A-A1E06F2D6A42", + "id" : "8FDEAD13-A05B-4236-84CF-36BCDD36A7BC", + "name" : "customer_info_verification_result", + "properties" : { + "verification_result" : "FAILED" + }, + "timestamp" : "2023-09-06T19:42:08Z", + "version" : 1 + } + ] + }, + "method" : "POST", + "url" : "https://api-diagnostics.revenuecat.com/v1/diagnostics" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningCorrectly.1.json new file mode 100644 index 0000000000..a8d0293f0b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningCorrectly.1.json @@ -0,0 +1,40 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "fetch_token" : "YW4gYXdlc29tZSBkaXNjb3VudA==", + "generate_offers" : [ + { + "offer_id" : "offerid", + "product_id" : "a_great_product", + "subscription_group" : "sub_group" + } + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/offers" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningEmptyOffersResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningEmptyOffersResponse.1.json new file mode 100644 index 0000000000..a8d0293f0b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningEmptyOffersResponse.1.json @@ -0,0 +1,40 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "fetch_token" : "YW4gYXdlc29tZSBkaXNjb3VudA==", + "generate_offers" : [ + { + "offer_id" : "offerid", + "product_id" : "a_great_product", + "subscription_group" : "sub_group" + } + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/offers" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningNetworkError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningNetworkError.1.json new file mode 100644 index 0000000000..a8d0293f0b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningNetworkError.1.json @@ -0,0 +1,40 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "fetch_token" : "YW4gYXdlc29tZSBkaXNjb3VudA==", + "generate_offers" : [ + { + "offer_id" : "offerid", + "product_id" : "a_great_product", + "subscription_group" : "sub_group" + } + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/offers" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningNoDataAndNoSignatureErrorResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningNoDataAndNoSignatureErrorResponse.1.json new file mode 100644 index 0000000000..a8d0293f0b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningNoDataAndNoSignatureErrorResponse.1.json @@ -0,0 +1,40 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "fetch_token" : "YW4gYXdlc29tZSBkaXNjb3VudA==", + "generate_offers" : [ + { + "offer_id" : "offerid", + "product_id" : "a_great_product", + "subscription_group" : "sub_group" + } + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/offers" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningSignatureErrorResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningSignatureErrorResponse.1.json new file mode 100644 index 0000000000..a8d0293f0b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningSignatureErrorResponse.1.json @@ -0,0 +1,40 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "fetch_token" : "YW4gYXdlc29tZSBkaXNjb3VudA==", + "generate_offers" : [ + { + "offer_id" : "offerid", + "product_id" : "a_great_product", + "subscription_group" : "sub_group" + } + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/offers" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testCachesRequestsForSameReceipt.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testCachesRequestsForSameReceipt.1.json new file mode 100644 index 0000000000..fe0ee8b91f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testCachesRequestsForSameReceipt.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : true, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesNotPostConsentStatus.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesNotPostConsentStatus.1.json new file mode 100644 index 0000000000..e3f542beb1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesNotPostConsentStatus.1.json @@ -0,0 +1,40 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Custom-Entitlements-Computation" : "true", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentCurrency.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentCurrency.1.json new file mode 100644 index 0000000000..8e2befb63b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentCurrency.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentCurrency.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentCurrency.2.json new file mode 100644 index 0000000000..300f227ad3 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentCurrency.2.json @@ -0,0 +1,49 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "USD", + "fetch_token" : "YW4gYXdlc29tZWVyIHJlY2VpcHQ=", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "my_app", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentDiscounts.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentDiscounts.1.json new file mode 100644 index 0000000000..3487d5fe4d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentDiscounts.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentDiscounts.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentDiscounts.2.json new file mode 100644 index 0000000000..1b481aa53a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentDiscounts.2.json @@ -0,0 +1,56 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "UYU", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : false, + "offers" : [ + { + "offer_identifier" : "offerid", + "payment_mode" : 0, + "price" : "12" + } + ], + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOffering.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOffering.1.json new file mode 100644 index 0000000000..8c33c80757 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOffering.1.json @@ -0,0 +1,46 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : false, + "payload_version" : 1, + "presented_offering_identifier" : "offering_a", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : true + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOffering.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOffering.2.json new file mode 100644 index 0000000000..ce3f0b8b5e --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOffering.2.json @@ -0,0 +1,46 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZWVyIHJlY2VpcHQ=", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : false, + "payload_version" : 1, + "presented_offering_identifier" : "offering_b", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : true + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOfferings.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOfferings.1.json new file mode 100644 index 0000000000..d113e12178 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOfferings.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOfferings.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOfferings.2.json new file mode 100644 index 0000000000..db94374b17 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOfferings.2.json @@ -0,0 +1,46 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "presented_offering_identifier" : "offering_a", + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentReceipts.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentReceipts.1.json new file mode 100644 index 0000000000..b239702532 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentReceipts.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : true, + "payload_version" : 1, + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentReceipts.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentReceipts.2.json new file mode 100644 index 0000000000..6ad9664792 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentReceipts.2.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZWVyIHJlY2VpcHQ=", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : true, + "payload_version" : 1, + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentRestore.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentRestore.1.json new file mode 100644 index 0000000000..b1eebd7d5a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentRestore.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentRestore.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentRestore.2.json new file mode 100644 index 0000000000..3487d5fe4d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentRestore.2.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testErrorIsForwardedForCustomerInfoCalls.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testErrorIsForwardedForCustomerInfoCalls.1.json new file mode 100644 index 0000000000..3487d5fe4d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testErrorIsForwardedForCustomerInfoCalls.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testFreeTrialPostsCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testFreeTrialPostsCorrectly.1.json new file mode 100644 index 0000000000..597f175c6c --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testFreeTrialPostsCorrectly.1.json @@ -0,0 +1,50 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "UYU", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "payment_mode" : 2, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsEntitlementsWithFailedVerification.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsEntitlementsWithFailedVerification.1.json new file mode 100644 index 0000000000..3fc49a766c --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsEntitlementsWithFailedVerification.1.json @@ -0,0 +1,48 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Headers-Hash" : "X-Is-Sandbox:sha256:fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Nonce" : "MTIzNDU2Nzg5MGFi", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Post-Params-Hash" : "app_user_id,fetch_token,app_transaction:sha256:be95d3a1d4c00357de2696c1a4546be1d0312dbee67feee8a971f01f8ac4b729", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZWVyIHJlY2VpcHQ=", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsEntitlementsWithVerifiedResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsEntitlementsWithVerifiedResponse.1.json new file mode 100644 index 0000000000..a272f250e9 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsEntitlementsWithVerifiedResponse.1.json @@ -0,0 +1,48 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Headers-Hash" : "X-Is-Sandbox:sha256:fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Nonce" : "MTIzNDU2Nzg5MGFi", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Post-Params-Hash" : "app_user_id,fetch_token,app_transaction:sha256:2cc3741ddb808ae6fd179f1398d9115b58772590765edf799ec778f929faa46d", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsUpdatedSubscriberInfoAfterPost.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsUpdatedSubscriberInfoAfterPost.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsUpdatedSubscriberInfoAfterPost.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsUpdatedSubscriberInfoAfterPost.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsUpdatedSubscriberInfoAfterPost.2.json new file mode 100644 index 0000000000..d113e12178 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsUpdatedSubscriberInfoAfterPost.2.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testIndividualParamsCanBeNil.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testIndividualParamsCanBeNil.1.json new file mode 100644 index 0000000000..fd75f33a65 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testIndividualParamsCanBeNil.1.json @@ -0,0 +1,49 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "UYU", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPayAsYouGoPostsCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPayAsYouGoPostsCorrectly.1.json new file mode 100644 index 0000000000..18e6316b46 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPayAsYouGoPostsCorrectly.1.json @@ -0,0 +1,50 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "UYU", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "payment_mode" : 0, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPayUpFrontPostsCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPayUpFrontPostsCorrectly.1.json new file mode 100644 index 0000000000..9d9edc1437 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPayUpFrontPostsCorrectly.1.json @@ -0,0 +1,50 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "UYU", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "payment_mode" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptCreatesACustomerInfoObject.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptCreatesACustomerInfoObject.1.json new file mode 100644 index 0000000000..b1eebd7d5a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptCreatesACustomerInfoObject.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptForSubscriptionAndServerErrorComputesOfflineUser.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptForSubscriptionAndServerErrorComputesOfflineUser.1.json new file mode 100644 index 0000000000..6222221aa4 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptForSubscriptionAndServerErrorComputesOfflineUser.1.json @@ -0,0 +1,49 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "UYU", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptWithNoProductDataAndServerErrorComputesOfflineUser.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptWithNoProductDataAndServerErrorComputesOfflineUser.1.json new file mode 100644 index 0000000000..b1eebd7d5a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptWithNoProductDataAndServerErrorComputesOfflineUser.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsJWSTokenWithProductDataCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsJWSTokenWithProductDataCorrectly.1.json new file mode 100644 index 0000000000..552b956a7a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsJWSTokenWithProductDataCorrectly.1.json @@ -0,0 +1,49 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "USD", + "fetch_token" : "an awesomer jws token", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "my_app", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataCorrectly.1.json new file mode 100644 index 0000000000..d113e12178 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataCorrectly.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithAppTransactionAndNoReceiptCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithAppTransactionAndNoReceiptCorrectly.1.json new file mode 100644 index 0000000000..e31aa52e60 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithAppTransactionAndNoReceiptCorrectly.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_transaction" : "some_jws_token", + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithAppTransactionCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithAppTransactionCorrectly.1.json new file mode 100644 index 0000000000..85347a85a9 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithAppTransactionCorrectly.1.json @@ -0,0 +1,50 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_transaction" : "some_jws_token", + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "USD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "my_app", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithDiscountInfoCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithDiscountInfoCorrectly.1.json new file mode 100644 index 0000000000..3a422572b6 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithDiscountInfoCorrectly.1.json @@ -0,0 +1,57 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "BFD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : false, + "offers" : [ + { + "offer_identifier" : "offerid", + "payment_mode" : 0, + "price" : "12.1" + } + ], + "payload_version" : 1, + "price" : "15.99", + "product_id" : "a_great_product", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false, + "store_country" : "ESP", + "subscription_group_id" : "sub_group" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedOfferingContext.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedOfferingContext.1.json new file mode 100644 index 0000000000..1cc3014036 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedOfferingContext.1.json @@ -0,0 +1,56 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "applied_targeting_rule" : { + "revision" : 1, + "rule_id" : "abc123" + }, + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "BFD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "presented_offering_identifier" : "a_offering", + "presented_placement_identifier" : "a_placement", + "price" : "10.98", + "product_id" : "a_great_product", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : true, + "store_country" : "ESP", + "subscription_group_id" : "sub_group" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedPaywall.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedPaywall.1.json new file mode 100644 index 0000000000..c043db7e0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedPaywall.1.json @@ -0,0 +1,59 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "BFD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "paywall" : { + "dark_mode" : true, + "display_mode" : "full_screen", + "locale" : "en_US", + "paywall_id" : "test_paywall_id", + "revision" : 5, + "session_id" : "73616D70-6C65-2073-7472-696E67000000" + }, + "presented_offering_identifier" : "a_offering", + "price" : "10.98", + "product_id" : "a_great_product", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : true, + "store_country" : "ESP", + "subscription_group_id" : "sub_group" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedPaywallAndSource.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedPaywallAndSource.1.json new file mode 100644 index 0000000000..c17ffe2f86 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedPaywallAndSource.1.json @@ -0,0 +1,60 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "BFD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "paywall" : { + "dark_mode" : true, + "display_mode" : "full_screen", + "locale" : "en_US", + "paywall_id" : "test_paywall_id", + "revision" : 5, + "session_id" : "73616D70-6C65-2073-7472-696E67000000", + "source" : "customer_center" + }, + "presented_offering_identifier" : "a_offering", + "price" : "10.98", + "product_id" : "a_great_product", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : true, + "store_country" : "ESP", + "subscription_group_id" : "sub_group" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithProductDataCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithProductDataCorrectly.1.json new file mode 100644 index 0000000000..2f7307acd7 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithProductDataCorrectly.1.json @@ -0,0 +1,49 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "USD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "my_app", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithProductRequestDataCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithProductRequestDataCorrectly.1.json new file mode 100644 index 0000000000..04f7f25607 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithProductRequestDataCorrectly.1.json @@ -0,0 +1,51 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "BFD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "presented_offering_identifier" : "a_offering", + "price" : "10.98", + "product_id" : "a_great_product", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : true, + "store_country" : "ESP", + "subscription_group_id" : "sub_group" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithTestReceiptIdentifier.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithTestReceiptIdentifier.1.json new file mode 100644 index 0000000000..657e742175 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithTestReceiptIdentifier.1.json @@ -0,0 +1,50 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "UYU", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "my_app", + "sdk_originated" : false, + "store_country" : "ESP", + "test_receipt_identifier" : "12345678-1234-1234-1234-C2C35AE34D09" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithTransactionIdCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithTransactionIdCorrectly.1.json new file mode 100644 index 0000000000..f324e8af69 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithTransactionIdCorrectly.1.json @@ -0,0 +1,50 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "USD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "my_app", + "sdk_originated" : true, + "store_country" : "ESP", + "transaction_id" : "test_transaction_id_12345" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsSK2XcodeReceiptWithProductDataCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsSK2XcodeReceiptWithProductDataCorrectly.1.json new file mode 100644 index 0000000000..0af5f0124d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsSK2XcodeReceiptWithProductDataCorrectly.1.json @@ -0,0 +1,49 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "USD", + "fetch_token" : "ewogICJidW5kbGVfaWQiIDogIjEyM19idW5kbGVfaWQiLAogICJlbnZpcm9ubWVudCIgOiAieGNvZGUiLAogICJvcmlnaW5hbF9hcHBsaWNhdGlvbl92ZXJzaW9uIiA6ICIxMjNfb3JpZ2luYWxfYXBwbGljYXRpb25fdmVyc2lvbiIsCiAgIm9yaWdpbmFsX3B1cmNoYXNlX2RhdGUiIDogIjE5NzAtMDEtMDFUMDA6MDI6MDNaIiwKICAic3Vic2NyaXB0aW9uX3N0YXR1cyIgOiB7CiAgICAiMTIzX3N1YnNjcmlwdGlvbl9ncm91cF9pZCIgOiBbCiAgICAgIHsKICAgICAgICAicmVuZXdhbF9pbmZvIiA6ICIxMjNfcmVuZXdhbF9pbmZvX2p3c190b2tlbiIsCiAgICAgICAgInN0YXRlIiA6IDEsCiAgICAgICAgInRyYW5zYWN0aW9uIiA6ICIxMjNfdHJhbnNhY3Rpb25fandzX3Rva2VuIgogICAgICB9CiAgICBdCiAgfSwKICAidHJhbnNhY3Rpb25zIiA6IFsKICAgICIxMjNfdHJhbnNhY3Rpb25fandzX3Rva2VuIgogIF0KfQ==", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "my_app", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsCorrectCustomerInfo.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsCorrectCustomerInfo.1.json new file mode 100644 index 0000000000..1bc9f26931 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsCorrectCustomerInfo.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "test-user-id", + "redemption_token" : "test-redemption-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/redeem_purchase" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsExpectedInvalidTokenError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsExpectedInvalidTokenError.1.json new file mode 100644 index 0000000000..1bc9f26931 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsExpectedInvalidTokenError.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "test-user-id", + "redemption_token" : "test-redemption-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/redeem_purchase" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsExpiredTokenError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsExpiredTokenError.1.json new file mode 100644 index 0000000000..1bc9f26931 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsExpiredTokenError.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "test-user-id", + "redemption_token" : "test-redemption-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/redeem_purchase" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsPurchaseBelongsToOtherUserError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsPurchaseBelongsToOtherUserError.1.json new file mode 100644 index 0000000000..1bc9f26931 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsPurchaseBelongsToOtherUserError.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "test-user-id", + "redemption_token" : "test-redemption-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/redeem_purchase" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendSignatureVerificationTests/mac-catalyst-26-testRequestContainsSignatureHeader.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendSignatureVerificationTests/mac-catalyst-26-testRequestContainsSignatureHeader.1.json new file mode 100644 index 0000000000..0a71d1216b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendSignatureVerificationTests/mac-catalyst-26-testRequestContainsSignatureHeader.1.json @@ -0,0 +1,31 @@ +{ + "headers" : { + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Headers-Hash" : "X-Is-Sandbox:sha256:fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Nonce" : "MTIzNDU2Nzg5MGFi", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/health" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendSignatureVerificationTests/mac-catalyst-26-testRequestFailsIfSignatureVerificationFails.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendSignatureVerificationTests/mac-catalyst-26-testRequestFailsIfSignatureVerificationFails.1.json new file mode 100644 index 0000000000..0a71d1216b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendSignatureVerificationTests/mac-catalyst-26-testRequestFailsIfSignatureVerificationFails.1.json @@ -0,0 +1,31 @@ +{ + "headers" : { + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Headers-Hash" : "X-Is-Sandbox:sha256:fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Nonce" : "MTIzNDU2Nzg5MGFi", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/health" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/HTTPClientTests.swift b/Tests/UnitTests/Networking/HTTPClientTests.swift index 9e635c6aa3..2c284951ab 100644 --- a/Tests/UnitTests/Networking/HTTPClientTests.swift +++ b/Tests/UnitTests/Networking/HTTPClientTests.swift @@ -1417,7 +1417,10 @@ final class HTTPClientTests: BaseHTTPClientTests