Skip to content

Commit

Permalink
Add test for IBM Cloud Object
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh3305 committed Oct 4, 2023
1 parent d4067a4 commit 28de259
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tests/Storage/Device/IBMCloudObjectTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

namespace Utopia\Tests\Storage\Device;

use Utopia\Storage\Device\IBMCloudObject;
use Utopia\Tests\Storage\S3Base;

class IBMCloudObjectTest extends S3Base
{
protected function init(): void
{
$this->root = '/root';
$key = $_SERVER['CEPH_ACCESS_KEY'] ?? '';
$secret = $_SERVER['CEPH_SECRET'] ?? '';
$bucket = 'utopia-storage-test';

$this->object = new IBMCloudObject($this->root, $key, $secret, $bucket, IBMCloudObject::US_EAST_1, IBMCloudObject::ACL_PRIVATE);
}

protected function getAdapterName(): string
{
return 'IBM Cloud Object Storage';
}

protected function getAdapterType(): string
{
return $this->object->getType();
}

protected function getAdapterDescription(): string
{
return 'IBM Cloud Object';
}
}

0 comments on commit 28de259

Please sign in to comment.