コード例 #1
0
 def test_real_ls(self):
     client = gen_json.GCSClient(self.JOBS_DIR)
     build_dir = self.JOBS_DIR + 'kubernetes-build-1.2/'
     paths = list(client.ls(build_dir))
     self.assertIn(build_dir + 'latest-build.txt', paths)
コード例 #2
0
 def test_real_get(self):
     client = gen_json.GCSClient(self.JOBS_DIR)
     latest = int(
         client.get(self.JOBS_DIR + 'kubernetes-e2e-gce/latest-build.txt'))
     self.assertGreater(latest, 1000)