Sha256: 768acd1e15edadc69f1836ac7993c4a19a87d4f710bcd170c0003e6cdd97d482

Contents?: true

Size: 685 Bytes

Versions: 28

Compression:

Stored size: 685 Bytes

Contents

require "spec_helper"

describe Brightbox::FirewallPolicy do
  before do
    config_from_contents(API_CLIENT_CONFIG_CONTENTS)
  end

  describe "#find(:all)", vcr: true do

    context "when a policy exists" do
      before do
        options = {}
        @policy = Brightbox::FirewallPolicy.create(options)
      end

      it "should list firewall policy", vcr: true do
        output = FauxIO.new do
          firewall_policies = Brightbox::FirewallPolicy.find(:all)
          Brightbox.render_table(firewall_policies, :vertical => true)
        end

        expect(output.stdout).to include(@policy.id)
      end

      after do
        @policy.destroy
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
brightbox-cli-3.3.0 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-3.2.0 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-3.1.0 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-3.0.1 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-3.0.0 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.12.0 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.11.2 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.11.1 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.11.0 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.10.0 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.9.3 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.9.2 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.9.1 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.9.0 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.8.2 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.8.1 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.8.0 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.7.1 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.7.0 spec/unit/brightbox/firewall_policy/find_spec.rb
brightbox-cli-2.6.0 spec/unit/brightbox/firewall_policy/find_spec.rb