OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
znew1aws-ses
/
vendor
/
aws
/
aws-sdk-php
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/16/2024 08:28:34 AM
rwxr-xr-x
📄
AbstractConfigurationProviderTest.php
3.42 KB
08/16/2024 08:27:25 AM
rw-r--r--
📁
Api
-
08/16/2024 08:39:29 AM
rwxr-xr-x
📁
Arn
-
08/16/2024 08:32:31 AM
rwxr-xr-x
📁
Auth
-
08/16/2024 08:30:00 AM
rwxr-xr-x
📄
AwsClientTest.php
29.67 KB
08/16/2024 08:27:25 AM
rw-r--r--
📁
Build
-
08/16/2024 08:32:31 AM
rwxr-xr-x
📄
ClientResolverTest.php
55.74 KB
08/16/2024 08:27:26 AM
rw-r--r--
📁
ClientSideMonitoring
-
08/16/2024 08:30:01 AM
rwxr-xr-x
📁
CloudFront
-
08/16/2024 08:32:31 AM
rwxr-xr-x
📁
CloudSearchDomain
-
08/16/2024 08:30:01 AM
rwxr-xr-x
📁
CloudTrail
-
08/16/2024 08:30:01 AM
rwxr-xr-x
📁
CloudWatchLogs
-
08/16/2024 08:30:01 AM
rwxr-xr-x
📁
CognitoIdentity
-
08/16/2024 08:30:01 AM
rwxr-xr-x
📁
CognitoSync
-
08/16/2024 08:30:01 AM
rwxr-xr-x
📄
CommandPoolTest.php
5.8 KB
08/16/2024 08:27:26 AM
rw-r--r--
📄
CommandTest.php
3.28 KB
08/16/2024 08:27:26 AM
rw-r--r--
📄
ConfigurationResolverTest.php
12.35 KB
08/16/2024 08:27:27 AM
rw-r--r--
📁
Credentials
-
08/16/2024 08:39:19 AM
rwxr-xr-x
📁
Crypto
-
08/16/2024 08:32:31 AM
rwxr-xr-x
📁
DefaultsMode
-
08/16/2024 08:30:03 AM
rwxr-xr-x
📁
DocDb
-
08/16/2024 08:30:03 AM
rwxr-xr-x
📄
DoctrineCacheAdapterTest.php
1.23 KB
08/16/2024 08:27:27 AM
rw-r--r--
📁
DynamoDb
-
08/16/2024 08:30:03 AM
rwxr-xr-x
📁
Ec2
-
08/16/2024 08:30:03 AM
rwxr-xr-x
📁
ElasticLoadBalancingV2
-
08/16/2024 08:30:03 AM
rwxr-xr-x
📁
Endpoint
-
08/16/2024 08:32:32 AM
rwxr-xr-x
📁
EndpointDiscovery
-
08/16/2024 08:39:29 AM
rwxr-xr-x
📄
EndpointParameterMiddlewareTest.php
9.21 KB
08/16/2024 08:27:27 AM
rw-r--r--
📁
EndpointV2
-
08/16/2024 08:32:33 AM
rwxr-xr-x
📁
EventBridge
-
08/16/2024 08:30:05 AM
rwxr-xr-x
📁
Exception
-
08/16/2024 08:30:05 AM
rwxr-xr-x
📄
FunctionsTest.php
14.33 KB
08/16/2024 08:27:27 AM
rw-r--r--
📁
Glacier
-
08/16/2024 08:30:05 AM
rwxr-xr-x
📁
Handler
-
08/16/2024 08:32:34 AM
rwxr-xr-x
📄
HandlerListTest.php
7.16 KB
08/16/2024 08:27:28 AM
rw-r--r--
📄
HasMonitoringEventsTraitTest.php
895 bytes
08/16/2024 08:27:28 AM
rw-r--r--
📄
HashingStreamTest.php
1.41 KB
08/16/2024 08:27:28 AM
rw-r--r--
📄
HistoryTest.php
4.2 KB
08/16/2024 08:27:28 AM
rw-r--r--
📄
IdempotencyTokenMiddlewareTest.php
2.76 KB
08/16/2024 08:27:28 AM
rw-r--r--
📁
Identity
-
08/16/2024 08:32:34 AM
rwxr-xr-x
📄
InputValidationMiddlewareTest.php
5.62 KB
08/16/2024 08:27:28 AM
rw-r--r--
📁
Integ
-
08/16/2024 08:30:06 AM
rwxr-xr-x
📄
JsonCompilerTest.php
730 bytes
08/16/2024 08:27:28 AM
rw-r--r--
📁
Lambda
-
08/16/2024 08:30:06 AM
rwxr-xr-x
📁
LexModelsV2
-
08/16/2024 08:30:06 AM
rwxr-xr-x
📄
LruArrayCacheTest.php
1.59 KB
08/16/2024 08:27:28 AM
rw-r--r--
📁
MachineLearning
-
08/16/2024 08:30:06 AM
rwxr-xr-x
📄
MiddlewareTest.php
16.08 KB
08/16/2024 08:27:29 AM
rw-r--r--
📄
MockHandlerTest.php
3.79 KB
08/16/2024 08:27:29 AM
rw-r--r--
📄
MultiRegionClientTest.php
5.41 KB
08/16/2024 08:27:29 AM
rw-r--r--
📁
Multipart
-
08/16/2024 08:30:06 AM
rwxr-xr-x
📁
Neptune
-
08/16/2024 08:30:06 AM
rwxr-xr-x
📄
PerformanceContext.php
8.2 KB
08/16/2024 08:27:29 AM
rw-r--r--
📄
PhpHashTest.php
1.33 KB
08/16/2024 08:27:29 AM
rw-r--r--
📁
Polly
-
08/16/2024 08:30:06 AM
rwxr-xr-x
📄
PresignUrlMiddlewareTest.php
3.95 KB
08/16/2024 08:27:29 AM
rw-r--r--
📄
Psr16CacheAdapterTest.php
1.84 KB
08/16/2024 08:27:29 AM
rw-r--r--
📄
PsrCacheAdapterTest.php
2.64 KB
08/16/2024 08:27:29 AM
rw-r--r--
📄
QueryCompatibleInputMiddlewareTest.php
9.1 KB
08/16/2024 08:27:30 AM
rw-r--r--
📁
Rds
-
08/16/2024 08:30:07 AM
rwxr-xr-x
📁
RequestCompression
-
08/16/2024 08:32:34 AM
rwxr-xr-x
📄
ResultPaginatorTest.php
16.21 KB
08/16/2024 08:27:30 AM
rw-r--r--
📄
ResultTest.php
1.38 KB
08/16/2024 08:27:30 AM
rw-r--r--
📁
Retry
-
08/16/2024 08:30:07 AM
rwxr-xr-x
📄
RetryMiddlewareTest.php
24.57 KB
08/16/2024 08:27:30 AM
rw-r--r--
📄
RetryMiddlewareV2Test.php
40.33 KB
08/16/2024 08:27:30 AM
rw-r--r--
📁
Route53
-
08/16/2024 08:30:07 AM
rwxr-xr-x
📁
S3
-
08/16/2024 08:39:30 AM
rwxr-xr-x
📁
S3Control
-
08/16/2024 08:30:09 AM
rwxr-xr-x
📁
Script
-
08/16/2024 08:30:09 AM
rwxr-xr-x
📄
SdkTest.php
2.37 KB
08/16/2024 08:27:31 AM
rw-r--r--
📁
Ses
-
08/16/2024 08:30:09 AM
rwxr-xr-x
📁
Signature
-
08/16/2024 08:30:09 AM
rwxr-xr-x
📁
Sqs
-
08/16/2024 08:30:09 AM
rwxr-xr-x
📁
Ssm
-
08/16/2024 08:30:09 AM
rwxr-xr-x
📄
StreamRequestPayloadMiddlewareTest.php
10.1 KB
08/16/2024 08:27:31 AM
rw-r--r--
📁
Sts
-
08/16/2024 08:32:35 AM
rwxr-xr-x
📄
TestServiceTrait.php
3.78 KB
08/16/2024 08:27:31 AM
rw-r--r--
📁
Token
-
08/16/2024 08:30:10 AM
rwxr-xr-x
📄
TraceMiddlewareTest.php
16.16 KB
08/16/2024 08:27:31 AM
rw-r--r--
📄
UsesServiceTrait.php
4.37 KB
08/16/2024 08:27:32 AM
rw-r--r--
📄
WaiterTest.php
12.63 KB
08/16/2024 08:27:32 AM
rw-r--r--
📄
WrappedHttpHandlerTest.php
13.8 KB
08/16/2024 08:27:32 AM
rw-r--r--
📁
bootstrap
-
08/16/2024 08:30:00 AM
rwxr-xr-x
📄
bootstrap.php
1.53 KB
08/16/2024 08:27:26 AM
rw-r--r--
📁
fixtures
-
08/16/2024 08:39:30 AM
rwxr-xr-x
📁
static
-
08/16/2024 08:30:09 AM
rwxr-xr-x
Editing: PresignUrlMiddlewareTest.php
Close
<?php namespace Aws\Test; use Aws\CommandInterface; use Aws\Credentials\Credentials; use Aws\DocDB\DocDBClient; use Aws\Ec2\Ec2Client; use Aws\Neptune\NeptuneClient; use Aws\Rds\RdsClient; use Aws\Result; use Psr\Http\Message\RequestInterface; use Yoast\PHPUnitPolyfills\TestCases\TestCase; /** * @covers Aws\PresignUrlMiddleware */ class PresignUrlMiddlewareTest extends TestCase { use UsesServiceTrait; public function testDoesNotAddPresignedUrlForNonRequiredOperations() { $ec2 = new Ec2Client([ 'region' => 'us-east-1', 'version' => 'latest' ]); $this->addMockResults($ec2, [[]]); $cmd = $ec2->getCommand('DescribeInstances'); $ec2->execute($cmd); $this->assertNull($cmd['PresignedUrl']); $rds = new RdsClient([ 'region' => 'us-east-1', 'version' => 'latest' ]); $this->addMockResults($rds, [[]]); $cmd = $rds->getCommand('DescribeDBClusterParameterGroups'); $rds->execute($cmd); $this->assertNull($cmd['PreSignedUrl']); } public function testAddsPresignedUrlForRequiredOperations() { $ec2 = new Ec2Client([ 'region' => 'us-east-2', 'version' => 'latest', 'handler' => function (CommandInterface $cmd, RequestInterface $r) { $url = $cmd['PresignedUrl']; $this->assertNotNull($url); $this->assertStringContainsString('https://ec2.eu-west-1.amazonaws.com', $url); $this->assertStringContainsString('SourceSnapshotId=foo', $url); $this->assertStringContainsString('SourceRegion=eu-west-1', $url); $this->assertStringContainsString('X-Amz-Signature=', $url); $this->assertSame('us-east-2', $cmd['DestinationRegion']); return new Result; }, ]); $ec2->copySnapshot([ 'SourceRegion' => 'eu-west-1', 'SourceSnapshotId' => 'foo', ]); $rds = new RdsClient([ 'region' => 'us-east-2', 'version' => 'latest', 'handler' => function (CommandInterface $cmd, RequestInterface $r) { $url = $cmd['PreSignedUrl']; $this->assertNotNull($url); $this->assertStringContainsString('https://rds.eu-west-1.amazonaws.com', $url); $this->assertStringContainsString('KmsKeyId=', $url); $this->assertStringContainsString('SourceDBSnapshotIdentifier=', $url); $this->assertStringContainsString('TargetDBSnapshotIdentifier=my-snapshot-copy', $url); $this->assertStringContainsString('eu-west-1', $url); $this->assertStringContainsString('X-Amz-Signature=', $url); $this->assertSame('us-east-2', $cmd['DestinationRegion']); return new Result; }, ]); $rds->copyDBSnapshot([ 'SourceRegion' => 'eu-west-1', 'KmsKeyId' => '238f8ec9-71da-4530-8ec9-009f4a90fef5', 'SourceDBSnapshotIdentifier' => 'arn:aws:rds:us-west-2:123456789012:snapshot:rds:my-snapshot', 'TargetDBSnapshotIdentifier' => 'my-snapshot-copy', ]); } public function testNoPreSignedUrlWhenDifferentSourceRegionRequired() { $rds = new RdsClient([ 'region' => 'us-east-2', 'version' => 'latest', 'handler' => function (CommandInterface $cmd, RequestInterface $r) { $this->assertNull($cmd['PreSignedUrl']); $this->assertSame('us-east-2', $cmd['DestinationRegion']); return new Result; }, ]); $rds->createDBInstanceReadReplica([ 'DBInstanceIdentifier' => 'test-replica', 'SourceDBInstanceIdentifier' => 'test-source', ]); } }