Integration Tests for all Providers (#1)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Fixed FileProvider returning an illegal index. Now working with docker secrets. Started implementing drone Reviewed-on: #1 Co-Authored-By: Abel Hoogeveen <abel@i15.nl> Co-Committed-By: Abel Hoogeveen <abel@i15.nl>
This commit is contained in:
parent
653a725461
commit
d834f77b7e
41
.drone.yml
Normal file
41
.drone.yml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: test
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: cache
|
||||||
|
image: redis
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: composer
|
||||||
|
image: composer:latest
|
||||||
|
commands:
|
||||||
|
- composer install
|
||||||
|
|
||||||
|
- name: dummyprovidertest
|
||||||
|
image: registry.i15.nl/i15/fuzephp:7.4-alpine
|
||||||
|
commands:
|
||||||
|
- docker-php-ext-enable xdebug
|
||||||
|
- vendor/bin/phpunit -c test/phpunit.xml
|
||||||
|
environment:
|
||||||
|
OBJECTSTORAGE_PROVIDER: DummyProvider
|
||||||
|
|
||||||
|
- name: fileprovidertest
|
||||||
|
image: registry.i15.nl/i15/fuzephp:7.4-alpine
|
||||||
|
commands:
|
||||||
|
- docker-php-ext-enable xdebug
|
||||||
|
- vendor/bin/phpunit -c test/phpunit.xml
|
||||||
|
environment:
|
||||||
|
OBJECTSTORAGE_PROVIDER: FileProvider
|
||||||
|
|
||||||
|
- name: redisprovidertest
|
||||||
|
image: registry.i15.nl/i15/fuzephp:7.4-alpine
|
||||||
|
commands:
|
||||||
|
- docker-php-ext-enable xdebug
|
||||||
|
- vendor/bin/phpunit -c test/phpunit.xml
|
||||||
|
environment:
|
||||||
|
OBJECTSTORAGE_PROVIDER: RedisProvider
|
||||||
|
OBJECTSTORAGE_REDIS_HOST: cache
|
||||||
|
|
||||||
|
image_pull_secrets:
|
||||||
|
- dockerconfig
|
@ -114,7 +114,11 @@ class FileProvider implements iObjectStorageProvider
|
|||||||
|
|
||||||
public function getIndex(): array
|
public function getIndex(): array
|
||||||
{
|
{
|
||||||
return $this->index;
|
$out = [];
|
||||||
|
foreach ($this->index as $key => $val)
|
||||||
|
$out[] = $key;
|
||||||
|
|
||||||
|
return $out;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getItem(string $key)
|
public function getItem(string $key)
|
||||||
|
Loading…
Reference in New Issue
Block a user