From 0b8d6986c445e236a0794b57c120aadb9e6ec143 Mon Sep 17 00:00:00 2001 From: Codeberg Pages <> Date: Wed, 18 Mar 2026 16:12:27 +0000 Subject: Pages: Deploy 076a7d573f268ddea2fada1de5e2b12fe07ad6a1 --- testing.html | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 testing.html (limited to 'testing.html') diff --git a/testing.html b/testing.html new file mode 100644 index 0000000..93c8f51 --- /dev/null +++ b/testing.html @@ -0,0 +1,68 @@ + + + + + + + + Testing - Documentation + + +
+

Documentation

+ +

eduVPN for Linux

+ + + + +
+
+ + + +

Testing#

+

The Go library right now has various tests defined. E.g. server interaction, oauth, discovery and signature verification tests.

+

To run the Go test suite, issue the following command in a shell

+
make test
+
+

Note that this runs the tests without any server interaction (so for now only the signature verification tests). To run the tests with an eduVPN server you need to specify environment variables:

+
SERVER_URI="eduvpn.example.com" PORTAL_USER="example" PORTAL_PASS="example" make test
+
+

This needs python3-selenium and geckodriver (extract and put in your $PATH). Note that testing with a server assumes it uses a default portal, due to it needing to click on buttons on the web page. You can add your own portal by customizing the called Selenium script.

+

There are other environment variables that can be used:

+ +

Testing the Python code#

+

To test the Python code, issue the following command in a shell (you will need dependencies for all wrappers if you do this[^1]):

+
make -C wrappers/python test
+
+
+ + + + \ No newline at end of file -- cgit v1.2.3