diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-04-16 11:47:55 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-04-16 11:47:55 +0200 |
commit | 6e61c304f382cf1fe31352ef3c80b261c0712b30 (patch) | |
tree | 049896ad7b1883ca23c68291e9521d0e25be9df8 /tests | |
parent | dc1016e6cdaf1a1761746b095427b367b19c6f00 (diff) | |
download | remote-logon-service-6e61c304f382cf1fe31352ef3c80b261c0712b30.tar.gz remote-logon-service-6e61c304f382cf1fe31352ef3c80b261c0712b30.tar.bz2 remote-logon-service-6e61c304f382cf1fe31352ef3c80b261c0712b30.zip |
White-space clean-up at EOLs.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dbus-interface.c | 6 | ||||
-rwxr-xr-x | tests/slmock | 16 |
2 files changed, 11 insertions, 11 deletions
diff --git a/tests/dbus-interface.c b/tests/dbus-interface.c index e67b60c..560a971 100644 --- a/tests/dbus-interface.c +++ b/tests/dbus-interface.c @@ -515,7 +515,7 @@ test_setlastused_basic (void) GDBusConnection * session = g_bus_get_sync(G_BUS_TYPE_SESSION, NULL, NULL); g_dbus_connection_set_exit_on_close(session, FALSE); - + g_assert(slmock_check_login(session, &slmock_table[1], TRUE)); GError * error = NULL; @@ -540,13 +540,13 @@ test_setlastused_basic (void) g_assert(retval != NULL); g_assert(g_variant_n_children(retval) == 0); g_variant_unref(retval); - + g_assert(slmock_check_login(session, &slmock_table[3], FALSE)); g_object_unref(session); g_object_unref(rls); g_object_unref(service); - + return; } diff --git a/tests/slmock b/tests/slmock index 10ccc95..e7026f1 100755 --- a/tests/slmock +++ b/tests/slmock @@ -43,7 +43,7 @@ class AdditionalManagementServer(): self.Name = name class TerminalServer(): - def __init__(self, url, name, protocol, domainRequired = True, + def __init__(self, url, name, protocol, domainRequired = True, username = None, password = None): self.URL = url self.Name = name @@ -68,7 +68,7 @@ def convert_to_builtin_type(obj): def freerdp(email): ms = ManagementServer("http://tc.arctica-project.org", "Landscape") - ts1 = TerminalServer("23.21.151.133", "FreeRDP US", "freerdp", False, + ts1 = TerminalServer("23.21.151.133", "FreeRDP US", "freerdp", False, "Administrator") ts2 = TerminalServer("46.137.222.181", "FreeRDP Asia", "freerdp", False, "Administrator") @@ -82,7 +82,7 @@ def freerdp(email): def x2go(email): ms = ManagementServer("http://x2go.intern", "X2GoSessionBroker") - ts1 = TerminalServer("10.0.2.11", "X2Go Server 1", "x2go", False, + ts1 = TerminalServer("10.0.2.11", "X2Go Server 1", "x2go", False, "foo") ts2 = TerminalServer("10.0.2.12", "X2Go Server 2", "x2go", False, "bar") @@ -102,7 +102,7 @@ def error(email): def citrix(email): ms = ManagementServer("http://tc.arctica-project.org", "Landscape") - ts1 = TerminalServer("107.21.17.35", "Citrix USA", "ICA", True, + ts1 = TerminalServer("107.21.17.35", "Citrix USA", "ICA", True, "useradmin1") ts2 = TerminalServer("107.21.17.35", "Citrix 2", "ICA", True, "useradmin2") @@ -122,7 +122,7 @@ def citrix(email): def vmware(email): ms = ManagementServer("http://tc.arctica-project.org", "Landscape") - ts = TerminalServer("https://10.193.37.140", "VMWare-View Lexington", + ts = TerminalServer("https://10.193.37.140", "VMWare-View Lexington", "vmware", True, "Administrator") ts.add_domain("VMWARE") ms.add_terminal_server(ts) @@ -174,12 +174,12 @@ def big(email): ms = ManagementServer("http://tc.arctica-project.org", "Landscape") ts1 = TerminalServer("107.21.17.35", "XenServer", "ICA") - ts2 = TerminalServer("http://1.2.3.4", "Citrix2", "ICA", True, + ts2 = TerminalServer("http://1.2.3.4", "Citrix2", "ICA", True, "fakeuser", "fakepassword") - ts3 = TerminalServer("10.21.17.35", "Accenture", "freerdp", True, + ts3 = TerminalServer("10.21.17.35", "Accenture", "freerdp", True, "fakeuser") ts4 = TerminalServer("https://4.5.6.7", "Accenture 2", "freerdp", False) - ts5 = TerminalServer("5.21.17.35", "VmWare Cloud", "vmware", False, + ts5 = TerminalServer("5.21.17.35", "VmWare Cloud", "vmware", False, "fakeuser", "fakepassword") ts6 = TerminalServer("http://8.9.10.11", "Canonicloud", "vmware", True) |