Example #1
0
 def put(url, token, parsed, conn):
     conn.request('PUT', '%s/%s' % (parsed.path,
                                    shared_container), '',
                  {'X-Auth-Token': token,
                  'X-Container-Read': chase_test_user[2],
                  'X-Container-Write': chase_test_user[2]})
     return check_response(conn)
Example #2
0
 def copy3(url, token, parsed, conn):
     conn.request('COPY', '%s/%s/%s' % (parsed.path,
                                        self.container,
                                        self.obj),
                  '', {'X-Auth-Token': token,
                       'Destination': '%s/%s' % (shared_container,
                                       'private_object')})
     return check_response(conn)
Example #3
0
 def copy2(url, token, parsed, conn):
     conn.request('COPY', '%s/%s/%s' % (parsed.path,
                                        shared_container,
                                        'obj1'),
                  '', {'X-Auth-Token': token,
                       'Destination': '%s/%s' % (shared_container,
                                       'obj1')})
     return check_response(conn)
Example #4
0
 def copy(url, token, parsed, conn):
     conn.request('PUT', '%s/%s/%s' % (parsed.path,
                                       shared_container,
                                       'private_object'),
                  '', {'X-Auth-Token': token,
                       'Content-Length': '0',
                       'X-Copy-From': '%s/%s' % (self.container,
                                                 self.obj)})
     return check_response(conn)
Example #5
0
 def put(url, token, parsed, conn):
     conn.request('PUT', '%s/%s' % (parsed.path, dest), '',
                  {'X-Auth-Token': token,
                   'Content-Length': '0',
                   'X-Copy-From': source})
     return check_response(conn)
Example #6
0
 def delete(url, token, parsed, conn, objnum):
     conn.request('DELETE', '%s/%s/segments1/%s' % (parsed.path,
         self.container, str(objnum)), '', {'X-Auth-Token': token})
     return check_response(conn)
Example #7
0
 def delete(url, token, parsed, conn):
     conn.request('DELETE', parsed.path + '/' + self.container, '',
                  {'X-Auth-Token': token})
     return check_response(conn)
Example #8
0
 def put(url, token, parsed, conn):
     conn.request('PUT', '%s/%s/manifest' % (parsed.path,
         self.container), '', {'X-Auth-Token': token,
         'X-Object-Manifest': '%s/segments3/' % acontainer,
         'Content-Length': '0'})
     return check_response(conn)
Example #9
0
 def get(url, token, parsed, conn):
     conn.request('GET', '%s/%s/manifest' % (parsed.path,
         self.container), '', {'X-Auth-Token': token})
     return check_response(conn)
Example #10
0
 def put(url, token, parsed, conn):
     conn.request('PUT', '%s/%s/%s' % (parsed.path, self.container,
         self.obj), 'test', {'X-Auth-Token': token})
     return check_response(conn)
Example #11
0
 def put(url, token, parsed, conn):
     conn.request('PUT', parsed.path + '/' + acontainer, '',
                  {'X-Auth-Token': token})
     return check_response(conn)
Example #12
0
 def get(url, token, parsed, conn):
     conn.request('GET', parsed.path, '', {'X-Auth-Token': token})
     return check_response(conn)
Example #13
0
 def post(url, token, parsed, conn, name, value):
     conn.request('POST', parsed.path, '',
                  {'X-Auth-Token': token, name: value})
     return check_response(conn)
Example #14
0
 def post(url, token, parsed, conn, extra_headers):
     headers = {'X-Auth-Token': token}
     headers.update(extra_headers)
     conn.request('POST', parsed.path, '', headers)
     return check_response(conn)
Example #15
0
 def post(url, token, parsed, conn, value):
     conn.request('POST', parsed.path, '',
         {'X-Auth-Token': token, 'X-Account-Meta-Test': value})
     return check_response(conn)
Example #16
0
 def head(url, token, parsed, conn):
     conn.request('HEAD', parsed.path, '', {'X-Auth-Token': token})
     return check_response(conn)
Example #17
0
 def post(url, token, parsed, conn, name, value):
     conn.request('POST', parsed.path, '', {
         'X-Auth-Token': token,
         name: value
     })
     return check_response(conn)
Example #18
0
 def post(url, token, parsed, conn, value):
     conn.request('POST', parsed.path, '', {
         'X-Auth-Token': token,
         'X-Account-Meta-Test': value
     })
     return check_response(conn)
Example #19
0
 def put(url, token, parsed, conn, name, value):
     conn.request('PUT', parsed.path + '/' + name, '',
         {'X-Auth-Token': token, 'X-Container-Meta-Test': value})
     return check_response(conn)
Example #20
0
 def head(url, token, parsed, conn):
     conn.request('HEAD', parsed.path, '', {'X-Auth-Token': token})
     return check_response(conn)
Example #21
0
 def get3(url, token, parsed, conn):
     conn.request('GET', first_account[0] + '/' + self.name, '',
                  {'X-Auth-Token': token})
     return check_response(conn)
Example #22
0
 def post(url, token, parsed, conn, extra_headers):
     headers = {'X-Auth-Token': token}
     headers.update(extra_headers)
     conn.request('POST', parsed.path, '', headers)
     return check_response(conn)
Example #23
0
 def post(url, token, parsed, conn):
     conn.request('POST', '%s/%s' % (parsed.path, self.container),
         '', {'X-Auth-Token': token, 'X-Container-Read':
         chase_test_user[2]})
     return check_response(conn)
Example #24
0
 def copy(url, token, parsed, conn):
     conn.request('COPY', '%s/%s' % (parsed.path, source), '',
                  {'X-Auth-Token': token,
                   'Destination': dest})
     return check_response(conn)
Example #25
0
 def put(url, token, parsed, conn, objnum):
     conn.request('PUT', '%s/%s/segments3/%s' % (parsed.path,
         acontainer, str(objnum)), segments3[objnum],
         {'X-Auth-Token': token})
     return check_response(conn)
Example #26
0
 def get(url, token, parsed, conn):
     conn.request('GET',
                  '%s/%s/%s' % (parsed.path, self.container, self.obj))
     return check_response(conn)
Example #27
0
 def post(url, token, parsed, conn):
     conn.request('POST', '%s/%s' % (parsed.path, acontainer),
         '', {'X-Auth-Token': token, 'X-Container-Read':
         chase_test_user[2]})
     return check_response(conn)
Example #28
0
 def post(url, token, parsed, conn):
     conn.request('POST', parsed.path + '/' + self.container, '',
                  {'X-Auth-Token': token, 'X-Container-Read': ''})
     return check_response(conn)
Example #29
0
 def delete(url, token, parsed, conn, objnum):
     conn.request('DELETE', '%s/%s/manifest' % (parsed.path,
         self.container), '', {'X-Auth-Token': token})
     return check_response(conn)
Example #30
0
 def delete(url, token, parsed, conn, name):
     conn.request('DELETE', parsed.path + '/' + name, '',
                  {'X-Auth-Token': token})
     return check_response(conn)
Example #31
0
 def delete(url, token, parsed, conn):
     conn.request('DELETE', '%s/%s' % (parsed.path, acontainer), '',
         {'X-Auth-Token': token})
     return check_response(conn)
Example #32
0
 def get1(url, token, parsed, conn):
     first_account[0] = parsed.path
     conn.request('HEAD', parsed.path + '/' + self.name, '',
                  {'X-Auth-Token': token})
     return check_response(conn)
Example #33
0
 def get_source(url, token, parsed, conn):
     conn.request('GET',
                  '%s/%s' % (parsed.path, source),
                  '', {'X-Auth-Token': token})
     return check_response(conn)
Example #34
0
 def put3(url, token, parsed, conn):
     conn.request('PUT', first_account[0] + '/' + self.name + '/object',
                  'test object', {'X-Auth-Token': token})
     return check_response(conn)
Example #35
0
 def get(url, token, parsed, conn, name):
     conn.request('GET', parsed.path + '/' + name, '',
                  {'X-Auth-Token': token})
     return check_response(conn)
Example #36
0
 def post(url, token, parsed, conn):
     conn.request('POST', parsed.path + '/' + self.name, '',
                  {'X-Auth-Token': token,
                   'X-Container-Write': chase_test_user[2]})
     return check_response(conn)
Example #37
0
 def post(url, token, parsed, conn, value):
     conn.request('POST', parsed.path + '/' + self.name, '', {
         'X-Auth-Token': token,
         'X-Container-Meta-Test': value
     })
     return check_response(conn)
Example #38
0
 def delete(url, token, parsed, conn, obj):
     conn.request('DELETE',
                  '/'.join([parsed.path, self.name, obj['name']]), '',
                  {'X-Auth-Token': token})
     return check_response(conn)