mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
use pubsub settings
This commit is contained in:
parent
c4fa3ab654
commit
2f8c1954f0
2 changed files with 3 additions and 2 deletions
|
@ -65,7 +65,7 @@ class TestPubsubServer(unittest.TestCase):
|
||||||
"""Retrieving node config and reconfiguring"""
|
"""Retrieving node config and reconfiguring"""
|
||||||
nconfig = self.xmpp1['xep_0060'].getNodeConfig(self.pshost, 'testnode2')
|
nconfig = self.xmpp1['xep_0060'].getNodeConfig(self.pshost, 'testnode2')
|
||||||
self.failUnless(nconfig, "No configuration returned")
|
self.failUnless(nconfig, "No configuration returned")
|
||||||
#print("%s == %s" % (nconfig.getValues(), self.statev['defaultconfig'].getValues()))
|
#print("\n%s ==\n %s" % (nconfig.getValues(), self.statev['defaultconfig'].getValues()))
|
||||||
self.failUnless(nconfig.getValues() == self.statev['defaultconfig'].getValues(), "Configuration does not match")
|
self.failUnless(nconfig.getValues() == self.statev['defaultconfig'].getValues(), "Configuration does not match")
|
||||||
self.failUnless(self.xmpp1['xep_0060'].setNodeConfig(self.pshost, 'testnode2', nconfig))
|
self.failUnless(self.xmpp1['xep_0060'].setNodeConfig(self.pshost, 'testnode2', nconfig))
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
TestPubsubServer.xmpp1 = xmpp1
|
TestPubsubServer.xmpp1 = xmpp1
|
||||||
TestPubsubServer.xmpp2 = xmpp2
|
TestPubsubServer.xmpp2 = xmpp2
|
||||||
TestPubsubServer.pshost = 'pubsub.recon'
|
TestPubsubServer.pshost = config.get('settings', 'pubsub')
|
||||||
xmpp1.waitforstart.get(True)
|
xmpp1.waitforstart.get(True)
|
||||||
xmpp2.waitforstart.get(True)
|
xmpp2.waitforstart.get(True)
|
||||||
testsuite = unittest.TestLoader().loadTestsFromTestCase(TestPubsubServer)
|
testsuite = unittest.TestLoader().loadTestsFromTestCase(TestPubsubServer)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
[settings]
|
[settings]
|
||||||
enabled=true
|
enabled=true
|
||||||
|
pubsub=pubsub.recon
|
||||||
|
|
||||||
[account1]
|
[account1]
|
||||||
jid=fritzy@recon
|
jid=fritzy@recon
|
||||||
|
|
Loading…
Reference in a new issue