Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
116 additions
and
22 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
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
errorLevel="2" | ||
resolveFromConfigFile="true" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" | ||
findUnusedBaselineEntry="true" | ||
> | ||
<projectFiles> | ||
<directory name="src" /> | ||
<ignoreFiles> | ||
<directory name="vendor" /> | ||
</ignoreFiles> | ||
</projectFiles> | ||
</psalm> |
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,20 @@ | ||
<?php | ||
|
||
use Fusio\Adapter\OpenStack\Connection\BlockStorage; | ||
use Fusio\Adapter\OpenStack\Connection\Compute; | ||
use Fusio\Adapter\OpenStack\Connection\Identity; | ||
use Fusio\Adapter\OpenStack\Connection\Images; | ||
use Fusio\Adapter\OpenStack\Connection\Networking; | ||
use Fusio\Adapter\OpenStack\Connection\ObjectStore; | ||
use Fusio\Engine\Adapter\ServiceBuilder; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
|
||
return static function (ContainerConfigurator $container) { | ||
$services = ServiceBuilder::build($container); | ||
$services->set(BlockStorage::class); | ||
$services->set(Compute::class); | ||
$services->set(Identity::class); | ||
$services->set(Images::class); | ||
$services->set(Networking::class); | ||
$services->set(ObjectStore::class); | ||
}; |
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,55 @@ | ||
<?php | ||
/* | ||
* Fusio | ||
* A web-application to create dynamically RESTful APIs | ||
* | ||
* Copyright (C) 2015-2022 Christoph Kappestein <christoph.kappestein@gmail.com> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
namespace Fusio\Adapter\Neo4j\Tests; | ||
|
||
use Fusio\Adapter\OpenStack\Connection\BlockStorage; | ||
use Fusio\Adapter\OpenStack\Connection\Compute; | ||
use Fusio\Adapter\OpenStack\Connection\Identity; | ||
use Fusio\Adapter\OpenStack\Connection\Images; | ||
use Fusio\Adapter\OpenStack\Connection\Networking; | ||
use Fusio\Adapter\OpenStack\Connection\ObjectStore; | ||
use Fusio\Engine\Action\Runtime; | ||
use Fusio\Engine\Test\EngineTestCaseTrait; | ||
use PHPUnit\Framework\TestCase; | ||
use Symfony\Component\DependencyInjection\Container; | ||
|
||
/** | ||
* OpenStackTestCase | ||
* | ||
* @author Christoph Kappestein <christoph.kappestein@gmail.com> | ||
* @license http://www.gnu.org/licenses/agpl-3.0 | ||
* @link https://www.fusio-project.org/ | ||
*/ | ||
abstract class OpenStackTestCase extends TestCase | ||
{ | ||
use EngineTestCaseTrait; | ||
|
||
protected function configure(Runtime $runtime, Container $container): void | ||
{ | ||
$container->set(BlockStorage::class, new BlockStorage()); | ||
$container->set(Compute::class, new Compute()); | ||
$container->set(Identity::class, new Identity()); | ||
$container->set(Images::class, new Images()); | ||
$container->set(Networking::class, new Networking()); | ||
$container->set(ObjectStore::class, new ObjectStore()); | ||
} | ||
} |