Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Unified Diff: infra_libs/ts_mon/test/targets_test.py

Issue 1260293009: make version of ts_mon compatible with appengine (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: add noncululativedistribution metric to ts_mon imports Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra_libs/ts_mon/test/stubs.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra_libs/ts_mon/test/targets_test.py
diff --git a/infra_libs/ts_mon/test/targets_test.py b/infra_libs/ts_mon/test/targets_test.py
deleted file mode 100644
index 2388971756b6fc1be1632480ba71f057d3da6adb..0000000000000000000000000000000000000000
--- a/infra_libs/ts_mon/test/targets_test.py
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright 2015 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import unittest
-
-from monacq.proto import metrics_pb2
-
-from infra_libs.ts_mon import targets
-
-
-class DeviceTargetTest(unittest.TestCase):
-
- def test_populate_target(self):
- pb = metrics_pb2.MetricsData()
- t = targets.DeviceTarget('reg', 'net', 'host')
- t._populate_target_pb(pb)
- self.assertEquals(pb.network_device.metro, 'reg')
- self.assertEquals(pb.network_device.hostgroup, 'net')
- self.assertEquals(pb.network_device.hostname, 'host')
- self.assertEquals(pb.network_device.realm, 'ACQ_CHROME')
- self.assertEquals(pb.network_device.alertable, True)
-
-
-class TaskTargetTest(unittest.TestCase):
-
- def test_populate_target(self):
- pb = metrics_pb2.MetricsData()
- t = targets.TaskTarget('serv', 'job', 'reg', 'host')
- t._populate_target_pb(pb)
- self.assertEquals(pb.task.service_name, 'serv')
- self.assertEquals(pb.task.job_name, 'job')
- self.assertEquals(pb.task.data_center, 'reg')
- self.assertEquals(pb.task.host_name, 'host')
- self.assertEquals(pb.task.task_num, 0)
« no previous file with comments | « infra_libs/ts_mon/test/stubs.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698