Sha256: df6822b59bdabc73c89e319ee66a4dc2a691e779bc66ebb00c1e2d242132d36c

Contents?: true

Size: 811 Bytes

Versions: 1

Compression:

Stored size: 811 Bytes

Contents

require 'spec_helper'

describe F5::Icontrol::LocalLB::Pool, :vcr do
  subject { described_class.new("10.198.4.135", "admin", "admin") }

  describe "#respond_to?" do
    it "supports create_v2" do
      expect(subject.respond_to? :create_v2).to be_truthy
    end

    it "does not support buy cisco" do
      expect(subject.respond_to? :buy_cisco).to be_falsey
    end
  end

  it "creates a pool" do
    #<hosts s:type="A:Array" A:arrayType="iControl:System.CPUUsageExtended[0]"/>
    # Common.AddressPortSequenceSequence"

    expect(subject.create_v2(pool_names: {item: ['test_pool']},
                             lb_methods: {item: ["LB_METHOD_OBSERVED_MEMBER"] },
                             members: [ { address: "10.1.1.1", port: "80" } ]
                            )
          ).to be_nil
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
f5-icontrol-0.1.0 spec/models/local_lb/pool_spec.rb