diff --git a/.gitignore b/.gitignore index 2e83c9a..ac8d55b 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,6 @@ result-4 # App Store private keys *.p8 -apple-root-ca # macOS Finder .DS_Store diff --git a/apple-root-ca/AppleComputerRootCertificate.cer b/apple-root-ca/AppleComputerRootCertificate.cer new file mode 100644 index 0000000..8ccb85c Binary files /dev/null and b/apple-root-ca/AppleComputerRootCertificate.cer differ diff --git a/apple-root-ca/AppleIncRootCertificate.cer b/apple-root-ca/AppleIncRootCertificate.cer new file mode 100644 index 0000000..8a9ff24 Binary files /dev/null and b/apple-root-ca/AppleIncRootCertificate.cer differ diff --git a/apple-root-ca/AppleRootCA-G2.cer b/apple-root-ca/AppleRootCA-G2.cer new file mode 100644 index 0000000..739b814 Binary files /dev/null and b/apple-root-ca/AppleRootCA-G2.cer differ diff --git a/apple-root-ca/AppleRootCA-G3.cer b/apple-root-ca/AppleRootCA-G3.cer new file mode 100644 index 0000000..228bfa3 Binary files /dev/null and b/apple-root-ca/AppleRootCA-G3.cer differ diff --git a/test/controllers/purple_test_controller.js b/test/controllers/purple_test_controller.js index 45283e8..63a704e 100644 --- a/test/controllers/purple_test_controller.js +++ b/test/controllers/purple_test_controller.js @@ -43,6 +43,13 @@ class PurpleTestController { process.env.DEEPL_KEY = 'deepl_key' process.env.ENABLE_HTTP_AUTH = 'true' // Enable HTTP auth for tests process.env.LN_INVOICE_CHECK_TIMEOUT_MS = '5000' + process.env.ENABLE_IAP_PAYMENTS = "true" + process.env.MOCK_VERIFY_RECEIPT = false + process.env.IAP_ISSUER_ID = "MOCK" + process.env.IAP_KEY_ID = "MOCK" + process.env.IAP_BUNDLE_ID = "com.jb55.damus2" + process.env.IAP_PRIVATE_KEY_PATH = "./test_utils/mock.p8" + process.env.IAP_ENVIRONMENT = "Sandbox" } setup_stubs() { diff --git a/test_utils/mock.p8 b/test_utils/mock.p8 new file mode 100644 index 0000000..e69de29