? ? Error

User tests: Successful: Unsuccessful:

avatar alexukf
alexukf
6 Sep 2013

For the GSoC cloud storage project

avatar alexukf alexukf - open - 6 Sep 2013
avatar brunobatista
brunobatista - comment - 11 Sep 2013

Awesome!

avatar alexukf
alexukf - comment - 19 Sep 2013

I did some refactoring to both of these packages:

  • Throwed exceptions in fail conditions.
  • Created a new method for handling response codes and headers and removed some duplicate code.
  • Replaced JAmazons3Http with JHttp and removed the corresponding test.
avatar alexukf
alexukf - comment - 19 Sep 2013

One Travis job failed a test (out of many with a very similar behavior) which calculates a signature based on a date. The problem is that the test and the actual method were run at different seconds:
'Date' => 'Thu, 19 Sep 2013 13:16:58 +0000'
'Date' => 'Thu, 19 Sep 2013 13:16:59 +0000'

This is a pretty unlikely situation, but it may happen once in a while. I cannot replace the call to date("D, d M Y H:i:s O") in the test with a fixed string, because the calculated signature will not match the one in the tested method. Should I leave these kind of tests here or should I remove them?

avatar alexukf
alexukf - comment - 20 Sep 2013

The authorization is tested separately in the JAmazons3ObjectTest class, so I have removed it from the other test classes.

avatar brianteeman brianteeman - change - 21 Aug 2014
Status New Pending
Build .
avatar brianteeman brianteeman - change - 2 Sep 2014
Category Libraries
avatar roland-d
roland-d - comment - 15 Apr 2015

Thank you for your contribution but the PLT has decided it is not fit for the Joomla core. We do think it might be useful for the framework or as a standalone package. You could pursue that direction.

avatar roland-d roland-d - change - 15 Apr 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-04-15 20:17:48
avatar roland-d roland-d - close - 15 Apr 2015

Add a Comment

Login with GitHub to post a comment