Sha256: 5f220c8f192d510bd3ec50445b830c90e02034b17f729ba498144f20ba9b1724

Contents?: true

Size: 1.13 KB

Versions: 19

Compression:

Stored size: 1.13 KB

Contents

Shindo.tests("Fog::Openstack[:planning] | plan", ['openstack']) do
  @instance = Fog::Openstack[:planning].plans.first

  tests('success') do
    tests('#add_role').succeeds do
      @role = Fog::Openstack[:planning].list_roles.body.first
      @instance.add_role(@role['uuid'])
    end

    tests('#templates').succeeds do
      @instance.templates
    end

    tests('#master_template').succeeds do
      @instance.master_template
    end

    tests('#environment').succeeds do
      @instance.environment
    end

    tests('#provider_resource_templates').succeeds do
      @instance.provider_resource_templates
    end

    tests('#patch').succeeds do
      parameter =  @instance.parameters.first
      @instance.patch(:parameters => [{"name" => parameter['name'], "value" => 'new_value'}])
    end

    tests('#remove_role').succeeds do
      @instance.remove_role(@role['uuid'])
    end

    tests('#save').succeeds do
      @instance.save
    end

    tests('#update').succeeds do
      @instance.update
    end

    tests('#destroy').succeeds do
      @instance.destroy
    end

    tests('#create').succeeds do
      @instance.create
    end
  end
end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
fog-openstack-0.1.7 tests/openstack/models/planning/plan_tests.rb
fog-openstack-0.1.6 tests/openstack/models/planning/plan_tests.rb
fog-openstack-0.1.5 tests/openstack/models/planning/plan_tests.rb
fog-openstack-0.1.4 tests/openstack/models/planning/plan_tests.rb
fog-openstack-0.1.3 tests/openstack/models/planning/plan_tests.rb
fog-openstack-0.1.2 tests/openstack/models/planning/plan_tests.rb
fog-openstack-0.1.1 tests/openstack/models/planning/plan_tests.rb
fog-openstack-0.1.0 tests/openstack/models/planning/plan_tests.rb
fog-1.37.0 tests/openstack/models/planning/plan_tests.rb
fog-1.36.0 tests/openstack/models/planning/plan_tests.rb
fog-1.35.0 tests/openstack/models/planning/plan_tests.rb
fog-2.0.0.pre.0 tests/openstack/models/planning/plan_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/openstack/models/planning/plan_tests.rb
fog-1.34.0 tests/openstack/models/planning/plan_tests.rb
fog-1.33.0 tests/openstack/models/planning/plan_tests.rb
fog-1.32.0 tests/openstack/models/planning/plan_tests.rb
fog-1.31.0 tests/openstack/models/planning/plan_tests.rb
fog-1.30.0 tests/openstack/models/planning/plan_tests.rb
fog-1.29.0 tests/openstack/models/planning/plan_tests.rb