From 04f1d255d72466724468a876cfff46f73f560a9c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 16 Feb 2019 17:46:05 +0000 Subject: test: Add test for HTTP authentication. --- monkey-test/authentication-http.yaml | 27 +++++++++++++++++++++++++++ monkey-test/index.yaml | 3 +++ 2 files changed, 30 insertions(+) create mode 100644 monkey-test/authentication-http.yaml (limited to 'monkey-test') diff --git a/monkey-test/authentication-http.yaml b/monkey-test/authentication-http.yaml new file mode 100644 index 0000000..cd15397 --- /dev/null +++ b/monkey-test/authentication-http.yaml @@ -0,0 +1,27 @@ +title: Test the 401 login functionality +group: http-auth +steps: +- action: launch + language: en +- action: window-new + tag: win1 +- action: add-auth + url: http://test.netsurf-browser.org/cgi-bin/auth.cgi?user=foo&pass=bar + realm: Fake Realm + username: foo + password: bar +- action: navigate + window: win1 + url: http://test.netsurf-browser.org/cgi-bin/auth.cgi?user=foo&pass=bar +- action: block + conditions: + - window: win1 + status: complete +- action: plot-check + window: win1 + checks: + - text-contains: "result=GOOD" +- action: window-close + window: win1 +- action: quit + diff --git a/monkey-test/index.yaml b/monkey-test/index.yaml index eaf3996..1c19935 100644 --- a/monkey-test/index.yaml +++ b/monkey-test/index.yaml @@ -6,3 +6,6 @@ - group: basic description: Basic tests that fetch from the test server + +- group: http-auth + description: Test HTTP 401 authentication -- cgit v1.2.3