diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2014-11-02 20:45:23 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2014-11-02 20:45:23 +0100 |
commit | d8d094ddbe0fb9ab86ecd33f6cdd056d8b1ce9f2 (patch) | |
tree | a5c9a598350664e0734fd145e7a0db5d35875caf /tests/slmock | |
parent | b9ad4d789d0ed95cda227e753a7927ad9a4340cc (diff) | |
download | remote-logon-service-d8d094ddbe0fb9ab86ecd33f6cdd056d8b1ce9f2.tar.gz remote-logon-service-d8d094ddbe0fb9ab86ecd33f6cdd056d8b1ce9f2.tar.bz2 remote-logon-service-d8d094ddbe0fb9ab86ecd33f6cdd056d8b1ce9f2.zip |
upload to ppa:x2go/stable+ppa (ubuntu/1.0.0-0ubuntu3+x2go1~0ubuntu14.04.1)
* Non-maintainer upload.
* Add SERVER_NAME env var support.
* Add X2Go support to RLS.
* Provide via ppa:x2go/ppa and ppa:x2go/stable on Launchpad.
Diffstat (limited to 'tests/slmock')
-rwxr-xr-x | tests/slmock | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/slmock b/tests/slmock index 59c5174..b3b5019 100755 --- a/tests/slmock +++ b/tests/slmock @@ -78,6 +78,20 @@ def freerdp(email): ms.set_default(ts1.Name) print(ms.toJson()) +def x2go(email): + ms = ManagementServer("http://x2go.intern", "X2GoSessionBroker") + ts1 = TerminalServer("10.0.2.11", "X2Go Server 1", "x2go", False, + "foo") + ts2 = TerminalServer("10.0.2.12", "X2Go Server 2", "x2go", False, + "bar") + ts3 = TerminalServer("10.0.2.13", "X2Go Server 3", "x2go", False, + "foobar") + ms.add_terminal_server(ts1) + ms.add_terminal_server(ts2) + ms.add_terminal_server(ts3) + ms.set_default(ts1.Name) + print(ms.toJson()) + def print_error(text): print("{ \"Error\": \"%s\" }" % text) @@ -201,6 +215,7 @@ emailaddrs = {"b" : big, #lots of domains/servers "d" : defaults, #for easy testing of default ts "e" : error, "f" : freerdp, + "x" : x2go, "g" : garbage, "m" : missing_fields, #json missing some fields "r" : random_string, |