

@pytest.mark.skipif(True, reason='Now that we test against an AWS cluster, this test is blocked on DCOS-3104requires python3.3')
def test_log_marathon():
    (stdout, stderr) = ssh_output(('dcos service log marathon ' + '--ssh-config-file=tests/data/service/ssh_config'))
    assert (len(stdout.decode('utf-8').split('\n')) > 10)
    assert (b'Running `' in stderr)
    num_lines = len(stderr.decode('utf-8').split('\n'))
    assert ((num_lines == 2) or ((num_lines == 3) and (b'Warning: Permanently added' in stderr)))

dataset/ETHPy150Open dcos/dcos-cli/cli/tests/integrations/test_service.py test_log_marathon/original