Skip to content

Trusted entitlements: Support signing static endpoints#1131

Merged
tonidero merged 8 commits into
mainfrom
bring-back-support-static-signature
Jul 11, 2023
Merged

Trusted entitlements: Support signing static endpoints#1131
tonidero merged 8 commits into
mainfrom
bring-back-support-static-signature

Conversation

@tonidero

Copy link
Copy Markdown
Contributor

Description

This is based on #1119. Looks like the merge commit for that PR was lost in a rebase in the base PR #1117 😬.

This adds support for static endpoint signing. Currently, that would be the offerings and product-entitlement mapping endpoints.

@tonidero tonidero requested a review from a team July 10, 2023 14:45
}

@Test
fun `can perform verified product entitlement mapping backend request`() {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These tests didn't exist in the base PR. I added them here for better coverage.

@tonidero

Copy link
Copy Markdown
Contributor Author

Backend integration tests are failing since the backend isn't returning a signature for static endpoints in the load shedder.

@tonidero tonidero marked this pull request as ready for review July 11, 2023 09:04
@codecov

codecov Bot commented Jul 11, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1131 (381dc27) into main (fc9e67b) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1131      +/-   ##
==========================================
+ Coverage   85.30%   85.34%   +0.03%     
==========================================
  Files         175      175              
  Lines        6099     6112      +13     
  Branches      893      902       +9     
==========================================
+ Hits         5203     5216      +13     
  Misses        554      554              
  Partials      342      342              
Impacted Files Coverage Δ
...com/revenuecat/purchases/strings/NetworkStrings.kt 0.00% <ø> (ø)
...tlin/com/revenuecat/purchases/common/HTTPClient.kt 90.07% <100.00%> (+0.07%) ⬆️
...revenuecat/purchases/common/networking/Endpoint.kt 100.00% <100.00%> (ø)
...at/purchases/common/verification/SigningManager.kt 74.71% <100.00%> (+0.29%) ⬆️

@tonidero tonidero merged commit 373f94b into main Jul 11, 2023
@tonidero tonidero deleted the bring-back-support-static-signature branch July 11, 2023 14:45
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