summaryrefslogtreecommitdiff
path: root/addons/document_webdav/test/webdav_test1.yml
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-11-03 13:25:34 +0200
committerP. Christeas <p_christ@hol.gr>2010-11-03 13:25:34 +0200
commitdeffd9703d2a42b079db87dfff3633a63d268a9b (patch)
treea7e214b911ee454745e2b03e93d3078e51916b88 /addons/document_webdav/test/webdav_test1.yml
parent872f6be3408fb4b7f86dd443f0a28194d83554fb (diff)
doc webdav: support for GET and PUT at yaml tests
bzr revid: p_christ@hol.gr-20101103112534-9xyjp4xup0pjoxwm
Diffstat (limited to 'addons/document_webdav/test/webdav_test1.yml')
-rw-r--r--addons/document_webdav/test/webdav_test1.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/addons/document_webdav/test/webdav_test1.yml b/addons/document_webdav/test/webdav_test1.yml
index c9384a5c324..a64c2efae4c 100644
--- a/addons/document_webdav/test/webdav_test1.yml
+++ b/addons/document_webdav/test/webdav_test1.yml
@@ -37,3 +37,23 @@
res = dc.gd_lsl(path=cr.dbname+'/Documents/')
for lin in res:
print "%(type)s\t%(uid)s\t%(gid)s\t%(size)s\t%(mtime)s\t%(name)s" % lin
+-
+ I will put a file to the server
+-
+ !python {model: ir.attachment}: |
+ from document_webdav import test_davclient as te
+ import addons
+ dc = te.DAVClient()
+ dc.get_creds(self, cr, uid)
+ tdp = addons.get_module_resource('document_webdav', 'test_davclient.py')
+ res = dc.gd_put(path=cr.dbname+'/Documents/test_davclient.py', srcpath=tdp)
+-
+ I will try to get the file from the root
+-
+ !python {model: ir.attachment}: |
+ from document_webdav import test_davclient as te
+ import addons
+ dc = te.DAVClient()
+ dc.get_creds(self, cr, uid)
+ tdp = addons.get_module_resource('document_webdav', 'test_davclient.py')
+ res = dc.gd_get(path=cr.dbname+'/Documents/test_davclient.py', compare=tdp)