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, [])
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, [])
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, [])
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, {})