예제 #1
0
    def test_deprecated_mins_to_end_of_hour(self):
        main(['--mins-to-end-of-hour', '5'])

        self.assertNotIn('mins_to_end_of_hour',
                         self._maybe_terminate_clusters.call_args[1])

        self.assertTrue(self.log.warning.called)
예제 #2
0
    def test_deprecated_max_hours_idle(self):
        main(['--max-hours-idle', '2'])

        self.assertEqual(
            self._maybe_terminate_clusters.call_args[1]['max_mins_idle'], 120)

        self.assertTrue(self.log.warning.called)
예제 #3
0
    def test_deprecated_mins_to_end_of_hour(self):
        main(['--mins-to-end-of-hour', '5'])

        self.assertNotIn(
            'mins_to_end_of_hour',
            self._maybe_terminate_clusters.call_args[1])

        self.assertTrue(self.log.warning.called)
예제 #4
0
    def test_deprecated_max_hours_idle(self):
        main(['--max-hours-idle', '2'])

        self.assertEqual(
            self._maybe_terminate_clusters.call_args[1]['max_mins_idle'],
            120)

        self.assertTrue(self.log.warning.called)