From 72c9dac62cb6282841d22d877852bcee26bff9dd Mon Sep 17 00:00:00 2001 From: bodqhrohro Date: Tue, 22 Oct 2019 22:55:43 +0300 Subject: Add tests for config package (failing for now) --- test/bad_config.yml | 22 ++++++++++++++++++++++ test/good_config.yml | 23 +++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 test/bad_config.yml create mode 100644 test/good_config.yml (limited to 'test') 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' -- cgit v1.2.3