Open MorphyHu opened 1 year ago
cat config.yaml telegram_token: "xxx:xxx" # ONLY IF YOU USING DATA FORMATTING FUNCTION, NOTE for developer: important or test fail time_outdata: "02/01/2006 15:04:05" #template_path: "template.tmpl" # ONLY IF YOU USING TEMPLATE time_zone: "Asia/Shanghai" # ONLY IF YOU USING TEMPLATE split_msg_byte: 4000 send_only: true # use bot only to send messages. TELEGRAM_CHATID="-100xxx" make test go build -o prometheus_bot prove -v t/curl.t .. 1..25 head: illegal line count -- -1 ok 1 - emptyValue.json template none head: illegal line count -- -1 ok 2 - simpe.json template none head: illegal line count -- -1 ok 3 - big_output.json template none head: illegal line count -- -1 ok 4 - production_example.json template none head: illegal line count -- -1 ok 5 - noGenURL.json template none head: illegal line count -- -1 ok 6 - emptyValue.json template production_example.tmpl head: illegal line count -- -1 ok 7 - simpe.json template production_example.tmpl head: illegal line count -- -1 ok 8 - big_output.json template production_example.tmpl head: illegal line count -- -1 ok 9 - production_example.json template production_example.tmpl head: illegal line count -- -1 ok 10 - noGenURL.json template production_example.tmpl head: illegal line count -- -1 ok 11 - emptyValue.json template default.tmpl head: illegal line count -- -1 ok 12 - simpe.json template default.tmpl head: illegal line count -- -1 ok 13 - big_output.json template default.tmpl head: illegal line count -- -1 ok 14 - production_example.json template default.tmpl head: illegal line count -- -1 ok 15 - noGenURL.json template default.tmpl head: illegal line count -- -1 ok 16 - emptyValue.json template malformed_html.tmpl head: illegal line count -- -1 ok 17 - simpe.json template malformed_html.tmpl head: illegal line count -- -1 not ok 18 - big_output.json template malformed_html.tmpl head: illegal line count -- -1 not ok 19 - production_example.json template malformed_html.tmpl head: illegal line count -- -1 not ok 20 - noGenURL.json template malformed_html.tmpl head: illegal line count -- -1 not ok 21 - emptyValue.json template detailed_vars.tmpl head: illegal line count -- -1 not ok 22 - simpe.json template detailed_vars.tmpl head: illegal line count -- -1 not ok 23 - big_output.json template detailed_vars.tmpl head: illegal line count -- -1 not ok 24 - production_example.json template detailed_vars.tmpl head: illegal line count -- -1 not ok 25 - noGenURL.json template detailed_vars.tmpl Failed 8/25 subtests Test Summary Report ------------------- t/curl.t (Wstat: 0 Tests: 25 Failed: 8) Failed tests: 18-25 Files=1, Tests=25, 40 wallclock secs ( 0.01 usr 0.01 sys + 1.29 cusr 0.66 csys = 1.97 CPU) Result: FAIL make: *** [test] Error 1