Implement Keystone environment deployments
This commit is contained in:
21
tests/Feature/DriverContractTest.php
Normal file
21
tests/Feature/DriverContractTest.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
use App\Drivers\Driver;
|
||||
|
||||
it('requires every configured v1 driver to expose runtime capabilities', function () {
|
||||
foreach (config('keystone.drivers') as $versions) {
|
||||
foreach ($versions as $driverClass) {
|
||||
$driver = new $driverClass;
|
||||
|
||||
expect($driver)->toBeInstanceOf(Driver::class)
|
||||
->and($driver->serviceType()->value)->not->toBeEmpty()
|
||||
->and($driver->versionTrack())->not->toBeEmpty()
|
||||
->and($driver->defaultImage())->not->toBeEmpty()
|
||||
->and($driver->defaultPorts())->toBeArray()
|
||||
->and($driver->firewallRules())->toBeArray()
|
||||
->and($driver->environmentSchema())->toBeArray()
|
||||
->and($driver->resourceDefaults())->toBeArray()
|
||||
->and($driver->updateBehavior())->not->toBeEmpty();
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user