-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #152 from Power-Components/dev
Dev - 1.5
- Loading branch information
Showing
57 changed files
with
1,290 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
version: '3' | ||
services: | ||
mysql: | ||
container_name: 'mysql_test' | ||
image: 'mysql/mysql-server:8.0' | ||
ports: | ||
- '3307:3306' | ||
command: '--default-authentication-plugin=mysql_native_password' | ||
environment: | ||
MYSQL_ROOT_PASSWORD: 'password' | ||
MYSQL_ROOT_HOST: "%" | ||
MYSQL_DATABASE: 'powergridtest' | ||
MYSQL_USER: 'powergrid' | ||
MYSQL_PASSWORD: 'password' | ||
MYSQL_ALLOW_EMPTY_PASSWORD: 1 | ||
networks: | ||
- sail | ||
healthcheck: | ||
test: [ "CMD", "mysqladmin", "ping", "-ppassword" ] | ||
retries: 3 | ||
timeout: 5s | ||
pgsql: | ||
container_name: 'pgsql_test' | ||
image: 'postgres:13' | ||
ports: | ||
- '5433:5432' | ||
environment: | ||
PGPASSWORD: 'password' | ||
POSTGRES_DB: 'powergridtest' | ||
POSTGRES_USER: 'postgres' | ||
POSTGRES_PASSWORD: 'password' | ||
networks: | ||
- sail | ||
healthcheck: | ||
test: [ "CMD", "pg_isready", "-q", "-d", "powergridtest", "-U", "postgres" ] | ||
retries: 3 | ||
timeout: 5s | ||
sqlsrv: | ||
container_name: 'sqlsrv_test' | ||
image: 'mcr.microsoft.com/mssql/server:2017-latest' | ||
ports: | ||
- '1434:1433' | ||
environment: | ||
ACCEPT_EULA: 'Y' | ||
SA_PASSWORD: 'yourStrong(!)Password' | ||
networks: | ||
- sail | ||
healthcheck: | ||
test: [ "CMD", "/opt/mssql-tools/bin/sqlcmd", "-S", "localhost", "-U", "sa", "-P", "yourStrong(!)Password", "-Q", "select 1" ] | ||
retries: 3 | ||
timeout: 5s | ||
networks: | ||
sail: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true"> | ||
<testsuites> | ||
<testsuite name="Feature"> | ||
<directory suffix="Test.php">./tests/Feature</directory> | ||
</testsuite> | ||
</testsuites> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">./app</directory> | ||
</include> | ||
</coverage> | ||
<php> | ||
<server name="APP_ENV" value="testing"/> | ||
<server name="DB_DRIVER" value="mysql"/> | ||
<server name="DB_HOST" value="127.0.0.1"/> | ||
<server name="DB_PORT" value="3307"/> | ||
<server name="DB_USERNAME" value="root"/> | ||
<server name="DB_PASSWORD" value="password"/> | ||
<server name="DB_DATABASE" value="powergridtest"/> | ||
</php> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
> | ||
<testsuites> | ||
<testsuite name="Feature"> | ||
<directory suffix="Test.php">./tests/Feature</directory> | ||
</testsuite> | ||
</testsuites> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">./app</directory> | ||
</include> | ||
</coverage> | ||
<php> | ||
<server name="APP_ENV" value="testing"/> | ||
<server name="DB_DRIVER" value="pgsql"/> | ||
<server name="DB_HOST" value="127.0.0.1"/> | ||
<server name="DB_PORT" value="5433"/> | ||
<server name="DB_USERNAME" value="postgres"/> | ||
<server name="DB_PASSWORD" value="password"/> | ||
<server name="DB_DATABASE" value="powergridtest"/> | ||
</php> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
> | ||
<testsuites> | ||
<testsuite name="Feature"> | ||
<directory suffix="Test.php">./tests/Feature</directory> | ||
</testsuite> | ||
</testsuites> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">./app</directory> | ||
</include> | ||
</coverage> | ||
<php> | ||
<server name="APP_ENV" value="testing"/> | ||
<server name="DB_DRIVER" value="sqlite"/> | ||
<server name="DB_HOST" value="127.0.0.1"/> | ||
<server name="DB_PORT" value="0"/> | ||
<server name="DB_USERNAME" value=""/> | ||
<server name="DB_PASSWORD" value=""/> | ||
<server name="DB_DATABASE" value=":memory:"/> | ||
</php> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true"> | ||
<testsuites> | ||
<testsuite name="Feature"> | ||
<directory suffix="Test.php">./tests/Feature</directory> | ||
</testsuite> | ||
</testsuites> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">./app</directory> | ||
</include> | ||
</coverage> | ||
<php> | ||
<server name="APP_ENV" value="testing"/> | ||
<server name="DB_DRIVER" value="sqlsrv"/> | ||
<server name="DB_HOST" value="127.0.0.1"/> | ||
<server name="DB_PORT" value="1434"/> | ||
<server name="DB_USERNAME" value="sa"/> | ||
<server name="DB_PASSWORD" value="yourStrong(!)Password"/> | ||
<server name="DB_DATABASE" value="tempdb"/> | ||
</php> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.