OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
Xpress_backup
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
S3
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:19 AM
rwxr-xr-x
📄
AmbiguousSuccessParserTest.php
3.68 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
ApplyChecksumMiddlewareTest.php
7.42 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
BatchDeleteTest.php
6.73 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
BucketEndpointArnMiddlewareTest.php
21.78 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
BucketEndpointMiddlewareTest.php
6.02 KB
05/19/2025 10:07:19 AM
rw-r--r--
📁
Crypto
-
05/19/2025 10:07:19 AM
rwxr-xr-x
📁
Exception
-
05/19/2025 10:07:19 AM
rwxr-xr-x
📄
GetBucketLocationParserTest.php
1.34 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
MultipartCopyTest.php
4.94 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
MultipartUploaderTest.php
12.52 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
ObjectCopierTest.php
15.15 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
ObjectUploaderTest.php
11.32 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
PermanentRedirectMiddlewareTest.php
982 bytes
05/19/2025 10:07:19 AM
rw-r--r--
📄
PostObjectTest.php
3.52 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
PostObjectV4Test.php
11.12 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
PutObjectUrlMiddlewareTest.php
2 KB
05/19/2025 10:07:19 AM
rw-r--r--
📁
RegionalEndpoint
-
05/19/2025 10:07:19 AM
rwxr-xr-x
📄
RetryableMalformedResponseParserTest.php
934 bytes
05/19/2025 10:07:19 AM
rw-r--r--
📄
S3ClientTest.php
92.05 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
S3EndpointMiddlewareTest.php
30.05 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
S3MultiRegionClientTest.php
24.99 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
S3UriParserTest.php
7.45 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
SSECMiddlewareTest.php
2.91 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
StreamWrapperPathStyleTest.php
30.16 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
StreamWrapperTest.php
36.33 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
StreamWrapperV2ExistenceTest.php
32.63 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
TransferTest.php
14.24 KB
05/19/2025 10:07:19 AM
rw-r--r--
📁
UseArnRegion
-
05/19/2025 10:07:19 AM
rwxr-xr-x
📄
ValidateResponseChecksumParserTest.php
5.45 KB
05/19/2025 10:07:19 AM
rw-r--r--
📁
fixtures
-
01/06/2025 09:14:38 AM
rwxr-xr-x
📄
sig_hack.php
226 bytes
05/19/2025 10:07:19 AM
rw-r--r--
📁
test_cases
-
01/06/2025 08:35:49 AM
rwxr-xr-x
Editing: SSECMiddlewareTest.php
Close
<?php namespace Aws\Test\S3; use Aws\Middleware; use Aws\Result; use Aws\Test\UsesServiceTrait; use Yoast\PHPUnitPolyfills\TestCases\TestCase; /** * @covers Aws\S3\SSECMiddleware */ class SSECMiddlewareTest extends TestCase { use UsesServiceTrait; /** * @dataProvider getListenerTestCases */ public function testSseCpkListener($operation, array $params, array $expectedResults) { $s3 = $this->getTestClient('s3'); $this->addMockResults($s3, [[]]); $cmd = $s3->getCommand($operation, $params); $cmd->getHandlerList()->appendInit( Middleware::tap(function ($cmd, $req) use ($expectedResults) { foreach ($expectedResults as $key => $value) { $this->assertEquals($value, $cmd[$key]); } }) ); $s3->execute($cmd); } public function getListenerTestCases() { return [ [ 'CopyObject', [ 'Bucket' => 'a', 'Key' => 'b', 'CopySource' => 'd/e', 'SSECustomerKey' => 'foo', 'CopySourceSSECustomerKey' => 'bar', ], [ 'SSECustomerAlgorithm' => null, 'SSECustomerKey' => base64_encode('foo'), 'SSECustomerKeyMD5' => base64_encode(md5('foo', true)), 'CopySourceSSECustomerKey' => base64_encode('bar'), 'CopySourceSSECustomerKeyMD5' => base64_encode(md5('bar', true)), ] ], [ 'PutObject', [ 'Bucket' => 'a', 'Key' => 'b', 'SSECustomerKey' => 'foo', 'SSECustomerKeyMD5' => 'bar', ], [ 'SSECustomerKey' => base64_encode('foo'), 'SSECustomerKeyMD5' => base64_encode('bar'), ] ], [ 'ListObjects', ['Bucket' => 'a'], [ 'SSECustomerKey' => null, 'SSECustomerKeyMD5' => null, ] ], ]; } public function testCannotUseWithoutHttps() { $this->expectException(\RuntimeException::class); $client = $this->getTestClient('s3', ['scheme' => 'http']); $client->listBuckets([ 'SSECustomerKey' => 'foo', 'CopySourceSSECustomerKey' => 'bar', ]); } /** @doesNotPerformAssertions */ public function testCanUseWithoutHttpsForNonSse() { $client = $this->getTestClient('s3', ['scheme' => 'http']); $this->addMockResults($client, [new Result()]); $client->listBuckets(); } }