Sha256: 1b8feb26fad87c6f056a1825c19956e2d16aa793d7dcf4d792f41d9e0461446b
Contents?: true
Size: 1.52 KB
Versions: 4
Compression:
Stored size: 1.52 KB
Contents
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import gslib.tests.testcase as testcase from gslib.tests.util import ObjectToURI as suri class TestPerfDiag(testcase.GsUtilIntegrationTestCase): """Integration tests for perfdiag command.""" def test_latency(self): bucket_uri = self.CreateBucket() self.RunGsUtil(['perfdiag', '-n', '1', '-t', 'lat', suri(bucket_uri)]) def test_write_throughput(self): bucket_uri = self.CreateBucket() self.RunGsUtil(['perfdiag', '-n', '1', '-s', '1024', '-t', 'wthru', suri(bucket_uri)]) def test_read_throughput(self): bucket_uri = self.CreateBucket() self.RunGsUtil(['perfdiag', '-n', '1', '-s', '1024', '-t', 'rthru', suri(bucket_uri)]) def test_input_output(self): outpath = self.CreateTempFile() bucket_uri = self.CreateBucket() self.RunGsUtil(['perfdiag', '-o', outpath, '-n', '1', '-t', 'lat', suri(bucket_uri)]) self.RunGsUtil(['perfdiag', '-i', outpath])
Version data entries
4 entries across 4 versions & 2 rubygems