Skip to content

Commit

Permalink
Normalize DB passwords in tests; fix style in cs-fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Oct 23, 2024
1 parent 55b4253 commit cec6b09
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/cs-fix.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
on:
---

on: # yamllint disable-line rule:truthy
push:
branches:
- '*'
Expand All @@ -10,3 +12,5 @@ jobs:
permissions:
contents: write
uses: spiral/gh-actions/.github/workflows/cs-fix.yml@master

...
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"infection/infection": "^0.26.10",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^9.5",
"spiral/code-style": "~2.2",
"spiral/code-style": "~2.2.0",
"spiral/tokenizer": "^2.14 || ^3.0",
"vimeo/psalm": "^5.18"
},
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/Database/Functional/Driver/Postgres/DriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected function getConnection(): TcpConnectionConfig
host: '127.0.0.1',
port: 15432,
user: 'postgres',
password: 'postgres'
password: 'YourStrong!Passw0rd'
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Database/Functional/Driver/Postgres/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private function getDriver($schema = null, string $defaultSchema = null): Driver
host: '127.0.0.1',
port: 15432,
user: 'postgres',
password: 'postgres'
password: 'YourStrong!Passw0rd'
),
schema: \array_filter([$defaultSchema, ...\array_values((array)$schema)]),
);
Expand Down
12 changes: 6 additions & 6 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
host: '127.0.0.1',
port: 13306,
user: 'root',
password: 'SSpaSS__1',
password: 'YourStrong!Passw0rd',
),
queryCache: true
),
Expand All @@ -34,7 +34,7 @@
host: '127.0.0.1',
port: 15432,
user: 'postgres',
password: 'SSpaSS__1',
password: 'YourStrong!Passw0rd',
),
schema: 'public',
queryCache: true,
Expand All @@ -45,7 +45,7 @@
host: '127.0.0.1',
port: 11433,
user: 'SA',
password: 'SSpaSS__1'
password: 'YourStrong!Passw0rd'
),
queryCache: true
),
Expand All @@ -60,7 +60,7 @@
host: '127.0.0.1',
port: 15432,
user: 'postgres',
password: 'SSpaSS__1',
password: 'YourStrong!Passw0rd',
),
schema: 'public',
driver: Database\Tests\Stub\Driver\PostgresWrapDriver::class,
Expand All @@ -72,7 +72,7 @@
host: '127.0.0.1',
port: 13306,
user: 'root',
password: 'root',
password: 'YourStrong!Passw0rd',
),
driver: Database\Tests\Stub\Driver\MysqlWrapDriver::class,
queryCache: true,
Expand All @@ -83,7 +83,7 @@
host: '127.0.0.1',
port: 11433,
user: 'SA',
password: 'SSpaSS__1'
password: 'YourStrong!Passw0rd'
),
driver: Database\Tests\Stub\Driver\MSSQLWrapDriver::class,
queryCache: true,
Expand Down
6 changes: 3 additions & 3 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
ports:
- "11433:1433"
environment:
SA_PASSWORD: "SSpaSS__1"
SA_PASSWORD: "YourStrong!Passw0rd"
ACCEPT_EULA: "Y"

mysql_latest:
Expand All @@ -17,7 +17,7 @@ services:
- "13306:3306"
environment:
MYSQL_DATABASE: "spiral"
MYSQL_ROOT_PASSWORD: "SSpaSS__1"
MYSQL_ROOT_PASSWORD: "YourStrong!Passw0rd"
MYSQL_ROOT_HOST: "%"

postgres:
Expand All @@ -27,6 +27,6 @@ services:
environment:
POSTGRES_DB: "spiral"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "SSpaSS__1"
POSTGRES_PASSWORD: "YourStrong!Passw0rd"

...

0 comments on commit cec6b09

Please sign in to comment.