コード例 #1
0
    def test_default_command(self):
        kubectl = Kubectl()

        default_cmd = kubectl._make_command()
        expected = ['kubectl', 'get', 'pods']

        assert default_cmd == expected
コード例 #2
0
    def test_namespaced_command(self):
        kubectl = Kubectl()
        kubectl.namespace = 'twyla'

        default_cmd = kubectl._make_command()
        expected = ['kubectl',
                    '--namespace',
                    'twyla',
                    'get',
                    'pods']

        assert default_cmd == expected