-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
…d made some small content changes to README, CHANGELOG, and docs
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
# 1.1.0 | ||
CHANGELOG | ||
========= | ||
|
||
- Add CloudFront and S3 view helpers | ||
## 1.0.2 | ||
|
||
# 1.0.1 | ||
* Added Amazon S3 and Amazon CloudFront view helpers for generating links | ||
|
||
- Refactor module architecture | ||
## 1.0.1 | ||
|
||
# 1.0.0 | ||
* Refactored module architecture | ||
|
||
- Initial release | ||
## 1.0.0 | ||
|
||
* Initial release |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,7 @@ public function testRegisterAwsModule() | |
$command = $s3->getCommand('ListBuckets'); | ||
$request = $command->prepare(); | ||
$s3->dispatch('command.before_send', array('command' => $command)); | ||
$this->assertRegExp('/.+ZF2\/.+/', $request->getHeader('User-Agent', true)); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jeremeamia
Author
Contributor
|
||
$this->assertRegExp('/.+ZF2\/.+/', (string) $request->getHeader('User-Agent')); | ||
} | ||
|
||
/** | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,20 @@ public function testAssertGivenBucketOverrideDefaultBucket() | |
$this->assertEquals('https://my-overriden-bucket.s3.amazonaws.com/my-object', $link); | ||
} | ||
|
||
public function testCreatesUrlsForRegionalBuckets() | ||
{ | ||
$this->s3Client->setRegion('sa-east-1'); | ||
|
||
$link = $this->viewHelper->__invoke('my-object', 'my-bucket'); | ||
$this->assertEquals('https://my-bucket.s3-sa-east-1.amazonaws.com/my-object', $link); | ||
} | ||
|
||
public function testCreatesUrlsForNonUrlCompatibleBucketNames() | ||
{ | ||
$link = $this->viewHelper->__invoke('my-object', 'my.bucket'); | ||
$this->assertEquals('https://s3.amazonaws.com/my.bucket/my-object', $link); | ||
This comment has been minimized.
Sorry, something went wrong.
bakura10
Contributor
|
||
} | ||
|
||
public function testGenerateSignedLink() | ||
{ | ||
$timeTest = time() + 10; | ||
|
Side note : I had this problem in another problem. Guzzle is really annoying to BC like this in the 3.x branch.