mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[vcloud] mark tests pending in mocked mode
This commit is contained in:
parent
46527e3c81
commit
12481b8c52
10 changed files with 23 additions and 20 deletions
|
@ -1,8 +1,9 @@
|
|||
require "#{File.dirname(__FILE__)}/conn_helper.rb"
|
||||
|
||||
require 'fog/vcloud/models/compute/networks'
|
||||
|
||||
Shindo.tests("Vcloud::Compute | network", ['vcloud']) do
|
||||
|
||||
pending if Fog.mocking?
|
||||
|
||||
connection = Fog::Vcloud::Compute.new(:vcloud_host => 'vcloud.example.com', :vcloud_username => 'username', :vcloud_password => 'password')
|
||||
tests("an org network") do
|
||||
instance = Fog::Vcloud::Compute::Networks.new(
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
require "#{File.dirname(__FILE__)}/conn_helper.rb"
|
||||
|
||||
require 'fog/vcloud/models/compute/networks'
|
||||
|
||||
Shindo.tests("Vcloud::Compute | networks", ['vcloud']) do
|
||||
|
||||
pending if Fog.mocking?
|
||||
|
||||
tests("from an org perspective") do
|
||||
instance = Fog::Vcloud::Compute::Networks.new(
|
||||
:connection => Fog::Vcloud::Compute.new(:vcloud_host => 'vcloud.example.com', :vcloud_username => 'username', :vcloud_password => 'password'),
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require "#{File.dirname(__FILE__)}/conn_helper.rb"
|
||||
|
||||
Shindo.tests("Vcloud::Compute | organization", ['vcloud']) do
|
||||
|
||||
pending if Fog.mocking?
|
||||
|
||||
instance = Fog::Vcloud::Compute.new(:vcloud_host => 'vcloud.example.com', :vcloud_username => 'username', :vcloud_password => 'password').organizations.first
|
||||
instance.reload
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
require "#{File.dirname(__FILE__)}/conn_helper.rb"
|
||||
|
||||
require 'fog/vcloud/models/compute/organizations'
|
||||
|
||||
Shindo.tests("Vcloud::Compute | organizations", ['vcloud']) do
|
||||
|
||||
pending if Fog.mocking?
|
||||
|
||||
instance = Fog::Vcloud::Compute.new(:vcloud_host => 'vcloud.example.com', :vcloud_username => 'username', :vcloud_password => 'password').organizations
|
||||
|
||||
tests("collection") do
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
require "#{File.dirname(__FILE__)}/conn_helper.rb"
|
||||
|
||||
require 'fog/vcloud/models/compute/servers'
|
||||
|
||||
Shindo.tests("Vcloud::Compute | server", ['vcloud']) do
|
||||
|
||||
pending if Fog.mocking?
|
||||
|
||||
instance = Fog::Vcloud::Compute::Servers.new(
|
||||
:connection => Fog::Vcloud::Compute.new(:vcloud_host => 'vcloud.example.com', :vcloud_username => 'username', :vcloud_password => 'password'),
|
||||
:href => "https://vcloud.example.com/api/v1.0/vApp/vapp-1"
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
require "#{File.dirname(__FILE__)}/conn_helper.rb"
|
||||
|
||||
require 'fog/vcloud/models/compute/servers'
|
||||
|
||||
Shindo.tests("Vcloud::Compute | servers", ['vcloud']) do
|
||||
|
||||
pending if Fog.mocking?
|
||||
|
||||
instance = Fog::Vcloud::Compute::Servers.new(
|
||||
:connection => Fog::Vcloud::Compute.new(:vcloud_host => 'vcloud.example.com', :vcloud_username => 'username', :vcloud_password => 'password'),
|
||||
:href => "https://vcloud.example.com/api/v1.0/vApp/vapp-1"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
require "#{File.dirname(__FILE__)}/conn_helper.rb"
|
||||
|
||||
require 'fog/vcloud/models/compute/vapps'
|
||||
require 'fog/vcloud/models/compute/vapp'
|
||||
|
||||
Shindo.tests("Vcloud::Compute | vapp", ['vcloud']) do
|
||||
|
||||
pending if Fog.mocking?
|
||||
|
||||
instance = Fog::Vcloud::Compute::Vapps.new(
|
||||
:connection => Fog::Vcloud::Compute.new(:vcloud_host => 'vcloud.example.com', :vcloud_username => 'username', :vcloud_password => 'password'),
|
||||
:href => "https://vcloud.example.com/api/v1.0/vdc/1"
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
require "#{File.dirname(__FILE__)}/conn_helper.rb"
|
||||
|
||||
require 'fog/vcloud/models/compute/vapps'
|
||||
|
||||
Shindo.tests("Vcloud::Compute | vapps", ['vcloud']) do
|
||||
|
||||
pending if Fog.mocking?
|
||||
|
||||
instance = Fog::Vcloud::Compute::Vapps.new(
|
||||
:connection => Fog::Vcloud::Compute.new(:vcloud_host => 'vcloud.example.com', :vcloud_username => 'username', :vcloud_password => 'password'),
|
||||
:href => "https://vcloud.example.com/api/v1.0/vdc/1"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
require "#{File.dirname(__FILE__)}/conn_helper.rb"
|
||||
|
||||
require 'fog/vcloud/models/compute/vdcs'
|
||||
require 'fog/vcloud/models/compute/vdc'
|
||||
|
||||
Shindo.tests("Vcloud::Compute | vdc", ['vcloud']) do
|
||||
|
||||
pending if Fog.mocking?
|
||||
|
||||
instance = Fog::Vcloud::Compute::Vdcs.new(
|
||||
:connection => Fog::Vcloud::Compute.new(:vcloud_host => 'vcloud.example.com', :vcloud_username => 'username', :vcloud_password => 'password'),
|
||||
:href => "https://vcloud.example.com/api/v1.0/org/1"
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
require "#{File.dirname(__FILE__)}/conn_helper.rb"
|
||||
|
||||
require 'fog/vcloud/models/compute/vdcs'
|
||||
|
||||
Shindo.tests("Vcloud::Compute | vdcs", ['vcloud']) do
|
||||
|
||||
pending if Fog.mocking?
|
||||
|
||||
instance = Fog::Vcloud::Compute::Vdcs.new(
|
||||
:connection => Fog::Vcloud::Compute.new(:vcloud_host => 'vcloud.example.com', :vcloud_username => 'username', :vcloud_password => 'password'),
|
||||
:href => "https://vcloud.example.com/api/v1.0/org/1"
|
||||
|
|
Loading…
Add table
Reference in a new issue