Sha256: 58a16106b617934757ea20f299ea92022697dbf64069f4617c3a40c99c3a563c
Contents?: true
Size: 1.5 KB
Versions: 1
Compression:
Stored size: 1.5 KB
Contents
# -*- encoding: utf-8 -*- require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe Simplenet::Client::Connection do before do config = {:url => "http://localhost:9696"} @client = Simplenet::Client::Connection.new(config) end it "creates a new instance of firewall" do expect(@client.firewalls).to be_instance_of(Simplenet::Client::Firewall) end it "creates a new instance of datacenter" do expect(@client.datacenters).to be_instance_of(Simplenet::Client::Datacenter) end it "creates a new instance of zone" do expect(@client.zones).to be_instance_of(Simplenet::Client::Zone) end it "creates a new instance of ip" do expect(@client.ips).to be_instance_of(Simplenet::Client::Ip) end it "creates a new instance of subnet" do expect(@client.subnets).to be_instance_of(Simplenet::Client::Subnet) end it "creates a new instance of anycast" do expect(@client.anycasts).to be_instance_of(Simplenet::Client::Anycast) end it "creates a new instance of anycastip" do expect(@client.anycastips).to be_instance_of(Simplenet::Client::AnycastIp) end it "creates a new instance of interface" do expect(@client.interfaces).to be_instance_of(Simplenet::Client::Interface) end it "creates a new instance of switch" do expect(@client.switches).to be_instance_of(Simplenet::Client::Switch) end it "creates a new instance of policy" do expect(@client.policies("firewall", "subnet")).to be_instance_of(Simplenet::Client::Policy) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simplenet-client-0.2.0 | ./spec/simplenet/client/connection_spec.rb |