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