Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 16 18:23
    pflueg commented #2162
  • Jan 16 16:23
    GrahamCampbell commented #2369
  • Jan 16 16:22
    GrahamCampbell commented #2369
  • Jan 14 19:32

    aws-sdk-php-automation on 3.209.6

    (compare)

  • Jan 14 19:32

    aws-sdk-php-automation on master

    Update models for release 3.209.6 release (compare)

  • Jan 14 14:02
    PhilETaylor commented #109
  • Jan 14 13:56
    PhilETaylor commented #109
  • Jan 13 20:50
    github-actions[bot] commented #2366
  • Jan 13 20:50
    ajredniwja closed #2366
  • Jan 13 20:50
    ajredniwja commented #2366
  • Jan 13 19:24

    aws-sdk-php-automation on master

    Update models for release 3.209.5 release (compare)

  • Jan 13 19:24

    aws-sdk-php-automation on 3.209.5

    (compare)

  • Jan 13 12:57
    ruudk commented #2361
  • Jan 12 19:17

    aws-sdk-php-automation on master

    Update models for release 3.209.4 release (compare)

  • Jan 12 19:17

    aws-sdk-php-automation on 3.209.4

    (compare)

  • Jan 12 00:03
    github-actions[bot] closed #1862
  • Jan 12 00:03
    github-actions[bot] labeled #1862
  • Jan 12 00:03
    github-actions[bot] unlabeled #1862
  • Jan 11 19:16

    aws-sdk-php-automation on master

    Update models for release 3.209.3 release (compare)

  • Jan 11 19:16

    aws-sdk-php-automation on 3.209.3

    (compare)

mikemherron
@mikemherron
Sure
I can see in Waiter.php::getArgsForAttempt() the delay is multipled by 1000 with the comment " // Set the delay. (Note: handlers except delay in milliseconds.)"
I may be in the wrong place entirely, but I wonder if that scaling is being by-passed due to the way that the RetryMiddleware applies the delay
Of course, I might just be in the wrong place altogether.
Will log the issue now.
Jonathan Eskew
@jeskew
The waiter delay should be separate from the retry delay. I'll take a closer look and let you know
mikemherron
@mikemherron
Cheers, thanks a lot. I'm putting together a quick repro script.
mikemherron
@mikemherron
@jeskew Have added the issue: aws/aws-sdk-php#815
Daniel Hensby
@dhensby
Hi, I just opened issue #821 and have a patch at #822 but I'm not really experienced with mock objects so not sure how to write a robust test for this problem
can anyone give me some pointers?
I essentially want to write some data to one session ID, "change the session ID", save the session again, and then check the data was saved
Jonathan Eskew
@jeskew
You can provide an http_handler to a client that verifies expectations instead of making requests
Daniel Hensby
@dhensby
@jeskew thanks; are there any existing examples in the tests I can use as a reference?
Daniel Hensby
@dhensby
thanks, I'll take a look.
Daniel Hensby
@dhensby
@jeskew I'm trying to implement something similar to that example, but it doesn't seem to have the intended effect...
$store = array();
        $client = DynamoDbClient::factory(array(
            'region' => 'us-west-2',
            'http_handler' => function() use(&$store) {
                var_dump(func_get_args());
                echo 'here';
            }
        ));
        $handler = SessionHandler::factory(array(
            'dynamodb_client'  => $client,
         ));
(this is just for debugging) the http_handler never gets called
I am on the 2.8 branch... perhaps it's not available on v2?
Jonathan Eskew
@jeskew
It's not on 2.8
Daniel Hensby
@dhensby
:(
any other pointers on how I can test this, then?
Jonathan Eskew
@jeskew
The session handler tests have a getMockedClient method
That should let you mock out responses
Daniel Hensby
@dhensby
This message was deleted
This message was deleted
ok, cool. I think I'm getting there, slowly. I just need to change my mock response based on the argument passed to the method. how do I do that?
$strategy->expects($this->any())
    ->method('doRead')
    ->will(
        //want callback here that can take doRead argument
    );
Daniel Hensby
@dhensby
basically, I need the doWrite and doRead to work dynamically and store actual values to prove the test
otherwise I'm basically writing a test that goes 1 == 1 and 2 == 2
Jonathan Eskew
@jeskew
You can check that the proper value is provided to doWrite and that the proper action is taken when the right value is returned from doRead
Daniel Hensby
@dhensby
thanks so much @jeskew testReturnCallback is what I needed
Daniel Hensby
@dhensby
tests passing now :)
just in time for me to go home
Miguel Vieira
@apoca
I want change my local files to S3 it is possible?
like uploaded files from users of platform
Daniel Hensby
@dhensby
Miguel Vieira
@apoca
Is possible in last version aws V3 upload files directly from POST
?
I can't find documentation about ..
Jonathan Eskew
@jeskew
@apoca I’m not sure what you mean
Do you mean from $_FILES?
Miguel Vieira
@apoca
@jeskew hoo tks I already solved :)
Zxurian
@Zxurian
so I'm looking at the Command Pool examples, is it possible to add commands to an existing command pool that has already started processing?
Zxurian
@Zxurian
aka, build a command pool, then afterwards have a separate loop that feed promises into it that will process according to the concurrency rules of the command pool (so that looping can continue while the promises are executing asynchronously), and then afterwards just wait until the command pool is empty?
richardudovich
@richardudovich
@richardudovich
hey all... can i please ask aws powershell codedeploy related question here?
this command creates a deployment and pushes to s3 in a zip file... >>>> aws deploy push --application-name shop.auf.com.au --description "Test code deploy" --ignore-hidden-files --s3-location s3://code-deploy-test-30112015/shop.auf.com.au.zip --source .
the equivalent in powershell seems to be >>>> New-CDDeployment -ApplicationName shop.auf.com.au -S3Location_Bucket code-deploy-test-30112015 -S3Location_BundleType zip -DeploymentGroupName shop.auf.com.au -Description "Shop code deploy" -S3Location_Key shop.auf.com.au.zip  -Revision_RevisionType S3  -DeploymentConfigName CodeDeployDefault.OneAtATime
however... the powershell one doesnt seem to offer an option for source...
and even though it doesnt complain ... there is no updated .zip on s3
Jonathan Eskew
@jeskew
@richardudovich I can really only answer questions about the PHP SDK… Are you using the Powershell tools or the AWS CLI?
richardudovich
@richardudovich
well, the aws cli works fine
powershell tools doesnt seem to have the source option
does that mean... i gotta zip up the source myself and push it to s\3