ZF-11137: Zend_Service_Amazon_SimpleDb_OnlineTest needs to wait/sleep more often

Issue Type: Unit Tests: Problem Created: 2011-03-05T17:43:19.000+0000 Last Updated: 2011-03-07T07:25:38.000+0000 Status: Resolved Fix version(s): - 1.11.5 (07/Apr/11)

Reporter: David Smith (codeactual) Assignee: David Smith (codeactual) Tags: - Zend_Service_Amazon

Related issues: - ZF-11138

Attachments: - 11137.diff


Some additional sleeps should be added to avoid errors like:

1)Zend_Service_Amazon_SimpleDb_OnlineTest::testGetAttributes Zend_Service_Amazon_SimpleDb_Exception: Service AmazonSimpleDB is currently unavailable. Please try again later

Related AWS forum thread:…

Goals: - Tests runs that are slower but with less false negatives. - Avoid manual clean up cause by unexpected errors. E.g. testListDomains() is sensitive to the total number of test domains. But if cases die before they can clean up the domains they know about, we leave garbage behind for the next run.


Posted by David Smith (codeactual) on 2011-03-05T19:14:16.000+0000

bq. "Avoid manual clean up [...] testListDomains [...]"

My mistake -- that's not an issue.

Posted by David Smith (codeactual) on 2011-03-06T16:39:34.000+0000

At least for me, tests/Zend/Service/Amazon/SimpleDb/OnlineTest.php doesn't run without the access key constant fix.

Posted by David Smith (codeactual) on 2011-03-06T20:15:26.000+0000

  • All API calls now go through request() to apply mandatory wait and retry.
  • $_testWaitRetries now supplies retry limit (currently 3).
  • Due to mandatory wait, runtime more than doubled but now consistently passes (except for intermittent "Unable to Connect") error.
  • Removed testListDomains's initial assertTrue($page->isLast()) since the results are unreliable, possibly due to consistency/caching on AWS's end. Comment block added about that change. That change, in addition to ZF-11138's patch, we're required to even test the main point of the ticket: "currently unavailable" errors.

Posted by Matthew Weier O'Phinney (matthew) on 2011-03-07T05:57:11.000+0000

Please do not mark as resolved until the patch has been applied to trunk and the appropriate release branch.

Will review today.

Posted by Matthew Weier O'Phinney (matthew) on 2011-03-07T07:25:37.000+0000

Patch applied to trunk and 1.11 release branch.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.