Пример #1
0
 public function testListJobsCommandAndIterator()
 {
     $commandResults = $this->client->listJobs()->toArray();
     $this->assertArrayHasKey('Jobs', $commandResults);
     $iteratorResults = $this->client->getIterator('ListJobs')->toArray();
     $this->assertEquals($commandResults['Jobs'], $iteratorResults);
 }
 public function testFactoryInitializesClient()
 {
     $client = ImportExportClient::factory(array('key' => 'foo', 'secret' => 'bar'));
     $this->assertInstanceOf('Aws\\Common\\Signature\\SignatureV2', $client->getSignature());
     $this->assertInstanceOf('Aws\\Common\\Credentials\\Credentials', $client->getCredentials());
     $this->assertEquals('https://importexport.amazonaws.com', $client->getBaseUrl());
 }
Пример #3
0
 /**
  * @return \Guzzle\Service\Resource\Model
  */
 public function listJobs()
 {
     return $this->_client->listJobs();
 }