Example #1
0
 public function findCacheClusters()
 {
     $result = $this->elastiCacheClient->describeCacheClusters(['ShowCacheNodeInfo' => true]);
     $rows = $result->search('CacheClusters[]');
     $collection = new \AwsInspector\Model\Collection();
     foreach ($rows as $row) {
         $collection->attach(new CacheCluster($row));
     }
     return $collection;
 }
 /**
  * @covers Aws\ElastiCache\ElastiCacheClient::factory
  */
 public function testFactoryInitializesClient()
 {
     $client = ElastiCacheClient::factory(array('key' => 'foo', 'secret' => 'bar', 'region' => 'us-west-2'));
     $this->assertInstanceOf('Aws\\Common\\Signature\\SignatureV2', $client->getSignature());
     $this->assertInstanceOf('Aws\\Common\\Credentials\\Credentials', $client->getCredentials());
     $this->assertEquals('https://elasticache.us-west-2.amazonaws.com', $client->getBaseUrl());
 }
 /**
  * @depends testListsSecurityGroups
  */
 public function testDeletesSecurityGroups()
 {
     self::log('Delete cache security group');
     $this->client->deleteCacheSecurityGroup(array('CacheSecurityGroupName' => self::SECURITY_GROUP_NAME));
 }