summaryrefslogtreecommitdiff
path: root/monkey-test
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2019-02-16 17:46:05 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2019-02-16 17:49:49 +0000
commit04f1d255d72466724468a876cfff46f73f560a9c (patch)
treed70a382b5cc59f7e77c88d3566442ec6c8bbc39d /monkey-test
parentc7134f318ae2e95a5db751a77d8c580d58e52dfd (diff)
downloadnetsurf-test-04f1d255d72466724468a876cfff46f73f560a9c.tar.gz
netsurf-test-04f1d255d72466724468a876cfff46f73f560a9c.tar.bz2
test: Add test for HTTP authentication.
Diffstat (limited to 'monkey-test')
-rw-r--r--monkey-test/authentication-http.yaml27
-rw-r--r--monkey-test/index.yaml3
2 files changed, 30 insertions, 0 deletions
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