coolify/tests/Unit
Andras Bacsai c0dadc003d fix(env): skip escaping for valid JSON in environment variables (#6160)
Prevent double-escaping of COMPOSER_AUTH and other JSON environment variables
by detecting valid JSON objects/arrays in realValue() and skipping quote
escaping entirely. This fixes broken JSON values passed to runtime services
while maintaining proper escaping for non-JSON values.

- Add JSON detection before escaping logic in EnvironmentVariable::realValue()
- JSON objects/arrays pass through unmodified, avoiding quote corruption
- Add comprehensive test coverage for JSON vs non-JSON escaping behavior
2026-01-28 10:59:00 +01:00
..
Actions Fix: Prevent coolify-helper and coolify-realtime images from being pruned 2025-12-11 13:38:52 +01:00
Api
Jobs
Livewire
Notifications/Channels
Parsers
Policies
Project/Database
Rules
AllExcludedContainersConsistencyTest.php
ApplicationComposeEditorLoadTest.php
ApplicationConfigurationChangeTest.php
ApplicationDeploymentCustomBuildCommandTest.php
ApplicationDeploymentEmptyEnvTest.php
ApplicationDeploymentErrorLoggingTest.php
ApplicationDeploymentNixpacksNullEnvTest.php
ApplicationGitSecurityTest.php
ApplicationHealthcheckRemovalTest.php
ApplicationNetworkAliasesSyncTest.php
ApplicationParserStringableTest.php
ApplicationPortDetectionTest.php
ApplicationServiceEnvironmentVariablesTest.php
ApplicationSettingStaticCastTest.php
ApplicationWatchPathsTest.php
BashEnvEscapingTest.php
CheckForUpdatesJobTest.php
CheckTraefikVersionForServerJobTest.php
CheckTraefikVersionJobTest.php
ClickhouseOfficialImageMigrationTest.php fix: prevent metric charts from freezing when navigating with wire:navigate 2026-01-02 12:36:17 +01:00
CloudInitScriptValidationTest.php
ComposerAuthEnvEscapingTest.php fix(env): skip escaping for valid JSON in environment variables (#6160) 2026-01-28 10:59:00 +01:00
ContainerHealthStatusTest.php
ContainerStatusAggregatorTest.php
CoolifyTaskCleanupTest.php
DatabaseBackupSecurityTest.php
DatalistComponentTest.php
DeploymentExceptionTest.php
DockerComposeEmptyStringPreservationTest.php
DockerComposeEmptyTopLevelSectionsTest.php
DockerComposeLabelParsingTest.php
DockerComposeRawContentRemovalTest.php
DockerComposeRawSeparationTest.php
DockerfileArgInsertionTest.php
DockerImageAutoParseTest.php
DockerImageParserTest.php
EnvVarInputComponentTest.php
ExcludeFromHealthCheckTest.php
FileStorageSecurityTest.php
FormatBytesTest.php
FormatContainerStatusTest.php
GetContainersStatusServiceAggregationTest.php
GitLsRemoteParsingTest.php
GlobalSearchNewImageQuickActionTest.php
HetznerDeletionFailedNotificationTest.php
HetznerServiceTest.php feat: add Hetzner Cloud server linking for manually-added servers 2025-12-11 22:14:41 +01:00
HetznerSshKeysTest.php
LocalFileVolumeReadOnlyTest.php fix: Detect read-only Docker volumes with long-form syntax and enable refresh 2025-12-11 14:18:58 +01:00
LogViewerXssSecurityTest.php
MetricsDownsamplingTest.php fix: prevent metric charts from freezing when navigating with wire:navigate 2026-01-02 12:36:17 +01:00
NotifyOutdatedTraefikServersJobTest.php
ParseCommandsByLineForSudoTest.php
ParseDockerVolumeStringTest.php
PathTraversalSecurityTest.php
PostgresqlInitScriptSecurityTest.php
PostgRESTDetectionTest.php
PreSaveValidationTest.php
PreviewDeploymentPortTest.php test: Add comprehensive preview deployment port and path tests 2025-12-17 21:35:54 +01:00
PrivateKeyStorageTest.php
ProxyConfigurationSecurityTest.php
ProxyCustomCommandsTest.php
ProxyHelperTest.php
RestartCountTrackingTest.php
RestoreJobFinishedNullServerTest.php
RestoreJobFinishedSecurityTest.php
RestoreJobFinishedShellEscapingTest.php
S3RestoreSecurityTest.php
S3RestoreTest.php
S3StorageTest.php
SanitizeLogsForExportTest.php Enhance log sanitization with GitHub, GitLab, AWS, and generic URL passwords 2025-12-17 17:59:10 +01:00
ScheduledJobManagerLockTest.php
ScheduledJobsRetryConfigTest.php
ScheduledTaskJobTimeoutTest.php
ServerManagerJobExecutionTimeTest.php
ServerManagerJobSentinelCheckTest.php
ServerQueryScopeTest.php
ServerStatusAccessorTest.php
ServiceApplicationPrerequisitesTest.php
ServiceConfigurationRefreshTest.php
ServiceExcludedStatusTest.php
ServiceNameSecurityTest.php
ServiceParserImageUpdateTest.php
ServiceParserPathDuplicationTest.php
ServiceParserPortDetectionLogicTest.php
ServicePortSpecificVariablesTest.php
ServiceRequiredPortTest.php
SshMultiplexingDisableTest.php
SshRetryMechanismTest.php
StartProxyTest.php
StartupExecutionCleanupTest.php
StopProxyTest.php
StripCoolifyCustomFieldsTest.php
TimescaleDbDetectionTest.php
UpdateComposeAbbreviatedVariablesTest.php
UpdateCoolifyTest.php
ValidateShellSafePathTest.php
ValidGitRepositoryUrlTest.php
ValidHostnameTest.php
ValidProxyConfigFilenameTest.php
VolumeArrayFormatSecurityTest.php
VolumeSecurityTest.php
WindowsPathVolumeTest.php