Esempio n. 1
0
 def test_by_selector_empty(self):
     client = KubeBase(self.config)
     with patch.object(client.session, 'request', return_value=helper.make_response(200, {})):
         data = client.nodes().by_selector(None)
         self.assertEqual(data, [])
Esempio n. 2
0
 def test_metadata(self):
     client = KubeBase(self.config)
     with patch.object(client.session, 'request', return_value=helper.make_response(200, {})):
         data = client.nodes().metadata()
         self.assertEqual(data, [])
Esempio n. 3
0
 def test_filters_status(self):
     client = KubeBase(self.config)
     with patch.object(client.session, 'request', return_value=helper.make_response(200, {})):
         data = client.nodes().filter(status='Running')
         self.assertEqual(data, [])
Esempio n. 4
0
 def test_by_name_simple(self):
     client = KubeBase(self.config)
     with patch.object(client.session, 'request', return_value=helper.make_response(200, {})):
         data = client.nodes().by_name('test')
         self.assertEqual(data, {})