Skip to content

PostReceiptDataOperation: add new testReceiptIdentifier parameter#2749

Merged
NachoSoto merged 8 commits into
mainfrom
integration-test-idfv
Jul 5, 2023
Merged

PostReceiptDataOperation: add new testReceiptIdentifier parameter#2749
NachoSoto merged 8 commits into
mainfrom
integration-test-idfv

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

This allows the backend to disambiguate receipts that are coming from different test invocations.

With SKTestSession receipts, the backend has limited information to disambiguate receipts coming from different tests. By adding a new UUID that we can re-generate in each test, we help the backend not mix receipts from separate tests.

Note that the value sent in X-Apple-Device-Identifier is unchanged (and verified with tests) because it's important that this is the real IDFV, since it's used to validate AppleReceipt.sha1Hash.

Depends on https://github.com/RevenueCat/khepri/pull/6183

NachoSoto and others added 7 commits July 5, 2023 10:06
Yesterday this was added, making this test fail.
…2733)

Requested by @NachoSoto for
[integration-test-idfv](https://github.com/RevenueCat/purchases-ios/tree/integration-test-idfv)

Co-authored-by: Distiller <distiller@static.38.23.39.70.cyberlynk.net>
…2734)

Requested by @NachoSoto for
[integration-test-idfv](https://github.com/RevenueCat/purchases-ios/tree/integration-test-idfv)

Co-authored-by: Distiller <distiller@static.38.39.184.32.cyberlynk.net>
…2736)

Requested by @NachoSoto for
[integration-test-idfv](https://github.com/RevenueCat/purchases-ios/tree/integration-test-idfv)

Co-authored-by: Distiller <distiller@static.38.39.184.87.cyberlynk.net>
…2735)

Requested by @NachoSoto for
[integration-test-idfv](https://github.com/RevenueCat/purchases-ios/tree/integration-test-idfv)

Co-authored-by: Distiller <distiller@static.38.39.183.166.cyberlynk.net>
…2737)

Requested by @NachoSoto for
[integration-test-idfv](https://github.com/RevenueCat/purchases-ios/tree/integration-test-idfv)

Co-authored-by: Distiller <distiller@static.38.39.184.105.cyberlynk.net>
@NachoSoto NachoSoto force-pushed the integration-test-idfv branch from 159f1c3 to d703df1 Compare July 5, 2023 17:23
@NachoSoto NachoSoto changed the title PostReceiptDataOperation: add new testReceiptIdentifier parameterintegration test idfv PostReceiptDataOperation: add new testReceiptIdentifier parameter Jul 5, 2023
Base automatically changed from update-load-shedder-snapshot to main July 5, 2023 17:30
@codecov

codecov Bot commented Jul 5, 2023

Copy link
Copy Markdown

Codecov Report

Merging #2749 (2b486f4) into main (e0ffea5) will increase coverage by 0.06%.
The diff coverage is n/a.

❗ Current head 2b486f4 differs from pull request most recent head d703df1. Consider uploading reports for the commit d703df1 to get more accurate results

@@            Coverage Diff             @@
##             main    #2749      +/-   ##
==========================================
+ Coverage   86.41%   86.48%   +0.06%     
==========================================
  Files         214      214              
  Lines       15265    15265              
==========================================
+ Hits        13192    13202      +10     
+ Misses       2073     2063      -10     

see 5 files with indirect coverage changes

@NachoSoto NachoSoto enabled auto-merge (squash) July 5, 2023 17:37
@NachoSoto NachoSoto merged commit 01ca7ae into main Jul 5, 2023
@NachoSoto NachoSoto deleted the integration-test-idfv branch July 5, 2023 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants