Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration tests: Identity v3 test cases #506

Merged
merged 24 commits into from
Jul 13, 2021

Conversation

aboedo
Copy link
Member

@aboedo aboedo commented May 17, 2021

Adds some test cases from Identity v3 to our StoreKitTest Integration tests.

I'm still fixing some flakiness in CI, but tests pass locally.

@aboedo aboedo self-assigned this May 17, 2021
@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch from 61c0671 to be41eb2 Compare May 27, 2021 20:32
@aboedo aboedo force-pushed the feature/identityV3_public_facing_changes branch from be41eb2 to 8370c47 Compare June 4, 2021 14:44
@aboedo aboedo force-pushed the feature/identity_v3_storekit_tests branch from 98688d6 to e29364f Compare June 4, 2021 14:45
StoreKitTests/StoreKitTests.swift Show resolved Hide resolved
StoreKitTests/StoreKitTests.swift Outdated Show resolved Hide resolved
@aboedo aboedo marked this pull request as ready for review June 4, 2021 20:58
@aboedo
Copy link
Member Author

aboedo commented Jun 4, 2021

next steps would be:

  • even more identity v3 tests
  • check intro trial eligibility tests

@aboedo aboedo requested a review from a team June 4, 2021 20:59
Copy link
Contributor

@vegaro vegaro left a comment

Choose a reason for hiding this comment

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

This is so great. Is there an issue with publishing the certificate to the repo?

Purchases.xcodeproj/project.pbxproj Outdated Show resolved Hide resolved
StoreKitTests/StoreKitTests.swift Outdated Show resolved Hide resolved
StoreKitTests/StoreKitTests.swift Show resolved Hide resolved
StoreKitTests/StoreKitTests.swift Outdated Show resolved Hide resolved
StoreKitTests/StoreKitTests.swift Outdated Show resolved Hide resolved
Base automatically changed from feature/identityV3_public_facing_changes to main July 13, 2021 17:43
@aboedo aboedo force-pushed the feature/identity_v3_storekit_tests branch from b8984b7 to f0739f6 Compare July 13, 2021 17:57
Comment on lines -269 to +270
def replace_in(previous_text, new_text, path)
if new_text.to_s.strip.empty?
def replace_in(previous_text, new_text, path, allow_empty=false)
if new_text.to_s.strip.empty? and not allow_empty
Copy link
Member Author

Choose a reason for hiding this comment

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

the recent changes in the fastlane broke this, since we were relying on setting to an empty proxy url if one wasn't present.

@aboedo
Copy link
Member Author

aboedo commented Jul 13, 2021

I removed the cert as well, since it's not needed once it's been added to the backend

@aboedo aboedo merged commit df3d21b into main Jul 13, 2021
@aboedo aboedo deleted the feature/identity_v3_storekit_tests branch July 13, 2021 19:34
@aboedo aboedo mentioned this pull request Jul 13, 2021
aboedo added a commit that referenced this pull request Jul 21, 2021
* Create CODE_OF_CONDUCT.md (#589)

Resolves #588

* Update issue templates (#537)

* Update issue templates

Looks like GitHub wants this named differently 🤷‍♂️

* Delete migration_task.md

* Update custom.md

* Update README.md (#636)

Just removing the outdated image on the readme

* ETags support (#509)

* identity v3: public-facing changes (#453)

* re-added the public-facing changes for identity v3

* updated nullability for errors in login

* temporarily removed version from PurchasesCoreSwift in Purchases.podspec

* updated sample app to use identity v3

* improved copy in RCPurchases.h

* Integration tests: Identity v3 test cases (#506)

* added extra test case for storekit tests

* added more test cases

* added a few more test cases

* slight cleanup

* added another, particularly gnarly test case

* updated test case name

* added another test case

* one more test case

* refactors and cleanups, made chained calls more reliable for one test case

* fixed name, added debug information to appUserIDs

* fixed issue with test clearing transactions when it shouldn't

* formatting

* code cleanup

* update call to replace api key and proxy url to catch issues if proxy url is empty

* updated syntax since lanes are executed in a block

* updated xcode and simulator versions for storekitTests

* updated syntax for setting log levels

* fixed fastlane changes that broke replace_in for storekit_tests

* update fastlane

* improvements from PR comments

* restricted storekit_tests to release tags and branches

* removed signing for storekittest app since it only runs in simulator

* removed storekitTestCertificate.cer since it's not needed, re-added tests just in case

* restricted storekit_tests to release branches and tags again now that they passed

* Bump addressable in /IntegrationTests/CocoapodsIntegration (#647)

Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/sporkmonger/addressable/releases)
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](sporkmonger/addressable@addressable-2.7.0...addressable-2.8.0)

---
updated-dependencies:
- dependency-name: addressable
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* remove unused typedef to fix build warning (#649)

* Release: 3.12.0 (#648)

* looks like in some rebase createAlias got un-deprecated, re-deprecated it

* updated changelog and version number to 3.12.0

* added missing PR for identity v3 in changelog

* added install swiflint step to more ci jobs

* fix typo in circleci config.yml

* updated the name of the swiftlint step in xcode so it's more obvious at first glance when it fails

* fixed an issue where a few targets wouldn't compile correctly when doing carthage archive because they were pointing to unreleased versions of Purchases.

* re-added the old carthage script for archives

* added `vendor` folder to excluded directories for swiftlint

* Preparing for next version (#656)

Co-authored-by: Andy Boedo <andresboedo@gmail.com>

* added swiftlint installation to all places that were missing it (#657)

* Release: 3.12.1 (#659)

* renamed eTagInResponse -> maybeEtagInResponse to resolve conflict in some versions of Xcode

* updated version number to 3.12.1 and changelog

* added `scan_derived_data` to excluded directories for swiftlint

* Preparing for next version (#661)

Co-authored-by: Distiller <distiller@static.38.39.178.68.cyberlynk.net>

* Fix: Calling `setDebugLogsEnabled(false)` enables debug logs when it should not (#663)

* fixed a bug where setting debugLogsEnabled = false would still set them to true

* cleanup: replaced if / else with ternary operator

* reverted changes in SystemInfo initialization

* format fixes

* removed rchttpRequest

* updated call in `buildTvWatchAndMacOS`: install-gems -> install-dependencies

* undo accidental whitespace

* deleted empty RCSystemInfo.m file

Co-authored-by: Joshua Liebowitz <taquitos@users.noreply.github.com>
Co-authored-by: Corey Rabazinski <6013553+CoreyRab@users.noreply.github.com>
Co-authored-by: Cesar de la Vega <cesarvegaro@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: revenuecat-ops <60164957+revenuecat-ops@users.noreply.github.com>
Co-authored-by: Distiller <distiller@static.38.39.178.68.cyberlynk.net>
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