Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Add Stream API for Blobs #652

Closed
wants to merge 3 commits into from
Closed

Add Stream API for Blobs #652

wants to merge 3 commits into from

Conversation

beberlei
Copy link

PHP offers a stream API that allows operations on services to look like low-level php filesystem operations.

This pull request adds support for this stream API for Windows Azure Blob Storage. The code was ported from the old SDK into the AzureDistributionBundle and from there now to this SDK.

This functionality is highly interesting for the SDK, because it has a wide range of use-cases with existing libraries that operate on PHP filesystem streams.

Example:

$fileName = 'azure://my_container/test.txt';

$blobClient = $this->createBlobClient();

$fh = fopen($fileName, 'w');
fwrite($fh, "Hello world!");
$pos = ftell($fh);
fseek($fh, 0);
fwrite($fh, "Hello world!");
fclose($fh);

$result = file_get_contents($fileName);

$this->assertEquals('Hello world!', $result);
$this->assertEquals(12, $pos);

The Pull Request comes with 17 functional tests that are passing.

@ogail
Copy link
Contributor

ogail commented Feb 19, 2013

@beberlei could you fix conflicts?

@beberlei
Copy link
Author

@ogail what conflicts? Is the PR not mergable?

@ogail
Copy link
Contributor

ogail commented Feb 19, 2013

@beberlei yes

@beberlei
Copy link
Author

@ogail rebased

@beberlei
Copy link
Author

beberlei commented Apr 8, 2013

@ogail any news?

@ogail
Copy link
Contributor

ogail commented Apr 9, 2013

We just want to run the unit tests to make sure this passes have u tried run ant and it passed?

@rdohms
Copy link
Contributor

rdohms commented Feb 3, 2014

so... did the tests run?

@ogail
Copy link
Contributor

ogail commented Feb 4, 2014

@rdohms yes and there are some failures, below is the result, can you please run tests on your behalf to make sure they pass?

 [exec] PHPUnit 3.7.28 by Sebastian Bergmann.
     [exec] 
     [exec] Configuration read from D:\workspace\azure-sdk-for-php-azure-main\phpunit.xml.dist
     [exec] 
     [exec] ...................................................EEEE......   61 / 1393 (  4%)
     [exec] .............................................................  122 / 1393 (  8%)
     [exec] .............................................................  183 / 1393 ( 13%)
     [exec] .............................................................  244 / 1393 ( 17%)
     [exec] .............................................................  305 / 1393 ( 21%)
     [exec] .............................................................  366 / 1393 ( 26%)
     [exec] .............................................................  427 / 1393 ( 30%)
     [exec] .............................................................  488 / 1393 ( 35%)
     [exec] .............................................................  549 / 1393 ( 39%)
     [exec] .............................................................  610 / 1393 ( 43%)
     [exec] .............................................................  671 / 1393 ( 48%)
     [exec] .............................................................  732 / 1393 ( 52%)
     [exec] .............................................................  793 / 1393 ( 56%)
     [exec] .............................................................  854 / 1393 ( 61%)
     [exec] .............................................................  915 / 1393 ( 65%)
     [exec] .............................................................  976 / 1393 ( 70%)
     [exec] ............................................................. 1037 / 1393 ( 74%)
     [exec] ............................................................. 1098 / 1393 ( 78%)
     [exec] .......................F.......FESSSSSS......EEEEEEEEEEEESSE. 1159 / 1393 ( 83%)
     [exec] ............................................................. 1220 / 1393 ( 87%)
     [exec] ............................................................. 1281 / 1393 ( 91%)
     [exec] ............................................................. 1342 / 1393 ( 96%)
     [exec] ..................................................
     [exec] 
     [exec] Time: 7.21 minutes, Memory: 51.25Mb
     [exec] 
     [exec] There were 18 errors:
     [exec] 
     [exec] 1) Tests\Unit\WindowsAzure\Blob\BlobRestProxyTest::testCreateBlobBlock
     [exec] Undefined index: etag
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Blob\Models\CopyBlobResult.php:64
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Blob\BlobRestProxy.php:1387
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\Blob\BlobRestProxyTest.php:1278
     [exec] 
     [exec] 2) Tests\Unit\WindowsAzure\Blob\BlobRestProxyTest::testCommitBlobBlocks
     [exec] Undefined index: etag
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Blob\Models\CopyBlobResult.php:64
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Blob\BlobRestProxy.php:1387
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\Blob\BlobRestProxyTest.php:1297
     [exec] 
     [exec] 3) Tests\Unit\WindowsAzure\Blob\BlobRestProxyTest::testCommitBlobBlocksWithArray
     [exec] Undefined index: etag
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Blob\Models\CopyBlobResult.php:64
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Blob\BlobRestProxy.php:1387
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\Blob\BlobRestProxyTest.php:1331
     [exec] 
     [exec] 4) Tests\Unit\WindowsAzure\Blob\BlobRestProxyTest::testListBlobBlocks
     [exec] Undefined index: etag
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Blob\Models\CopyBlobResult.php:64
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Blob\BlobRestProxy.php:1387
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\Blob\BlobRestProxyTest.php:1357
     [exec] 
     [exec] 5) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testCreateStorageService
     [exec] WindowsAzure\Common\ServiceException: Fail:
     [exec] Code: 409
     [exec] Value: Conflict
     [exec] details (if any): <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>ConflictError</Code><Message>The storage account named 'createstorageservice' is already taken.</Message></Error>.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:382
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:276
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\RestProxy.php:141
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\ServiceManagement\ServiceManagementRestProxy.php:481
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:328
     [exec] 
     [exec] 6) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testGetHostedServicePropertiesWithEmbed
     [exec] WindowsAzure\Common\ServiceException: Fail:
     [exec] Code: 400
     [exec] Value: Bad Request
     [exec] details (if any): <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message></Error>.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:382
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:276
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\RestProxy.php:141
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\ServiceManagement\ServiceManagementRestProxy.php:1038
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\framework\ServiceManagementRestProxyTestBase.php:316
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:678
     [exec] 
     [exec] 7) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testCreateDeployment
     [exec] WindowsAzure\Common\ServiceException: Fail:
     [exec] Code: 400
     [exec] Value: Bad Request
     [exec] details (if any): <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message></Error>.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:382
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:276
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\RestProxy.php:141
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\ServiceManagement\ServiceManagementRestProxy.php:1038
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\framework\ServiceManagementRestProxyTestBase.php:316
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:728
     [exec] 
     [exec] 8) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testDeleteDeploymentWithSlot
     [exec] WindowsAzure\Common\ServiceException: Fail:
     [exec] Code: 400
     [exec] Value: Bad Request
     [exec] details (if any): <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message></Error>.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:382
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:276
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\RestProxy.php:141
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\ServiceManagement\ServiceManagementRestProxy.php:1038
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:759
     [exec] 
     [exec] 9) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testDeleteDeploymentWithName
     [exec] WindowsAzure\Common\ServiceException: Fail:
     [exec] Code: 400
     [exec] Value: Bad Request
     [exec] details (if any): <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message></Error>.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:382
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:276
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\RestProxy.php:141
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\ServiceManagement\ServiceManagementRestProxy.php:1038
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:798
     [exec] 
     [exec] 10) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testGetDeploymentWithOneRole
     [exec] WindowsAzure\Common\ServiceException: Fail:
     [exec] Code: 400
     [exec] Value: Bad Request
     [exec] details (if any): <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message></Error>.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:382
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:276
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\RestProxy.php:141
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\ServiceManagement\ServiceManagementRestProxy.php:1038
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\framework\ServiceManagementRestProxyTestBase.php:316
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:830
     [exec] 
     [exec] 11) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testGetDeploymentWithMultipleRoles
     [exec] WindowsAzure\Common\ServiceException: Fail:
     [exec] Code: 400
     [exec] Value: Bad Request
     [exec] details (if any): <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message></Error>.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:382
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:276
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\RestProxy.php:141
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\ServiceManagement\ServiceManagementRestProxy.php:1038
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:881
     [exec] 
     [exec] 12) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testGetDeploymentWhileUpgrading
     [exec] WindowsAzure\Common\ServiceException: Fail:
     [exec] Code: 400
     [exec] Value: Bad Request
     [exec] details (if any): <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message></Error>.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:382
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:276
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\RestProxy.php:141
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\ServiceManagement\ServiceManagementRestProxy.php:1038
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\framework\ServiceManagementRestProxyTestBase.php:316
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:924
     [exec] 
     [exec] 13) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testSwapDeployment
     [exec] WindowsAzure\Common\ServiceException: Fail:
     [exec] Code: 400
     [exec] Value: Bad Request
     [exec] details (if any): <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message></Error>.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:382
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:276
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\RestProxy.php:141
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\ServiceManagement\ServiceManagementRestProxy.php:1038
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\framework\ServiceManagementRestProxyTestBase.php:241
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:973
     [exec] 
     [exec] 14) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testChangeDeploymentConfiguration
     [exec] WindowsAzure\Common\ServiceException: Fail:
     [exec] Code: 400
     [exec] Value: Bad Request
     [exec] details (if any): <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message></Error>.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:382
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:276
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\RestProxy.php:141
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\ServiceManagement\ServiceManagementRestProxy.php:1038
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\framework\ServiceManagementRestProxyTestBase.php:316
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:1015
     [exec] 
     [exec] 15) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testUpdateDeploymentStatus
     [exec] WindowsAzure\Common\ServiceException: Fail:
     [exec] Code: 400
     [exec] Value: Bad Request
     [exec] details (if any): <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message></Error>.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:382
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:276
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\RestProxy.php:141
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\ServiceManagement\ServiceManagementRestProxy.php:1038
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\framework\ServiceManagementRestProxyTestBase.php:316
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:1045
     [exec] 
     [exec] 16) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testUpgradeDeployment
     [exec] WindowsAzure\Common\ServiceException: Fail:
     [exec] Code: 400
     [exec] Value: Bad Request
     [exec] details (if any): <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message></Error>.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:382
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:276
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\RestProxy.php:141
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\ServiceManagement\ServiceManagementRestProxy.php:1038
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\framework\ServiceManagementRestProxyTestBase.php:316
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:1075
     [exec] 
     [exec] 17) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testWalkUpgradeDomain
     [exec] WindowsAzure\Common\ServiceException: Fail:
     [exec] Code: 400
     [exec] Value: Bad Request
     [exec] details (if any): <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message></Error>.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:382
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:276
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\RestProxy.php:141
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\ServiceManagement\ServiceManagementRestProxy.php:1038
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\framework\ServiceManagementRestProxyTestBase.php:316
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:1119
     [exec] 
     [exec] 18) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testRollbackUpgradeOrUpdate
     [exec] WindowsAzure\Common\ServiceException: Fail:
     [exec] Code: 400
     [exec] Value: Bad Request
     [exec] details (if any): <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message></Error>.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:382
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\Http\HttpClient.php:276
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\Common\Internal\RestProxy.php:141
     [exec] D:\workspace\azure-sdk-for-php-azure-main\WindowsAzure\ServiceManagement\ServiceManagementRestProxy.php:1038
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\framework\ServiceManagementRestProxyTestBase.php:241
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:1273
     [exec] 
     [exec] --
     [exec] 
     [exec] 
     [exec] There were 2 failures:
     [exec] 
     [exec] 1) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testLocations
     [exec] Failed asserting that actual size 8 matches expected size 11.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:118
     [exec] 
     [exec] 2) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testListLocations
     [exec] Failed asserting that actual size 8 matches expected size 11.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:302
     [exec] 
     [exec] There were 8 skipped tests:
     [exec] 
     [exec] 1) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testListStorageServices
     [exec] This test depends on "Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testCreateStorageService" to pass.
     [exec] 
     [exec] 
     [exec] 2) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testUpdateStorageService
     [exec] This test depends on "Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testListStorageServices" to pass.
     [exec] 
     [exec] 
     [exec] 3) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testGetStorageServiceProperties
     [exec] This test depends on "Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testUpdateStorageService" to pass.
     [exec] 
     [exec] 
     [exec] 4) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testGetStorageServiceKeys
     [exec] This test depends on "Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testGetStorageServiceProperties" to pass.
     [exec] 
     [exec] 
     [exec] 5) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testRegenerateStorageServiceKeys
     [exec] This test depends on "Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testGetStorageServiceKeys" to pass.
     [exec] 
     [exec] 
     [exec] 6) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testDeleteStorageService
     [exec] This test depends on "Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testRegenerateStorageServiceKeys" to pass.
     [exec] 
     [exec] 
     [exec] 7) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testRebootRoleInstance
     [exec] This test takes long time, skip.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:1169
     [exec] 
     [exec] 8) Tests\Unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest::testReimageRoleInstance
     [exec] This test takes long time, skip.
     [exec] 
     [exec] D:\workspace\azure-sdk-for-php-azure-main\tests\unit\WindowsAzure\ServiceManagement\ServiceManagementRestProxyTest.php:1214
     [exec] 
     [exec] FAILURES!
     [exec] Tests: 1387, Assertions: 1975, Failures: 2, Errors: 18, Skipped: 8.

@rdohms
Copy link
Contributor

rdohms commented Feb 4, 2014

@antonba Quite honestly i have not gotten the tests to run yet, seems a lot more complicated then it should be. You guys should aim for some travis-ci support.

@ogail
Copy link
Contributor

ogail commented Aug 27, 2014

add to whitelist

@ogail
Copy link
Contributor

ogail commented Aug 27, 2014

@beberlei could you run the tests locally and verify they pass so we can merge the PR?

@rdohms
Copy link
Contributor

rdohms commented Aug 27, 2014

@ogail give the current complexity of trying to setup the environment you have made required for unit tests, it may be easier if you share the results of of jenkins setup.

@devigned devigned closed this Dec 17, 2015
@devigned devigned reopened this Dec 17, 2015
@azurecla
Copy link

Hi @beberlei, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.azure.com.

TTYL, AZPRBOT;

@devigned devigned removed this from the Backlog/Triage milestone Mar 14, 2016
@yaqiyang
Copy link
Member

The storage API has branch out to https://github.com/Azure/azure-storage-php. Please submit a PR there.
Thanks
Yaqi Yang

@yaqiyang yaqiyang closed this Jun 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants