Skip to content

Fix integration tests in CI#1019

Merged
tonidero merged 4 commits into
mainfrom
fix-integration-tests-in-ci
May 24, 2023
Merged

Fix integration tests in CI#1019
tonidero merged 4 commits into
mainfrom
fix-integration-tests-in-ci

Conversation

@tonidero

Copy link
Copy Markdown
Contributor

Description

After adding the integration tests for offline entitlements in #1006, I was testing running each set of tests separately. However, I was changing the parameters we use to run integration tests between normal integration tests and the offline entitlement tests in order to make them pass. In order to make them compatible, I'm just hardcoding the entitlements we verify are granted after purchases during offline entitlements integration tests.

@tonidero tonidero added the test label May 23, 2023
@tonidero tonidero force-pushed the fix-integration-tests-in-ci branch from bc546a4 to 5ab071f Compare May 23, 2023 10:35
@tonidero tonidero marked this pull request as ready for review May 23, 2023 11:05
@tonidero tonidero requested a review from a team May 23, 2023 11:05
@codecov

codecov Bot commented May 23, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1019 (5fee39e) into main (6f48f28) will not change coverage.
The diff coverage is n/a.

❗ Current head 5fee39e differs from pull request most recent head 93ab276. Consider uploading reports for the commit 93ab276 to get more accurate results

@@           Coverage Diff           @@
##             main    #1019   +/-   ##
=======================================
  Coverage   85.39%   85.39%           
=======================================
  Files         169      169           
  Lines        6006     6006           
  Branches      841      841           
=======================================
  Hits         5129     5129           
  Misses        545      545           
  Partials      332      332           

protected val initialActivePurchases = mapOf(
initialActiveTransaction.purchaseToken.sha1() to initialActiveTransaction
)
private val entitlementsToGrant = listOf("pro_cat", "another_pro_4")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe expectedEntitlements?

@tonidero tonidero enabled auto-merge (squash) May 24, 2023 08:23
@tonidero tonidero merged commit ce99086 into main May 24, 2023
@tonidero tonidero deleted the fix-integration-tests-in-ci branch May 24, 2023 08:39
This was referenced May 24, 2023
tonidero added a commit that referenced this pull request May 25, 2023
**This is an automatic release.**

### New Features
* Support DEFERRED mode (#985) via swehner (@swehner)
* Add completion callback to syncPurchases API (#1002) via Toni Rico
(@tonidero)
### Bugfixes
* Workaround bug in android 4 for JSON objects with List<String> (#942)
via Andy Boedo (@aboedo)
### Dependency Updates
* Bump fastlane-plugin-revenuecat_internal from `fe45299` to `13773d2`
(#1015) via dependabot[bot] (@dependabot[bot])
### Other Changes
* Bump dokka to 1.8.10 to support Gradle 8 (#1009) via Toni Rico
(@tonidero)
* Disable offline entitlements temporarily (#1023) via Toni Rico
(@tonidero)
* Fix integration tests in CI (#1019) via Toni Rico (@tonidero)
* Add offline entitlements integration tests (#1006) via Toni Rico
(@tonidero)
* Disable offline entitlements in observer mode (#1014) via Toni Rico
(@tonidero)
* Extracts setup and teardown to BasePurchasesTest (#1011) via Cesar de
la Vega (@vegaro)
* Support forcing server errors for tests (#1008) via Toni Rico
(@tonidero)

---------

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
Co-authored-by: Toni Rico <antonio.rico.diez@revenuecat.com>
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.

2 participants