tests/hp/requests/storage/container_tests.rb in fog-1.17.0 vs tests/hp/requests/storage/container_tests.rb in fog-1.18.0
- old
+ new
@@ -12,10 +12,14 @@
tests("#put_container('fogcontainertests')").succeeds do
Fog::Storage[:hp].put_container('fogcontainertests')
end
+ tests("#post_container('fogcontainertests', {'X-Container-Meta-Foo' => 'foometa'})").succeeds do
+ Fog::Storage[:hp].post_container('fogcontainertests', {'X-Container-Meta-Foo' => 'foometa'})
+ end
+
tests("#get_container('fogcontainertests')").formats(@container_format) do
Fog::Storage[:hp].get_container('fogcontainertests').body
end
tests("#get_containers").formats(@containers_format) do
@@ -55,10 +59,14 @@
tests("#get_container('fognoncontainer')").raises(Fog::Storage::HP::NotFound) do
Fog::Storage[:hp].get_container('fognoncontainer')
end
+ tests("#post_container('fognoncontainer', {})").raises(Fog::Storage::HP::NotFound) do
+ Fog::Storage[:hp].post_container('fognoncontainer', {})
+ end
+
tests("#head_container('fognoncontainer')").raises(Fog::Storage::HP::NotFound) do
Fog::Storage[:hp].head_container('fognoncontainer')
end
tests("#delete_container('fognoncontainer')").raises(Fog::Storage::HP::NotFound) do
@@ -73,6 +81,6 @@
@file.destroy
@container.destroy
end
-end
\ No newline at end of file
+end