Sha256: 6c4154014e4f98bcd5ce6e4f897d3c0f5597230d8d1832047aa77fa2f73644d4

Contents?: true

Size: 688 Bytes

Versions: 11

Compression:

Stored size: 688 Bytes

Contents

require "spec_helper"

describe Brightbox::FirewallPolicy do

  describe "#create", :vcr do

    it "should create firewall policy" do
      params = { :name => "rspec_tests" }
      @group = Brightbox::ServerGroup.create(params)
      expect do
        firewall_options = {
          :name => "rspec_firewall_policy",
          :server_group_id => @group.id
        }
        @firewall_policy = Brightbox::FirewallPolicy.create(firewall_options)
      end.not_to raise_error

      output = FauxIO.new do
        Brightbox.render_table([@firewall_policy], :vertical => true)
      end

      expect(output.stdout).to match(/rspec_firewall_policy/)
      @group.destroy
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
brightbox-cli-2.1.2 spec/unit/brightbox/firewall_policy/create_spec.rb
brightbox-cli-2.1.1 spec/unit/brightbox/firewall_policy/create_spec.rb
brightbox-cli-2.1.0 spec/unit/brightbox/firewall_policy/create_spec.rb
brightbox-cli-2.0.0 spec/unit/brightbox/firewall_policy/create_spec.rb
brightbox-cli-1.6.0 spec/unit/brightbox/firewall_policy/create_spec.rb
brightbox-cli-1.5.0 spec/unit/brightbox/firewall_policy/create_spec.rb
brightbox-cli-1.4.3 spec/unit/brightbox/firewall_policy/create_spec.rb
brightbox-cli-1.4.2 spec/unit/brightbox/firewall_policy/create_spec.rb
brightbox-cli-1.4.1 spec/unit/brightbox/firewall_policy/create_spec.rb
brightbox-cli-1.4.0 spec/unit/brightbox/firewall_policy/create_spec.rb
brightbox-cli-1.3.0 spec/unit/brightbox/firewall_policy/create_spec.rb