Sha256: 737b5d48c220d42596eb129227641e1bb4d4825136c788b1c015fb50d6657070

Contents?: true

Size: 962 Bytes

Versions: 1

Compression:

Stored size: 962 Bytes

Contents

require 'rubygems'
require "ruby-debug"
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "Messing with spec" do
  before(:all) do
    raise "for this spec to run, you must have a mysql deployment nickname in $DEPLOYMENT variable" unless ENV['DEPLOYMENT']
    @runner = VirtualMonkey::MysqlRunner.new(ENV['DEPLOYMENT'])
    @runner
    @runner.lookup_scripts
    @snapshot_lineage_prefix='testlineage3049'
#    @runner.setup_dns

  end
  it "wait for master snapshot to complete - no pending snapshots for master lineage" do
# take the lineage name, find all snapshots and verify that none are in the pending state.
snapshots =Ec2EbsSnapshot.find_by_cloud_id(3).select { |n| n.nickname =~ /#{@snapshot_lineage_prefix}.*$/ }
status= snapshots.map &:aws_status
puts status.join ","
puts "we got completed snapshots" if status.include?("completed") 
puts "we got pending snapshots" if status.include?("pending") 
debugger
puts x
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
virtualmonkey-0.0.1 spec/mini.rb