bdd: Add some more SSL tests.
This commit is contained in:
parent
d0fda5467a
commit
abcb366c12
@ -72,3 +72,28 @@ Feature: Prompts
|
|||||||
And I wait until the SSL page finished loading
|
And I wait until the SSL page finished loading
|
||||||
Then the error "SSL error: *" should be shown
|
Then the error "SSL error: *" should be shown
|
||||||
And the page should contain the plaintext "Hello World via SSL!"
|
And the page should contain the plaintext "Hello World via SSL!"
|
||||||
|
|
||||||
|
Scenario: SSL error with ssl-strict = true
|
||||||
|
When I run :debug-clear-ssl-errors
|
||||||
|
And I set network -> ssl-strict to true
|
||||||
|
And I load a SSL page
|
||||||
|
Then "Error while loading *: SSL handshake failed" should be logged
|
||||||
|
And the page should contain the plaintext "Unable to load page"
|
||||||
|
|
||||||
|
Scenario: SSL error with ssl-strict = ask -> yes
|
||||||
|
When I run :debug-clear-ssl-errors
|
||||||
|
And I set network -> ssl-strict to ask
|
||||||
|
And I load a SSL page
|
||||||
|
And I wait for a prompt
|
||||||
|
And I run :prompt-yes
|
||||||
|
And I wait until the SSL page finished loading
|
||||||
|
Then the page should contain the plaintext "Hello World via SSL!"
|
||||||
|
|
||||||
|
Scenario: SSL error with ssl-strict = ask -> no
|
||||||
|
When I run :debug-clear-ssl-errors
|
||||||
|
And I set network -> ssl-strict to ask
|
||||||
|
And I load a SSL page
|
||||||
|
And I wait for a prompt
|
||||||
|
And I run :prompt-no
|
||||||
|
Then "Error while loading *: SSL handshake failed" should be logged
|
||||||
|
And the page should contain the plaintext "Unable to load page"
|
||||||
|
@ -44,3 +44,8 @@ def click_button(quteproc):
|
|||||||
def wait_for_prompt(quteproc):
|
def wait_for_prompt(quteproc):
|
||||||
quteproc.wait_for(message='Entering mode KeyMode.* (reason: question '
|
quteproc.wait_for(message='Entering mode KeyMode.* (reason: question '
|
||||||
'asked)')
|
'asked)')
|
||||||
|
|
||||||
|
@bdd.then("no prompt should be shown")
|
||||||
|
def no_prompt_shown(quteproc):
|
||||||
|
quteproc.ensure_not_logged(message='Entering mode KeyMode.* (reason: '
|
||||||
|
'question asked)')
|
||||||
|
Loading…
Reference in New Issue
Block a user