Changeset - 6323d25f0344
[Not reviewed]
0 1 0
Branko Majic (branko) - 5 years ago 2018-11-28 20:34:31
branko@majic.rs
GC-27: Fix flake8 linting warnings:

- Properly mark the regex strings as such.
1 file changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
functional_tests/test_csr.py
Show inline comments
 
@@ -445,13 +445,13 @@ def test_server_command_accepts_csr_from_stdin(tmpdir):
 
    assert exit_code is None, "Output was: %s" % output
 
    assert prompt_failure == "Command got stuck waiting for input.", "Output was: %s" % output
 
    assert "Please enter the CSR (finish with Ctrl-D on an empty line):" in output
 

	
 
    # John reruns the command, this time passing-in the CSR and ending
 
    # the input with Ctrl-D.
 
    prompt_failure, output, exit_code = run_interactive_command([('Please enter the CSR \(finish with Ctrl-D on an empty line\):', custom_csr + '\n\004')],
 
    prompt_failure, output, exit_code = run_interactive_command([(r'Please enter the CSR \(finish with Ctrl-D on an empty line\):', custom_csr + '\n\004')],
 
                                                                "gimmecert", "server", "--csr", "-", "myserver1")
 

	
 
    # The operation is successful, and he is presented with
 
    # information about generated artefacts.
 
    assert prompt_failure is None
 
    assert exit_code == 0
 
@@ -506,13 +506,13 @@ def test_client_command_accepts_csr_from_stdin(tmpdir):
 
    assert exit_code is None, "Output was: %s" % output
 
    assert prompt_failure == "Command got stuck waiting for input.", "Output was: %s" % output
 
    assert "Please enter the CSR (finish with Ctrl-D on an empty line):" in output
 

	
 
    # John reruns the command, this time passing-in the CSR and ending
 
    # the input with Ctrl-D.
 
    prompt_failure, output, exit_code = run_interactive_command([('Please enter the CSR \(finish with Ctrl-D on an empty line\):', custom_csr + '\n\004')],
 
    prompt_failure, output, exit_code = run_interactive_command([(r'Please enter the CSR \(finish with Ctrl-D on an empty line\):', custom_csr + '\n\004')],
 
                                                                "gimmecert", "client", "--csr", "-", "myclient1")
 

	
 
    # The operation is successful, and he is presented with
 
    # information about generated artefacts.
 
    assert prompt_failure is None
 
    assert exit_code == 0
 
@@ -611,18 +611,18 @@ def test_renew_command_accepts_csr_from_stdin(tmpdir):
 
    assert renew_client_prompt_failure == "Command got stuck waiting for input.", "Output was: %s" % renew_client_output
 
    assert "Please enter the CSR (finish with Ctrl-D on an empty line):" in renew_client_output
 

	
 
    # John reruns renewal commands, this time passing-in the CSR and
 
    # ending the input with Ctrl-D.
 
    renew_server_prompt_failure, renew_server_output, renew_server_exit_code = run_interactive_command(
 
        [('Please enter the CSR \(finish with Ctrl-D on an empty line\):', server_csr + '\n\004')],
 
        [(r'Please enter the CSR \(finish with Ctrl-D on an empty line\):', server_csr + '\n\004')],
 
        "gimmecert", "renew", "--csr", "-", "server", "myserver"
 
    )
 

	
 
    renew_client_prompt_failure, renew_client_output, renew_client_exit_code = run_interactive_command(
 
        [('Please enter the CSR \(finish with Ctrl-D on an empty line\):', client_csr + '\n\004')],
 
        [(r'Please enter the CSR \(finish with Ctrl-D on an empty line\):', client_csr + '\n\004')],
 
        "gimmecert", "renew", "--csr", "-", "client", "myclient"
 
    )
 

	
 
    # The operation is successful, and he is presented with
 
    # information about generated artefacts.
 
    assert renew_server_prompt_failure is None
0 comments (0 inline, 0 general)