diff --git a/compose.yaml b/compose.yaml index e46d73f..617d7f6 100644 --- a/compose.yaml +++ b/compose.yaml @@ -60,7 +60,7 @@ services: REFERRAL_INVITER_CREDITS: ${REFERRAL_INVITER_CREDITS:-1000} REFERRAL_INVITEE_CREDITS: ${REFERRAL_INVITEE_CREDITS:-1000} REFERRAL_BINDING_DAYS: ${REFERRAL_BINDING_DAYS:-7} - STOREKIT_ENABLED: ${STOREKIT_ENABLED:-false} + STOREKIT_ENABLED: ${STOREKIT_ENABLED:-true} STOREKIT_BUNDLE_ID: ${STOREKIT_BUNDLE_ID:-com.osgkeyboard.ios} STOREKIT_APP_APPLE_ID: ${STOREKIT_APP_APPLE_ID:-6781553267} STOREKIT_PRODUCTS: ${STOREKIT_PRODUCTS:-500tks:500,1500tks:1500,3000tks:3000} diff --git a/deploy/smoke/runtime-grants.sql b/deploy/smoke/runtime-grants.sql index cebbf7c..205eb35 100644 --- a/deploy/smoke/runtime-grants.sql +++ b/deploy/smoke/runtime-grants.sql @@ -27,6 +27,7 @@ GRANT SELECT ON osg_account_smoke.admin_operators TO 'osg_smoke_runtime'@'%'; GRANT SELECT ON osg_account_smoke.admin_sessions TO 'osg_smoke_runtime'@'%'; GRANT SELECT ON osg_account_smoke.admin_audit_log TO 'osg_smoke_runtime'@'%'; GRANT SELECT ON osg_account_smoke.admin_credit_grants TO 'osg_smoke_runtime'@'%'; +GRANT SELECT ON osg_account_smoke.storekit_credit_purchases TO 'osg_smoke_runtime'@'%'; GRANT INSERT, UPDATE, DELETE ON osg_account_smoke.accounts TO 'osg_smoke_runtime'@'%'; GRANT INSERT, UPDATE ON osg_account_smoke.apple_credentials TO 'osg_smoke_runtime'@'%'; @@ -54,3 +55,4 @@ GRANT INSERT, UPDATE ON osg_account_smoke.admin_operators TO 'osg_smoke_runtime' GRANT INSERT, UPDATE, DELETE ON osg_account_smoke.admin_sessions TO 'osg_smoke_runtime'@'%'; GRANT INSERT ON osg_account_smoke.admin_audit_log TO 'osg_smoke_runtime'@'%'; GRANT INSERT ON osg_account_smoke.admin_credit_grants TO 'osg_smoke_runtime'@'%'; +GRANT INSERT ON osg_account_smoke.storekit_credit_purchases TO 'osg_smoke_runtime'@'%'; diff --git a/src/test/kotlin/com/osglab/account/config/SmokeDeploymentTest.kt b/src/test/kotlin/com/osglab/account/config/SmokeDeploymentTest.kt index 4d367e0..06ecdf3 100644 --- a/src/test/kotlin/com/osglab/account/config/SmokeDeploymentTest.kt +++ b/src/test/kotlin/com/osglab/account/config/SmokeDeploymentTest.kt @@ -51,7 +51,7 @@ class SmokeDeploymentTest : FunSpec({ test("runtime grants cover every migrated table without mutable history privileges") { val grants = root.read("deploy/smoke/runtime-grants.sql") - val migrationTables = (1..8) + val migrationTables = (1..12) .flatMap { version -> val migration = Files.list(root.resolve("src/main/resources/db/migration")).use { paths -> paths.filter { it.fileName.toString().startsWith("V${version}__") }