Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: X2Go dev team <git-admin-P0WSJaAXTow <at> public.gmane.org>
Subject: x2gobroker.git - master (branch) updated: cd2f1b70fede3a52d4da401da27780e6ab813f6d
Newsgroups: gmane.linux.terminal-server.x2go.scm
Date: Friday 25th January 2013 09:30:36 UTC (over 3 years ago)
The branch, master has been updated
       via  cd2f1b70fede3a52d4da401da27780e6ab813f6d (commit)
      from  0d6d00e7bcf3bf35a81e4e3a67d2c81e659bc9af (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cd2f1b70fede3a52d4da401da27780e6ab813f6d
Author: Mike Gabriel

Date:   Fri Jan 25 10:31:22 2013 +0100

    add test to verify that the configuration of nameservice backend also
works

-----------------------------------------------------------------------

Summary of changes:
 x2gobroker/tests/test_broker_base.py |   15 +++++++++++++++
 1 file changed, 15 insertions(+)

The diff of changes is:
diff --git a/x2gobroker/tests/test_broker_base.py
b/x2gobroker/tests/test_broker_base.py
index 8491e88..5356e1f 100644
--- a/x2gobroker/tests/test_broker_base.py
+++ b/x2gobroker/tests/test_broker_base.py
@@ -219,6 +219,21 @@ enable = true
         base_backend = base.X2GoBroker(config_file=tf.name,
config_defaults=_config_defaults)
         self.assertEqual(base_backend.get_userdb_service(), 'libnss')
         self.assertEqual(base_backend.get_groupdb_service(), 'libnss')
+        _config_defaults =
copy.deepcopy(x2gobroker.defaults.X2GOBROKER_CONFIG_DEFAULTS)
+        _config = """
+[global]
+default-user-db = testsuite
+default-group-db = testsuite
+
+[base]
+enable = true
+"""
+        tf = tempfile.NamedTemporaryFile()
+        print >> tf, _config
+        tf.seek(0)
+        base_backend = base.X2GoBroker(config_file=tf.name,
config_defaults=_config_defaults)
+        self.assertEqual(base_backend.get_userdb_service(), 'testsuite')
+        self.assertEqual(base_backend.get_groupdb_service(), 'testsuite')
 
     ### TEST CONFIGURATION: global >> check-credentials = false
 


hooks/post-receive
 
CD: 3ms