Sha256: 7c75b81e47af561d74bef44ca506fd50d21940784ee1bef1e9f349332dcfb2c1

Contents?: true

Size: 703 Bytes

Versions: 45

Compression:

Stored size: 703 Bytes

Contents

require "spec_helper"

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

  describe "#destroy", vcr: true do
    context "when rule exists" do
      before do
        policy_options = {}
        @policy = Brightbox::FirewallPolicy.create(policy_options)

        rule_options = {
          :destination => "0.0.0.0/0",
          :destination_port => "1080",
          :protocol => "tcp",
          :firewall_policy_id => @policy.id
        }
        @rule = Brightbox::FirewallRule.create(rule_options)
      end

      it "destroys a rule" do
        expect do
          @rule.destroy
        end.to_not raise_error
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
brightbox-cli-5.0.0.rc2 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-5.0.0.rc1 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-5.0.0.alpha spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-4.8.0 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-4.7.0 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-4.6.0 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-4.5.0 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-4.5.0.rc1 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-4.4.0 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-4.3.2 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-4.3.1 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-4.3.0 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-4.2.1 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-4.2.0 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-4.1.0 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-4.0.0 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-4.0.0.rc2 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-3.3.0 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-3.2.0 spec/unit/brightbox/firewall_rule/destroy_spec.rb
brightbox-cli-3.1.0 spec/unit/brightbox/firewall_rule/destroy_spec.rb