Update Flex endpoint

This commit is contained in:
github-action[bot]
2023-06-19 12:36:59 +00:00
parent b59dcde35a
commit 566036eda1
10 changed files with 488 additions and 25 deletions
@@ -0,0 +1,93 @@
{
"manifests": {
"phpunit/phpunit": {
"manifest": {
"copy-from-recipe": {
".env.test": ".env.test",
"phpunit.xml.dist": "phpunit.xml.dist",
"tests/": "tests/"
},
"gitignore": [
"/phpunit.xml",
".phpunit.result.cache"
]
},
"files": {
".env.test": {
"contents": [
"# define your env variables for the test env here",
"KERNEL_CLASS='App\\Kernel'",
"APP_SECRET='$ecretf0rt3st'",
"SYMFONY_DEPRECATIONS_HELPER=999999",
"PANTHER_APP_ENV=panther",
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
""
],
"executable": false
},
"phpunit.xml.dist": {
"contents": [
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
"",
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
" xsi:noNamespaceSchemaLocation=\"vendor/phpunit/phpunit/phpunit.xsd\"",
" backupGlobals=\"false\"",
" colors=\"true\"",
" bootstrap=\"tests/bootstrap.php\"",
" convertDeprecationsToExceptions=\"false\"",
">",
" <php>",
" <ini name=\"display_errors\" value=\"1\" />",
" <ini name=\"error_reporting\" value=\"-1\" />",
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"9.5\" />",
" </php>",
"",
" <testsuites>",
" <testsuite name=\"Project Test Suite\">",
" <directory>tests</directory>",
" </testsuite>",
" </testsuites>",
"",
" <coverage processUncoveredFiles=\"true\">",
" <include>",
" <directory suffix=\".php\">src</directory>",
" </include>",
" </coverage>",
"",
" <listeners>",
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
" </listeners>",
"",
" <extensions>",
" </extensions>",
"</phpunit>",
""
],
"executable": false
},
"tests/bootstrap.php": {
"contents": [
"<?php",
"",
"use Symfony\\Component\\Dotenv\\Dotenv;",
"",
"require dirname(__DIR__).'/vendor/autoload.php';",
"",
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
" require dirname(__DIR__).'/config/bootstrap.php';",
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
"}",
""
],
"executable": false
}
},
"ref": "7364a21d87e658eb363c5020c072ecfdc12e2326"
}
}
}
@@ -0,0 +1,90 @@
{
"manifests": {
"phpunit/phpunit": {
"manifest": {
"copy-from-recipe": {
".env.test": ".env.test",
"phpunit.xml.dist": "phpunit.xml.dist",
"tests/": "tests/"
},
"gitignore": [
"/phpunit.xml",
".phpunit.result.cache"
]
},
"files": {
".env.test": {
"contents": [
"# define your env variables for the test env here",
"KERNEL_CLASS='App\\Kernel'",
"APP_SECRET='$ecretf0rt3st'",
"SYMFONY_DEPRECATIONS_HELPER=999999",
"PANTHER_APP_ENV=panther",
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
""
],
"executable": false
},
"phpunit.xml.dist": {
"contents": [
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
"",
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
" xsi:noNamespaceSchemaLocation=\"vendor/phpunit/phpunit/phpunit.xsd\"",
" backupGlobals=\"false\"",
" colors=\"true\"",
" bootstrap=\"tests/bootstrap.php\"",
">",
" <php>",
" <ini name=\"display_errors\" value=\"1\" />",
" <ini name=\"error_reporting\" value=\"-1\" />",
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
" </php>",
"",
" <testsuites>",
" <testsuite name=\"Project Test Suite\">",
" <directory>tests</directory>",
" </testsuite>",
" </testsuites>",
"",
" <filter>",
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
" <directory suffix=\".php\">src</directory>",
" </whitelist>",
" </filter>",
"",
" <listeners>",
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
" </listeners>",
"",
" <extensions>",
" </extensions>",
"</phpunit>",
""
],
"executable": false
},
"tests/bootstrap.php": {
"contents": [
"<?php",
"",
"use Symfony\\Component\\Dotenv\\Dotenv;",
"",
"require dirname(__DIR__).'/vendor/autoload.php';",
"",
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
" require dirname(__DIR__).'/config/bootstrap.php';",
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
"}",
""
],
"executable": false
}
},
"ref": "eb4b14aaa06c438b7022c2b19016f5c751f800dc"
}
}
}
@@ -0,0 +1,43 @@
{
"manifests": {
"symfony/panther": {
"manifest": {
"dockerfile": [
"# Chromium and ChromeDriver",
"ENV PANTHER_NO_SANDBOX 1",
"# Not mandatory, but recommended",
"ENV PANTHER_CHROME_ARGUMENTS='--disable-dev-shm-usage'",
"RUN apk add --no-cache chromium chromium-chromedriver",
"",
"# Firefox and geckodriver",
"#ARG GECKODRIVER_VERSION=0.29.0",
"#RUN apk add --no-cache firefox",
"#RUN wget -q https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz; \\",
"#\ttar -zxf geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz -C /usr/bin; \\",
"#\trm geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz"
],
"add-lines": [
{
"file": "phpunit.xml.dist",
"content": " <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
"position": "after_target",
"target": "<extensions>"
}
],
"post-install-output": [
" * Install <fg=green>ChromeDriver</> or <fg=green>geckodriver</> with ",
" the package manager of your Operating System.",
" ",
" Alternatively, use Browser Driver Installer:",
"",
" <fg=green>composer require --dev dbrekelmans/bdi</>",
" <fg=green>vendor/bin/bdi detect drivers</>",
"",
" This step is not necessary when using Docker."
]
},
"files": [],
"ref": "2e163d6c3d10688ce3eac42afe5bf9e1fcb7327e"
}
}
}
@@ -0,0 +1,128 @@
{
"manifests": {
"symfony/phpunit-bridge": {
"manifest": {
"copy-from-recipe": {
".env.test": ".env.test",
"bin/": "%BIN_DIR%/",
"phpunit.xml.dist": "phpunit.xml.dist",
"tests/": "tests/"
},
"gitignore": [
".phpunit.result.cache",
"/phpunit.xml"
],
"post-install-output": [
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
" * Use MakerBundle's <comment>make:test</> command as a shortcut!",
" * <fg=blue>Run</> the tests with <comment>php bin/phpunit</>"
]
},
"files": {
".env.test": {
"contents": [
"# define your env variables for the test env here",
"KERNEL_CLASS='App\\Kernel'",
"APP_SECRET='$ecretf0rt3st'",
"SYMFONY_DEPRECATIONS_HELPER=999999",
"PANTHER_APP_ENV=panther",
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
""
],
"executable": false
},
"bin/phpunit": {
"contents": [
"#!/usr/bin/env php",
"<?php",
"",
"if (!ini_get('date.timezone')) {",
" ini_set('date.timezone', 'UTC');",
"}",
"",
"if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {",
" define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');",
" require PHPUNIT_COMPOSER_INSTALL;",
" PHPUnit\\TextUI\\Command::main();",
"} else {",
" if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
" exit(1);",
" }",
"",
" require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
"}",
""
],
"executable": true
},
"phpunit.xml.dist": {
"contents": [
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
"",
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
" xsi:noNamespaceSchemaLocation=\"vendor/phpunit/phpunit/phpunit.xsd\"",
" backupGlobals=\"false\"",
" colors=\"true\"",
" bootstrap=\"tests/bootstrap.php\"",
" convertDeprecationsToExceptions=\"false\"",
">",
" <php>",
" <ini name=\"display_errors\" value=\"1\" />",
" <ini name=\"error_reporting\" value=\"-1\" />",
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"9.5\" />",
" </php>",
"",
" <testsuites>",
" <testsuite name=\"Project Test Suite\">",
" <directory>tests</directory>",
" </testsuite>",
" </testsuites>",
"",
" <coverage processUncoveredFiles=\"true\">",
" <include>",
" <directory suffix=\".php\">src</directory>",
" </include>",
" </coverage>",
"",
" <listeners>",
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
" </listeners>",
"",
" <extensions>",
" </extensions>",
"</phpunit>",
""
],
"executable": false
},
"tests/bootstrap.php": {
"contents": [
"<?php",
"",
"use Symfony\\Component\\Dotenv\\Dotenv;",
"",
"require dirname(__DIR__).'/vendor/autoload.php';",
"",
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
" require dirname(__DIR__).'/config/bootstrap.php';",
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
"}",
"",
"if ($_SERVER['APP_DEBUG']) {",
" umask(0000);",
"}",
""
],
"executable": false
}
},
"ref": "1552413ad842623d23a33b3ed295e03eaaf0a332"
}
}
}
@@ -0,0 +1,120 @@
{
"manifests": {
"symfony/phpunit-bridge": {
"manifest": {
"copy-from-recipe": {
".env.test": ".env.test",
"bin/": "%BIN_DIR%/",
"phpunit.xml.dist": "phpunit.xml.dist",
"tests/": "tests/"
},
"gitignore": [
".phpunit",
".phpunit.result.cache",
"/phpunit.xml"
],
"post-install-output": [
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
]
},
"files": {
".env.test": {
"contents": [
"# define your env variables for the test env here",
"KERNEL_CLASS='App\\Kernel'",
"APP_SECRET='$ecretf0rt3st'",
"SYMFONY_DEPRECATIONS_HELPER=999999",
"PANTHER_APP_ENV=panther",
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
""
],
"executable": false
},
"bin/phpunit": {
"contents": [
"#!/usr/bin/env php",
"<?php",
"",
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
" exit(1);",
"}",
"",
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
"}",
"",
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
""
],
"executable": true
},
"phpunit.xml.dist": {
"contents": [
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
"",
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
" backupGlobals=\"false\"",
" colors=\"true\"",
" bootstrap=\"tests/bootstrap.php\"",
">",
" <php>",
" <ini name=\"error_reporting\" value=\"-1\" />",
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"8.5\" />",
" </php>",
"",
" <testsuites>",
" <testsuite name=\"Project Test Suite\">",
" <directory>tests</directory>",
" </testsuite>",
" </testsuites>",
"",
" <filter>",
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
" <directory suffix=\".php\">src</directory>",
" </whitelist>",
" </filter>",
"",
" <listeners>",
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
" </listeners>",
"",
" <extensions>",
" </extensions>",
"</phpunit>",
""
],
"executable": false
},
"tests/bootstrap.php": {
"contents": [
"<?php",
"",
"use Symfony\\Component\\Dotenv\\Dotenv;",
"",
"require dirname(__DIR__).'/vendor/autoload.php';",
"",
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
" require dirname(__DIR__).'/config/bootstrap.php';",
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
"}",
"",
"if ($_SERVER['APP_DEBUG']) {",
" umask(0000);",
"}",
""
],
"executable": false
}
},
"ref": "197122f13eefe2736858d928fba95f26bcbc4dcd"
}
}
}
+1 -5
View File
@@ -59,12 +59,8 @@
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
" </listeners>",
"",
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
" <!--",
" <extensions>",
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
" </extensions>",
" -->",
"</phpunit>",
""
],
@@ -88,7 +84,7 @@
"executable": false
}
},
"ref": "b5b34fa22319ac1f7f6c180b30e160841c154a1e"
"ref": "eb4b14aaa06c438b7022c2b19016f5c751f800dc"
}
}
}
+1 -5
View File
@@ -62,12 +62,8 @@
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
" </listeners>",
"",
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
" <!--",
" <extensions>",
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
" </extensions>",
" -->",
"</phpunit>",
""
],
@@ -91,7 +87,7 @@
"executable": false
}
},
"ref": "a6249a6c4392e9169b87abf93225f7f9f59025e6"
"ref": "7364a21d87e658eb363c5020c072ecfdc12e2326"
}
}
}
+10 -5
View File
@@ -16,6 +16,14 @@
"#\ttar -zxf geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz -C /usr/bin; \\",
"#\trm geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz"
],
"add-lines": [
{
"file": "phpunit.xml.dist",
"content": " <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
"position": "after_target",
"target": "<extensions>"
}
],
"post-install-output": [
" * Install <fg=green>ChromeDriver</> or <fg=green>geckodriver</> with ",
" the package manager of your Operating System.",
@@ -25,14 +33,11 @@
" <fg=green>composer require --dev dbrekelmans/bdi</>",
" <fg=green>vendor/bin/bdi detect drivers</>",
"",
" This step is not necessary when using Docker.",
"",
" * To use Panther with PHPUnit,",
" uncomment the snippet registering the Panther extension in <fg=green>phpunit.xml.dist</>"
" This step is not necessary when using Docker."
]
},
"files": [],
"ref": "877d853a05c6713665a2f4b954734592680abff6"
"ref": "2e163d6c3d10688ce3eac42afe5bf9e1fcb7327e"
}
}
}
+1 -5
View File
@@ -85,12 +85,8 @@
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
" </listeners>",
"",
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
" <!--",
" <extensions>",
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
" </extensions>",
" -->",
"</phpunit>",
""
],
@@ -118,7 +114,7 @@
"executable": false
}
},
"ref": "a079d407e71a1db6403d5274798119771c367891"
"ref": "197122f13eefe2736858d928fba95f26bcbc4dcd"
}
}
}
+1 -5
View File
@@ -93,12 +93,8 @@
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
" </listeners>",
"",
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
" <!--",
" <extensions>",
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
" </extensions>",
" -->",
"</phpunit>",
""
],
@@ -126,7 +122,7 @@
"executable": false
}
},
"ref": "819d3d2ffa4590eba0b8f4f3e5e89415ee4e45c3"
"ref": "1552413ad842623d23a33b3ed295e03eaaf0a332"
}
}
}