Sha256: e2b32200898cbd39de94fc3cce6f6ea1d03f40f8f984b695b9c365e8ed0f2b99

Contents?: true

Size: 810 Bytes

Versions: 14

Compression:

Stored size: 810 Bytes

Contents

require File.expand_path '../../test_helper', __dir__

# Test class for Vault Model
class TestVault < Minitest::Test
  def setup
    @service = Fog::KeyVault::AzureRM.new(credentials)
    @vault = Fog::KeyVault::AzureRM::Vault.new
  end

  def test_model_attributes
    attributes = [
      :name,
      :id,
      :resource_group,
      :location,
      :vault_uri,
      :tenant_id,
      :sku_family,
      :sku_name,
      :access_policies,
      :enabled_for_deployment,
      :enabled_for_disk_encryption,
      :enabled_for_template_deployment
    ]
    attributes.each do |attribute|
      assert_respond_to @vault, attribute
    end
  end

  def test_model_methods
    methods = [
      :save,
      :destroy
    ]
    methods.each do |method|
      assert_respond_to @vault, method
    end
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
fog-azure-rm-temp-0.0.1 test/models/key_vault/test_vault.rb
fog-azure-rm-0.3.2 test/models/key_vault/test_vault.rb
fog-azure-rm-downgraded-0.3.1 test/models/key_vault/test_vault.rb
fog-azure-rm-0.3.1 test/models/key_vault/test_vault.rb
fog-azure-rm-downgraded-0.3.0 test/models/key_vault/test_vault.rb
fog-azure-rm-0.3.0 test/models/key_vault/test_vault.rb
fog-azure-rm-0.2.7 test/models/key_vault/test_vault.rb
fog-azure-rm-0.2.6 test/models/key_vault/test_vault.rb
fog-azure-rm-0.2.5 test/models/key_vault/test_vault.rb
fog-azure-rm-0.2.4 test/models/key_vault/test_vault.rb
fog-azure-rm-0.2.3 test/models/key_vault/test_vault.rb
fog-azure-rm-0.2.2 test/models/key_vault/test_vault.rb
fog-azure-rm-0.2.1 test/models/key_vault/test_vault.rb
fog-azure-rm-0.2.0 test/models/key_vault/test_vault.rb