Home
last modified time | relevance | path

Searched refs:RunGsUtil (Results 1 – 25 of 30) sorted by relevance

12

/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/
Dtest_defacl.py50 json_text = self.RunGsUtil(self._defacl_get_prefix +
54 self.RunGsUtil(self._defacl_ch_prefix +
56 json_text2 = self.RunGsUtil(self._defacl_get_prefix +
60 self.RunGsUtil(self._defacl_ch_prefix +
62 json_text3 = self.RunGsUtil(self._defacl_get_prefix +
66 stderr = self.RunGsUtil(self._defacl_ch_prefix +
78 self.RunGsUtil(self._defacl_set_prefix + ['private', suri(bucket)])
79 json_text = self.RunGsUtil(self._defacl_get_prefix +
86 self.RunGsUtil(self._defacl_ch_prefix +
88 json_text2 = self.RunGsUtil(self._defacl_get_prefix +
[all …]
Dtest_ls.py39 self.RunGsUtil(['ls'])
50 stdout = self.RunGsUtil(['ls', '-b', suri(bucket_uri)],
61 stdout = self.RunGsUtil(['ls', '-Lb', suri(bucket_uri)],
73 stdout = self.RunGsUtil(['ls', '-lb', suri(bucket_uri)],
100 stdout = self.RunGsUtil(['ls', '-b', wildcard], return_stdout=True)
108 stderr = self.RunGsUtil(
113 stderr = self.RunGsUtil(
118 stderr = self.RunGsUtil(
126 stderr = self.RunGsUtil(['ls', suri(bucket_uri, 'missing')],
136 stdout = self.RunGsUtil(['ls', suri(bucket_uri)], return_stdout=True)
[all …]
Dtest_acl.py62 stderr = self.RunGsUtil(self._set_acl_prefix + [inpath, obj_uri],
70 stderr = self.RunGsUtil(self._set_acl_prefix + [inpath, bucket_uri],
78 stderr = self.RunGsUtil(self._set_acl_prefix + [inpath, obj_uri],
87 stderr = self.RunGsUtil(self._set_acl_prefix + [inpath, bucket_uri],
95 acl_string = self.RunGsUtil(self._get_acl_prefix + [obj_uri],
98 self.RunGsUtil(self._set_acl_prefix + ['public-read', obj_uri])
99 acl_string2 = self.RunGsUtil(self._get_acl_prefix + [obj_uri],
101 self.RunGsUtil(self._set_acl_prefix + [inpath, obj_uri])
102 acl_string3 = self.RunGsUtil(self._get_acl_prefix + [obj_uri],
111 acl_string = self.RunGsUtil(self._get_acl_prefix + [obj_uri],
[all …]
Dtest_setmeta.py35 self.RunGsUtil(['-h', 'x-%s-meta-xyz:abc' % self.provider_custom_meta,
40 stdout = self.RunGsUtil(['ls', '-L', objuri], return_stdout=True)
49 self.RunGsUtil(['-h', 'x-%s-meta-xyz:abc' % self.provider_custom_meta,
51 self.RunGsUtil(['setmeta', '-h', 'Content-Type:text/html', '-h',
56 stdout = self.RunGsUtil(['ls', '-L', objuri], return_stdout=True)
67 stderr = self.RunGsUtil(
78 self.RunGsUtil(
82 stdout = self.RunGsUtil(['ls', '-L', suri(object_uri)], return_stdout=True)
91 stderr = self.RunGsUtil(
97 self.RunGsUtil(
[all …]
Dtest_cors.py93 stdout = self.RunGsUtil(self._get_cmd_prefix + [suri(bucket_uri)],
100 self.RunGsUtil(self._set_cmd_prefix + [fpath, suri(bucket_uri)])
101 stdout = self.RunGsUtil(self._get_cmd_prefix + [suri(bucket_uri)],
108 self.RunGsUtil(self._set_cmd_prefix + [fpath, suri(bucket_uri)])
109 stdout = self.RunGsUtil(self._get_cmd_prefix + [suri(bucket_uri)],
116 self.RunGsUtil(self._set_cmd_prefix + [fpath, suri(bucket_uri)])
117 stdout = self.RunGsUtil(self._get_cmd_prefix + [suri(bucket_uri)],
124 stderr = self.RunGsUtil(self._set_cmd_prefix + [fpath, suri(bucket_uri)],
131 stderr = self.RunGsUtil(self._set_cmd_prefix + [fpath, suri(bucket_uri)],
140 self.RunGsUtil(self._set_cmd_prefix + [fpath, suri(bucket_uri)])
[all …]
Dtest_cat.py31 stderr = self.RunGsUtil(['cat', '-r -', suri(key_uri)],
34 stderr = self.RunGsUtil(['cat', '-r a-b', suri(key_uri)],
37 stderr = self.RunGsUtil(['cat', '-r 1-2-3', suri(key_uri)],
40 stderr = self.RunGsUtil(['cat', '-r 1.7-3', suri(key_uri)],
45 stdout = self.RunGsUtil(['cat', '-r 1-3', suri(key_uri)],
48 stdout = self.RunGsUtil(['cat', '-r 8-', suri(key_uri)],
51 stdout = self.RunGsUtil(['cat', '-r 0-0', suri(key_uri)],
54 stdout = self.RunGsUtil(['cat', '-r -3', suri(key_uri)],
65 stdout = self.RunGsUtil(['cat', suri(uri1)], return_stdout=True)
69 stdout = self.RunGsUtil(['cat', uri1.version_specific_uri],
[all …]
Dtest_rsync.py82 return self.RunGsUtil(['ls', suri(bucket_url_string, '**')],
92 self.RunGsUtil(['rsync', suri(obj1), suri(bucket_uri)], expected_status=1)
94 self.RunGsUtil(['rsync', suri(bucket_uri), suri(obj1)], expected_status=1)
96 self.RunGsUtil(['rsync', suri(bucket_uri), self.nonexistent_bucket_name],
99 self.RunGsUtil(['rsync', suri(obj1), tmpdir], expected_status=1)
101 self.RunGsUtil(['rsync', tmpdir, suri(obj1)], expected_status=1)
103 self.RunGsUtil(['rsync', tmpdir, suri(obj1), self.nonexistent_bucket_name],
139 self.RunGsUtil(['rsync', suri(bucket1_uri), suri(bucket2_uri)])
152 self.assertEquals('.obj2', self.RunGsUtil(
154 self.assertEquals('.obj2', self.RunGsUtil(
[all …]
Dtest_bucketconfig.py61 self.RunGsUtil(self._set_cors_command + [cors_path, suri(bucket_uri)])
62 cors_out = self.RunGsUtil(self._get_cors_command + [suri(bucket_uri)],
66 self.RunGsUtil(self._set_lifecycle_command + [lifecycle_path,
68 cors_out = self.RunGsUtil(self._get_cors_command + [suri(bucket_uri)],
70 lifecycle_out = self.RunGsUtil(self._get_lifecycle_command +
75 self.RunGsUtil(
78 cors_out = self.RunGsUtil(self._get_cors_command + [suri(bucket_uri)],
80 lifecycle_out = self.RunGsUtil(self._get_lifecycle_command +
82 acl_out = self.RunGsUtil(self._get_acl_command + [suri(bucket_uri)],
88 self.RunGsUtil(
[all …]
Dtest_lifecycle.py75 stdout = self.RunGsUtil(['lifecycle', 'get', suri(bucket_uri)],
82 self.RunGsUtil(['lifecycle', 'set', fpath, suri(bucket_uri)])
83 stdout = self.RunGsUtil(['lifecycle', 'get', suri(bucket_uri)],
90 self.RunGsUtil(['lifecycle', 'set', fpath, suri(bucket_uri)])
91 stdout = self.RunGsUtil(['lifecycle', 'get', suri(bucket_uri)],
98 self.RunGsUtil(['lifecycle', 'set', fpath, suri(bucket_uri)])
99 stdout = self.RunGsUtil(['lifecycle', 'get', suri(bucket_uri)],
106 self.RunGsUtil(['lifecycle', 'set', fpath, suri(bucket_uri)])
107 stdout = self.RunGsUtil(['lifecycle', 'get', suri(bucket_uri)],
114 stderr = self.RunGsUtil(['lifecycle', 'set', fpath, suri(bucket_uri)],
[all …]
Dtest_cp.py268 stderr = self.RunGsUtil(['cp', '-n', fpath, suri(key_uri)],
272 stderr = self.RunGsUtil(['cp', '-n', suri(key_uri), fpath],
282 stderr = self.RunGsUtil(['cp', fpath, invalid_bucket_uri],
290 stderr = self.RunGsUtil(['cp', suri(key_uri), suri(bucket2_uri)],
295 stderr = self.RunGsUtil(['cp', '-n', suri(key_uri), suri(bucket2_uri)],
303 stderr = self.RunGsUtil(['cp', '-', '%s' % suri(bucket_uri, 'foo')],
311 stderr = self.RunGsUtil(['cp', '-', '-', suri(bucket_uri)],
324 self.RunGsUtil(['cp', self._get_test_file('test.mp3'), dsturi])
329 stdout = self.RunGsUtil(['ls', '-L', dsturi], return_stdout=True)
338 self.RunGsUtil(['cp', self._get_test_file('test.gif'), dsturi])
[all …]
Dtest_web.py39 self.RunGsUtil(
41 stdout = self.RunGsUtil(
47 self.RunGsUtil(self._set_web_cmd + ['-m', 'main', suri(bucket_uri)])
48 stdout = self.RunGsUtil(
54 self.RunGsUtil(self._set_web_cmd + ['-e', '404', suri(bucket_uri)])
55 stdout = self.RunGsUtil(
61 self.RunGsUtil(self._set_web_cmd + [suri(bucket_uri)])
62 stdout = self.RunGsUtil(
69 stderr = self.RunGsUtil(self._get_web_cmd, return_stderr=True,
74 stderr = self.RunGsUtil(self._set_web_cmd, return_stderr=True,
[all …]
Dtest_versioning.py32 stdout = self.RunGsUtil(
38 self.RunGsUtil(self._set_ver_cmd + ['on', suri(bucket_uri)])
43 stdout = self.RunGsUtil(
50 self.RunGsUtil(self._set_ver_cmd + ['on', suri(bucket_uri)])
55 stdout = self.RunGsUtil(
60 self.RunGsUtil(self._set_ver_cmd + ['off', suri(bucket_uri)])
65 stdout = self.RunGsUtil(
73 stderr = self.RunGsUtil(self._set_ver_cmd, return_stderr=True,
78 stderr = self.RunGsUtil(self._get_ver_cmd, return_stderr=True,
83 stderr = self.RunGsUtil(['versioning'], return_stderr=True,
Dtest_stat.py30 stdout = self.RunGsUtil(['stat', suri(object_uri)], return_stdout=True)
59 stdout = self.RunGsUtil(['-q', 'stat', suri(object_uri)],
62 stdout = self.RunGsUtil(['-q', 'stat', suri(object_uri, 'junk')],
67 self.RunGsUtil(['-q', 'stat', 'gs://'], expected_status=1)
68 self.RunGsUtil(['-q', 'stat', 'gs://bucket/object'], expected_status=1)
69 self.RunGsUtil(['-q', 'stat', 'file://tmp/abc'], expected_status=1)
75 stdout, stderr = self.RunGsUtil(
85 stdout, stderr = self.RunGsUtil(
95 self.RunGsUtil(['stat', stat_string])
97 self.RunGsUtil(['stat', stat_string2])
[all …]
Dtest_compose.py40 self.RunGsUtil(['compose'] + components + [composite.uri])
45 stderr = self.RunGsUtil(['compose'] + components + ['gs://b/composite-obj'],
50 stderr = self.RunGsUtil(
61 stderr = self.RunGsUtil(['compose'] + components + [target],
69 stderr = self.RunGsUtil(
94 self.RunGsUtil(['compose', component1.uri, component2.uri, composite.uri])
107 self.RunGsUtil(['-h', gen_match_header, 'compose', suri(k1_uri),
111 stderr = self.RunGsUtil(['-h', gen_match_header, 'compose', suri(k1_uri),
122 stderr = self.RunGsUtil(['compose', suri(object_uri),
134 stderr = self.RunGsUtil(['compose', 'gs://b/o1', 'gs://b/o2', 's3://b/o3'],
[all …]
Dtest_rb.py28 self.RunGsUtil(['rb', suri(bucket_uri)])
29 stderr = self.RunGsUtil(
36 stderr = self.RunGsUtil(['rb', suri(bucket_uri)], expected_status=1,
42 stderr = self.RunGsUtil(['rb', suri(bucket_uri)], expected_status=1,
48 stderr = self.RunGsUtil(['rb', 'gs://%s' % self.nonexistent_bucket_name],
54 stderr = self.RunGsUtil([
60 stderr = self.RunGsUtil(
Dtest_logging.py36 stderr = self.RunGsUtil(
41 stdout = self.RunGsUtil(self._get_log_cmd + [bucket_suri],
45 stderr = self.RunGsUtil(self._disable_log_cmd + [bucket_suri],
52 stderr = self.RunGsUtil(self._enable_log_cmd, return_stderr=True,
57 stderr = self.RunGsUtil(self._disable_log_cmd, return_stderr=True,
62 stderr = self.RunGsUtil(self._get_log_cmd, return_stderr=True,
67 stderr = self.RunGsUtil(['logging'], return_stderr=True, expected_status=1)
Dtest_parallel_cp.py51 self.RunGsUtil(['cp', src_file, suri(dst_bucket_uri)])
62 self.RunGsUtil(['cp', src_file0, src_file1, suri(dst_bucket_uri)])
81 self.RunGsUtil(['cp', src_file, suri(dst_bucket_uri, 'subdir/a')])
82 self.RunGsUtil(['cp', src_file, suri(dst_bucket_uri, 'subdir')])
94 self.RunGsUtil(['cp', '-R', src_dir_root, suri(dst_bucket_uri)])
113 self.RunGsUtil(['cp', '-R', os.path.join(src_dir, 'dir0', 'dir1'),
124 self.RunGsUtil(['cp', src_file, suri(dst_bucket_uri) + '//obj'])
136 self.RunGsUtil(['cp', '-R', suri(src_bucket_uri, '**'),
158 self.RunGsUtil(['cp', '-R', src_dir + '/dir1',
177 self.RunGsUtil(
[all …]
Dtest_perfdiag.py57 self.RunGsUtil(cmd)
59 self.RunGsUtil(self._custom_endpoint_flags + cmd)
73 self.RunGsUtil(cmd)
75 self.RunGsUtil(self._custom_endpoint_flags + cmd)
133 self.RunGsUtil(['perfdiag', '-o', outpath, '-n', '1', '-t', 'lat',
135 self.RunGsUtil(['perfdiag', '-i', outpath])
138 stderr = self.RunGsUtil(
144 stderr = self.RunGsUtil(
151 stdout = self.RunGsUtil(
Dtest_du.py48 stdout = self.RunGsUtil(['du', suri(obj_uri)], return_stdout=True)
58 stdout = self.RunGsUtil(['du', suri(bucket_uri)], return_stdout=True)
69 stdout = self.RunGsUtil(['du', suri(bucket_uri)], return_stdout=True)
88 stdout = self.RunGsUtil(['du', suri(obj_uri1), suri(obj_uri2)],
104 stdout = self.RunGsUtil(['du', '-c', suri(bucket_uri)],
118 stdout = self.RunGsUtil(['du', '-h', suri(obj_uri)], return_stdout=True)
130 stdout = self.RunGsUtil([
148 stdout = self.RunGsUtil(
168 stdout = self.RunGsUtil(['du', suri(bucket_uri)], return_stdout=True)
175 stdout = self.RunGsUtil(['du', '-a', suri(bucket_uri)],
[all …]
Dtest_mv.py41 stderr = self.RunGsUtil(cmd, return_stderr=True)
55 self.RunGsUtil(['rm', obj1])
64 stderr = self.RunGsUtil(cmd, return_stderr=True)
77 self.RunGsUtil(['mv', dir_to_move, suri(bucket_uri)])
87 self.RunGsUtil(['mv', '-I', suri(bucket_uri)],
93 stdout = self.RunGsUtil(['ls', suri(bucket_uri)], return_stdout=True)
104 stderr = self.RunGsUtil(['mv', '-n', fpath1, suri(object_uri)],
110 contents = self.RunGsUtil(['cat', suri(object_uri)], return_stdout=True)
Dtest_notification.py43 self.RunGsUtil([
48 stderr = self.RunGsUtil([
59 stderr = self.RunGsUtil(
71 self.RunGsUtil(['notification', 'stopchannel', channel_id, resource_id])
74 stderr = self.RunGsUtil(['notification', 'foo', 'bar', 'baz'],
Dtest_rm.py68 stderr = self.RunGsUtil(command_and_args, return_stderr=True,
113 stderr = self.RunGsUtil(['-m', 'rm', '-a', suri(key_uri)],
141 stderr = self.RunGsUtil(['rm', '-a', '%s' % suri(bucket_uri, 'foo')],
173 stderr = self.RunGsUtil(['ls', '-a', suri(bucket_uri)],
207 self.RunGsUtil(['rm', '%s' % suri(bucket_uri, 'missing'),
209 stderr = self.RunGsUtil(
213 self.RunGsUtil(['stat', suri(object_uri)], expected_status=1)
221 stderr = self.RunGsUtil(['rm', '-a', suri(key_uri),
233 stderr = self.RunGsUtil(
251 self.RunGsUtil(['rm', '-r', '%s' % suri(bucket_uri, 'abc')],
[all …]
Dtest_signurl.py59 stdout = self.RunGsUtil(['signurl', '-p', 'notasecret',
68 stdout = self.RunGsUtil(['signurl', '-m', 'PUT', '-p',
94 stdout = self.RunGsUtil(cmd_args, return_stdout=True)
116 stdout = self.RunGsUtil(['signurl', '-p',
128 self.RunGsUtil(['signurl', self._GetKsFile(), 'gs://'],
130 self.RunGsUtil(['signurl', 'file://tmp/abc'], expected_status=1)
Dtest_gsutil.py27 stdout = self.RunGsUtil(['--version'], return_stdout=True)
31 stdout = self.RunGsUtil(['version'], return_stdout=True)
35 stdout = self.RunGsUtil(['version', '-l'], return_stdout=True)
Dtest_Doption.py42 stderr = self.RunGsUtil(
56 stderr = self.RunGsUtil(
66 (stdout, stderr) = self.RunGsUtil(

12