summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2016-02-23 19:40:17 +0100
committerFlorent Le Coz <louiz@louiz.org>2016-02-24 09:31:30 +0100
commit1ee5f8e01a932b73628ed3f89e8c77c5fa25f1b0 (patch)
tree919c32513c1612355ea066e078cebac26cb84a68
parent51a34f83f9cae36f65b021e379e411cacf84c054 (diff)
downloadbiboumi-1ee5f8e01a932b73628ed3f89e8c77c5fa25f1b0.tar.gz
biboumi-1ee5f8e01a932b73628ed3f89e8c77c5fa25f1b0.tar.bz2
biboumi-1ee5f8e01a932b73628ed3f89e8c77c5fa25f1b0.tar.xz
biboumi-1ee5f8e01a932b73628ed3f89e8c77c5fa25f1b0.zip
end_to_end creates a config file before running biboumi
-rw-r--r--tests/end_to_end/__main__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index 96bbbf4..8e9c46e 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -151,6 +151,9 @@ class BiboumiTest:
format='%(levelname)-8s %(message)s',
filename=output_filename)
+ with open("test.conf", "w") as fd:
+ fd.write(confs['basic'])
+
# Start the XMPP component and biboumi
biboumi = BiboumiRunner(scenario.name, with_valgrind)
xmpp = XMPPComponent(self.scenario, biboumi)
@@ -176,6 +179,11 @@ class BiboumiTest:
return not failed
+confs = {'basic':
+"""hostname=biboumi.localhost
+password=coucou
+db_name=biboumi.sqlite
+port=8811"""}
if __name__ == '__main__':