Skip to content

Commit c2fdd1b

Browse files
committed
Prevent generating a kernel_secret in the standalone image if it already exists or is defined through an environment variable
1 parent d513359 commit c2fdd1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Docker/Standalone/InitTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public function testKernelSecretGenerated(): void
3939

4040
public function testKernelSecretNotRegeneratedOnRestart(): void
4141
{
42-
$this->filesystem->mkdir(__DIR__ . '/config');
42+
$this->filesystem->mkdir(__DIR__ . '/config/secrets');
43+
$this->filesystem->chmod(__DIR__ . '/config/secrets', 0777);
4344

4445
// Generate kernel secret first
4546
$this->container = (new GenericContainer('dirigent-standalone'))

0 commit comments

Comments
 (0)