Sha256: 17faeca9f774fdc9a6b3242c8595250031820c049ac1219fbcfdf30c405af38a

Contents?: true

Size: 990 Bytes

Versions: 32

Compression:

Stored size: 990 Bytes

Contents

group "Routines"
library :rudy, 'lib'
  
tryout "Group Handler" do
  set :group, 'grp-' << Rudy::Utils.strand(4)
  set :global, Rudy::Huxtable.global
  set :config, Rudy::Huxtable.config
  set :test_env, 'env_' << Rudy::Utils.strand
  setup do
    #Rudy.enable_debug
    Rudy::Huxtable.update_config          # Read config files
    akey, skey, region = global.accesskey, global.secretkey, global.region
    Rudy::Metadata.connect akey, skey, region
    Rudy::AWS::EC2.connect akey, skey, region
    global.environment = test_env
  end

  drill "knows when a group doesn't exist", false do
    Rudy::Routines::Handlers::Group.exists? group
  end
  
  dream :class, Rudy::AWS::EC2::Group
  drill "create a group (#{group})" do
    Rudy::Routines::Handlers::Group.create group
  end
  
  drill "knows when a group exists", true do
    Rudy::Routines::Handlers::Group.exists? group
  end
  
  dream true
  drill "destroy group" do
    Rudy::Routines::Handlers::Group.destroy group
  end
  
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
solutious-rudy-0.9.2 tryouts/40_routines/11_group_handler_tryouts.rb
solutious-rudy-0.9.3 tryouts/40_routines/11_group_handler_tryouts.rb
solutious-rudy-0.9.4 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.020 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.019 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.018 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.017 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.016 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.015 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.014 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.013 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.012 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.011 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.010 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.009 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.008 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.007 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.006 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.005 tryouts/40_routines/11_group_handler_tryouts.rb
rudy-0.9.8.004 tryouts/40_routines/11_group_handler_tryouts.rb