Sha256: 6784c7862224073f29bde2ca16a8d0904ae3ee099557a90bc129d4cde039cfec
Contents?: true
Size: 988 Bytes
Versions: 2
Compression:
Stored size: 988 Bytes
Contents
require "integration/test_helper" require "azure/core/utils/storage_service_properties" describe "Manage Blob Service Properties" do it "should be able to set blob service properties" do properties = { "Logging" => { "Version" => "1.0", "Delete" => "true", "Read" => "true", "Write" => "true", "RetentionPolicy" => { "Enabled" => true, "Days" => 7 } }, "Metrics"=> { "Version" => "1.0", "Enabled" => "true", "IncludeAPIs" => "false", "RetentionPolicy" => { "Enabled" => true, "Days" => 7 } } } Azure::Blobs.set_service_properties(properties).must_equal true end it "should be able to get blob service properties" do response = Azure::Blobs.get_service_properties response.must_be :kind_of?, Hash response["Metrics"].must_be :kind_of?, Hash response["Metrics"]["Version"].must_equal "1.0" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
azure-0.1.1 | test/integration/blobs/manage_blob_service_properties_test.rb |
azure-0.1.0 | test/integration/blobs/manage_blob_service_properties_test.rb |