From db6b50cd60f999ed88317fd649ad1bd13c6dfaf2 Mon Sep 17 00:00:00 2001 From: Edward Muller Date: Mon, 6 Feb 2012 17:51:35 -0800 Subject: [PATCH] Add group mock data --- lib/fog/aws/iam.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/fog/aws/iam.rb b/lib/fog/aws/iam.rb index 95bd1407c..aa5200936 100644 --- a/lib/fog/aws/iam.rb +++ b/lib/fog/aws/iam.rb @@ -69,6 +69,13 @@ module Fog :access_keys => [], :policies => {} } + end, + :groups => Hash.new do |ghash, gkey| + ghash[gkey] = { + :group_id => Fog::AWS::Mock.key_id, + :arn => "arn:aws:iam::#{Fog::AWS::Mock.owner_id}:group/#{gkey}", + :members => [] + } end } end