Repository navigation
test(cli): e2e for init apns against a mock of Apple - #2027
Merged
ArnabChatterjee20k merged 2 commits intoOct 14, 2026
Merged
ArnabChatterjee20k merged 2 commits into
ArnabChatterjee20k merged 2 commits into
Conversation
…PLE_HOST The e2e tests run init apns against a mock of Apple, so the sign-in, App Store Connect and Developer portal hosts can all be set to one base URL. Unset, they stay Apple's servers.
The mock API gains Apple's sign-in, session, team, key and App ID endpoints under /apple, kept per Apple ID. The harness signs in with an Apple ID and password, creates the key and registers the App ID, then reuses the saved sign-in to check the App ID on a rerun, turn on Push Notifications for an existing App ID, and create keys until the team has no free slot.
🟢 Tier S · Ready to mergeAdds an Apple-service mock to the mock API and an end-to-end CLI scenario that exercises Apple sign-in, APNs key creation, App ID registration, saved sessions, and the key limit. The CLI can direct its Apple endpoints to a single alternate base URL through
📂 Walkthrough · 4
Reviewed |
ArnabChatterjee20k
merged commit Oct 14, 2026
27615cd
into
messaging-provider-cli-init-apns-e2e
61 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #2026.
#2026 tests
appwrite init apnsagainst the mock Appwrite API only, and the Apple steps are skipped there. This PR covers them end to end with a mock of Apple.CLI
APPWRITE_APPLE_HOSTvariable points Apple's sign-in, App Store Connect and Developer portal at one base URL. When it's unset, the CLI uses Apple's servers.Mock API (
/apple/..., state kept per Apple ID)E2ETEAM123..p8..nopushalready exists with Push Notifications off.Harness (
CLI_INIT_APNS_APPLE:passed)APPWRITE_APPLE_IDandAPPWRITE_APPLE_PASSWORD, creates the key (saved into the project folder), creates both providers and registers the App ID with Push Notifications.--register-app-idturns on Push Notifications for an existing App ID.Expo and fastlane run Apple's own tools, so they aren't covered here.