Sha256: 1656c262bebad1db61bf5bd726004a6c2cb1ead9ba57aad24a9cfd91d380d8d4

Contents?: true

Size: 809 Bytes

Versions: 28

Compression:

Stored size: 809 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 = key_vault(@service)
  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,
      :tags
    ]
    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

28 entries across 28 versions & 3 rubygems

Version Path
fog-azure-rm-0.6.0 test/models/key_vault/test_vault.rb
fog-azure-rm-0.5.3 test/models/key_vault/test_vault.rb
fog-azure-rm-0.5.2 test/models/key_vault/test_vault.rb
far-gem-0.5.6 test/models/key_vault/test_vault.rb
fog-azure-rm-0.5.1 test/models/key_vault/test_vault.rb
far-gem-0.5.5 test/models/key_vault/test_vault.rb
fog-azure-rm-0.5.0 test/models/key_vault/test_vault.rb
far-gem-0.5.4 test/models/key_vault/test_vault.rb
far-gem-0.5.3 test/models/key_vault/test_vault.rb
fog-azure-rm-0.4.9 test/models/key_vault/test_vault.rb
far-gem-0.5.2 test/models/key_vault/test_vault.rb
fog-azure-rm-0.4.8 test/models/key_vault/test_vault.rb
fog-azure-rm-0.4.7 test/models/key_vault/test_vault.rb
fog-azure-rm-0.4.6 test/models/key_vault/test_vault.rb
fog-azure-rm-0.4.5 test/models/key_vault/test_vault.rb
fog-azure-rm-temp-0.0.5 test/models/key_vault/test_vault.rb
fog-azure-rm-0.4.4 test/models/key_vault/test_vault.rb
fog-azure-rm-0.4.3 test/models/key_vault/test_vault.rb
far-gem-0.5.1 test/models/key_vault/test_vault.rb
fog-azure-rm-0.4.2 test/models/key_vault/test_vault.rb