Skip to content

Commit

Permalink
feat: update googleapis.com -> storage.googleapis.com (#2426)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsupplee authored Oct 28, 2019
1 parent 257289e commit 3c6266c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Storage/src/Connection/Rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ class Rest implements ConnectionInterface
use RestTrait;
use UriTrait;

const BASE_URI = 'https://www.googleapis.com/storage/v1/';
const UPLOAD_URI = 'https://www.googleapis.com/upload/storage/v1/b/{bucket}/o{?query*}';
const DOWNLOAD_URI = 'https://www.googleapis.com/storage/v1/b/{bucket}/o/{object}{?query*}';
const BASE_URI = 'https://storage.googleapis.com/storage/v1/';
const UPLOAD_URI = 'https://storage.googleapis.com/upload/storage/v1/b/{bucket}/o{?query*}';
const DOWNLOAD_URI = 'https://storage.googleapis.com/storage/v1/b/{bucket}/o/{object}{?query*}';

/**
* @var string
Expand Down
4 changes: 2 additions & 2 deletions Storage/tests/Unit/Connection/RestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function ($args) use (&$actualRequest, $response) {
$actualBody = $rest->downloadObject(self::$downloadOptions);
$actualUri = (string) $actualRequest->getUri();

$expectedUri = 'https://www.googleapis.com/storage/v1/b/bigbucket/o/myfile.txt?' .
$expectedUri = 'https://storage.googleapis.com/storage/v1/b/bigbucket/o/myfile.txt?' .
'generation=100&alt=media&userProject=myProject';

$this->assertEquals($this->successBody, $actualBody);
Expand Down Expand Up @@ -190,7 +190,7 @@ function ($args) use (&$actualRequest, $response) {
$actualPromise = $rest->downloadObjectAsync(self::$downloadOptions);
$actualUri = (string) $actualRequest->getUri();

$expectedUri = 'https://www.googleapis.com/storage/v1/b/bigbucket/o/myfile.txt?' .
$expectedUri = 'https://storage.googleapis.com/storage/v1/b/bigbucket/o/myfile.txt?' .
'generation=100&alt=media&userProject=myProject';

$this->assertInstanceOf(PromiseInterface::class, $actualPromise);
Expand Down

0 comments on commit 3c6266c

Please sign in to comment.