coolify/tests/Feature
Andras Bacsai 566744b2e0 fix(stripe): add error handling and resilience to subscription operations
- Record refunds immediately before cancellation to prevent retry issues if cancel fails
- Wrap Stripe API calls in try-catch for refunds and quantity reverts with internal notifications
- Add null check in Team.subscriptionEnded() to prevent NPE when subscription doesn't exist
- Fix control flow bug in StripeProcessJob (add missing break statement)
- Cap dynamic server limit with MAX_SERVER_LIMIT in subscription updates
- Add comprehensive tests for refund failures, event handling, and null safety
2026-03-18 15:21:59 +01:00
..
Proxy
Service
Subscription fix(stripe): add error handling and resilience to subscription operations 2026-03-18 15:21:59 +01:00
ApiTokenPermissionTest.php fix(api): require write permission for validation endpoints 2026-03-10 22:11:52 +01:00
ApplicationBuildpackCleanupTest.php
ApplicationHealthCheckApiTest.php feat(healthchecks): add command health checks with input validation 2026-02-25 11:38:09 +01:00
ApplicationRollbackTest.php feat(git-import): support custom ssh command for fetch, submodule, and lfs 2026-03-12 13:32:43 +01:00
ApplicationSourceLocalhostKeyTest.php fix(application-source): support localhost key with id=0 2026-03-09 17:20:33 +01:00
BuildpackSwitchCleanupTest.php
CaCertificateCommandInjectionTest.php chore: prepare for PR 2026-02-25 12:00:24 +01:00
CheckTraefikVersionJobTest.php
CleanupRedisTest.php
CleanupUnreachableServersTest.php feat(jobs): optimize async job dispatches and enhance Stripe subscription sync 2026-02-28 13:18:44 +01:00
CloudInitScriptTest.php
CloudProviderTokenApiTest.php
CmdHealthCheckValidationTest.php fix(health-checks): sanitize and validate CMD healthcheck commands 2026-02-25 11:28:33 +01:00
CommandInjectionSecurityTest.php Squashed commit from 'qqrq-r9h4-x6wp-authenticated-rce' 2026-03-18 13:53:01 +01:00
ComposePreviewFqdnTest.php feat(compose-preview): populate fqdn from docker_compose_domains 2026-03-13 17:02:05 +01:00
ConvertArraysTest.php
ConvertContainerEnvsToArray.php
ConvertingGitUrlsTest.php
CoolifyTaskRetryTest.php
CrossTeamIdorLogsTest.php Squashed commit from '565g-9j4m-wqmr-cross-team-idor-logs-fix' 2026-03-10 22:11:52 +01:00
DatabaseBackupCreationApiTest.php
DatabaseBackupJobTest.php
DeletesUserSessionsTest.php
DeploymentByUuidApiTest.php fix(api): cast teamId to int in deployment authorization check 2026-03-12 13:25:10 +01:00
DeploymentCancellationApiTest.php
DockerCustomCommandsTest.php chore: prepare for PR 2026-03-01 18:49:40 +01:00
DomainsByServerApiTest.php chore: prepare for PR 2026-02-25 11:52:18 +01:00
EnvironmentVariableCommentTest.php fix: update success message logic to only show when changes are made 2025-12-27 15:24:09 +01:00
EnvironmentVariableMassAssignmentTest.php
EnvironmentVariableSharedSpacingTest.php
EnvironmentVariableUpdateApiTest.php chore: prepare for PR 2026-02-09 14:48:16 +01:00
ExecuteContainerCommandTest.php
GithubAppsListApiTest.php
GithubSourceChangeTest.php
GithubSourceCreateTest.php
HetznerApiTest.php
HetznerServerCreationTest.php
IpAllowlistTest.php chore: prepare for PR 2026-03-03 16:43:29 +01:00
LoginRateLimitIPTest.php
MultilineEnvironmentVariableTest.php chore: prepare for PR 2026-02-23 14:28:28 +01:00
PushServerUpdateJobLastOnlineTest.php chore: prepare for PR 2026-03-10 18:34:37 +01:00
PushServerUpdateJobOptimizationTest.php feat(jobs): optimize async job dispatches and enhance Stripe subscription sync 2026-02-28 13:18:44 +01:00
PushServerUpdateJobTest.php chore: prepare for PR 2026-02-15 13:43:08 +01:00
RealtimeTerminalPackagingTest.php chore: prepare for PR 2026-03-10 20:37:22 +01:00
ResourceOperationsCrossTenantTest.php chore: prepare for PR 2026-02-25 11:18:46 +01:00
ScheduledJobManagerShouldRunNowTest.php fix(jobs): prevent non-due jobs firing on restart and enrich skip logs with resource links 2026-02-28 18:03:29 +01:00
ScheduledJobManagerStaleLockTest.php chore: prepare for PR 2026-02-25 12:07:29 +01:00
ScheduledJobMonitoringTest.php fix(jobs): prevent non-due jobs firing on restart and enrich skip logs with resource links 2026-02-28 18:03:29 +01:00
ScheduledTaskApiTest.php test(factories): add missing model factories for app test suite 2026-03-03 09:50:05 +01:00
SecureCookieAutoDetectionTest.php fix(subscription): harden quantity updates and proxy trust behavior 2026-03-03 12:28:16 +01:00
SentinelTokenValidationTest.php fix(sentinel): add token validation to prevent command injection 2026-03-10 22:19:19 +01:00
SentinelUpdateCheckIndependenceTest.php
ServerIpUniquenessTest.php fix(server): improve IP uniqueness validation with team-specific error messages 2026-02-12 08:10:59 +01:00
ServerLimitCheckJobTest.php fix(server-limit): re-enable force-disabled servers at limit 2026-03-03 17:03:59 +01:00
ServerMetadataTest.php feat(server): auto-fetch server metadata after validation 2026-03-13 17:07:50 +01:00
ServerPatchCheckNotificationTest.php
ServerSettingSentinelRestartTest.php
ServerSettingWasChangedTest.php
ServerStorageCheckIndependenceTest.php
ServiceContainerLabelEscapeApiTest.php feat(service): add container label escape control to services API 2026-03-13 13:32:58 +01:00
ServiceDatabaseTeamTest.php fix(service): resolve team lookup via service relationship 2026-02-23 13:23:12 +01:00
ServiceFqdnUpdatePathTest.php
ServiceMagicVariableOverwriteTest.php test(magic-variables): add feature tests for SERVICE_URL/FQDN variable handling 2026-03-11 17:15:17 +01:00
SharedVariableComposeResolutionTest.php fix(parsers): resolve shared variables in compose environment 2026-03-12 13:23:13 +01:00
SharedVariableDevViewTest.php chore: prepare for PR 2026-03-11 06:36:12 +01:00
StartDatabaseProxyTest.php fix(proxy): add validation and normalization for database proxy timeout 2026-03-10 09:59:19 +01:00
StartupExecutionCleanupTest.php
TeamInvitationEmailNormalizationTest.php
TeamInvitationPrivilegeEscalationTest.php
TeamNotificationCheckTest.php chore: prepare for PR 2026-02-23 13:02:06 +01:00
TeamPolicyTest.php
TerminalAuthIpsRouteTest.php chore: prepare for PR 2026-03-10 20:37:22 +01:00
TrustHostsMiddlewareTest.php fix(subscription): harden quantity updates and proxy trust behavior 2026-03-03 12:28:16 +01:00
TwoFactorChallengeAccessTest.php chore: prepare for PR 2026-02-24 10:17:16 +01:00
Utf8HandlingTest.php