Sha256: 5d222668253f3648525e414e73a1359cfc979af3cd249da73bf74109c2dd8de7

Contents?: true

Size: 759 Bytes

Versions: 13

Compression:

Stored size: 759 Bytes

Contents

require 'hybrid_platforms_conductor/hpc_plugins/provisioner/proxmox'

describe HybridPlatformsConductor::HpcPlugins::Provisioner::Proxmox do

  context 'checking containers state' do

    it 'gets the status of a missing instance' do
      with_test_proxmox_platform do |instance|
        expect(instance.state).to eq :missing
      end
    end

    it 'gets the status of a created instance' do
      with_test_proxmox_platform do |instance|
        mock_proxmox_calls_with [
          # 1 - The info on existing containers
          mock_proxmox_to_get_nodes_info,
          # 2 - The status of the container
          mock_proxmox_to_status_node
        ]
        instance.create
        expect(instance.state).to eq :created
      end
    end

  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-32.8.2 spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb
hybrid_platforms_conductor-32.8.1 spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb
hybrid_platforms_conductor-32.8.0 spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb
hybrid_platforms_conductor-32.7.3 spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb
hybrid_platforms_conductor-32.7.2 spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb
hybrid_platforms_conductor-32.7.1 spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb
hybrid_platforms_conductor-32.7.0 spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb
hybrid_platforms_conductor-32.6.0 spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb
hybrid_platforms_conductor-32.5.0 spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb
hybrid_platforms_conductor-32.4.2 spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb
hybrid_platforms_conductor-32.4.1 spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb
hybrid_platforms_conductor-32.4.0 spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb
hybrid_platforms_conductor-32.3.6 spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb