aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-10-22 22:55:43 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-10-22 22:56:11 +0300
commit72c9dac62cb6282841d22d877852bcee26bff9dd (patch)
tree772c3bc19f4461f6ffd427a61476c53b8b75158d /test
parent9b4a09677a352d9938e4505bfc2d0c8d304567ac (diff)
Add tests for config package (failing for now)
Diffstat (limited to 'test')
-rw-r--r--test/bad_config.yml22
-rw-r--r--test/good_config.yml23
2 files changed, 45 insertions, 0 deletions
diff --git a/test/bad_config.yml b/test/bad_config.yml
new file mode 100644
index 0000000..83dbdf1
--- /dev/null
+++ b/test/bad_config.yml
@@ -0,0 +1,22 @@
+:telegram:
+ :loglevel: :warn
+ :content:
+ :path: '/var/www/telegabber/content' # webserver workdir
+ :link: 'http://tlgrm.localhost/content' # webserver public address
+ :upload: 'https:///xmppfiles.localhost' # xmpp http upload address
+ :tdlib_verbosity: 1
+ :tdlib:
+ :lib_path: 'lib/'
+ :client:
+ :api_id: '17349'
+ :api_hash: '344583e45741c457fe1862106095a5eb'
+ :device_model: 'telegabber'
+ :application_version: '2.0'
+ :use_cat_info_database: false
+
+:xmpp:
+ :loglevel: :warn
+ :host: '127.0.0.1'
+ :port: 8899
+ :password: 'password'
+ :db: 'sessions.dat'
diff --git a/test/good_config.yml b/test/good_config.yml
new file mode 100644
index 0000000..3ea257c
--- /dev/null
+++ b/test/good_config.yml
@@ -0,0 +1,23 @@
+:telegram:
+ :loglevel: :warn
+ :content:
+ :path: '' # webserver workdir
+ :link: '' # webserver public address
+ :upload: '' # xmpp http upload address
+ :tdlib_verbosity: 1
+ :tdlib:
+ :lib_path: 'lib/'
+ :client:
+ :api_id: '17349'
+ :api_hash: '344583e45741c457fe1862106095a5eb'
+ :device_model: 'telegabber'
+ :application_version: '2.0'
+ :use_chat_info_database: false
+
+:xmpp:
+ :loglevel: :warn
+ :jid: 'tlgrm.localhost'
+ :host: '127.0.0.1'
+ :port: 8899
+ :password: 'password'
+ :db: 'sessions.dat'