Commit Graph

125 Commits (c89fcc1da9316cf7bb447071669192f552c1bffb)

Author SHA1 Message Date
Sheng 499f3b6dcd Lowercase all option names 2018-10-15 22:06:02 +08:00
Sheng 12f4c0d0d2 Pass server settings for test 2018-10-15 21:36:54 +08:00
Sheng 77b6fbfd85 Block requests not come from trusted_downstream and public non-https requests 2018-10-15 20:14:53 +08:00
Sheng db3ee2b784 Added proxies option for trusted downstream 2018-10-15 17:49:02 +08:00
Sheng bb9d193cae Fixed assertion in rasied exception context 2018-10-14 16:46:47 +08:00
Sheng 827a0d8a9d Support https server 2018-10-14 16:15:39 +08:00
Sheng 66ebe2ceb2 Use general method to validate ipaddress 2018-10-13 09:47:15 +08:00
Sheng 656e2ff028 Tested default port 2018-10-10 23:18:38 +08:00
Sheng 0c9db2abaf Set default port 22 on server side 2018-10-10 22:30:37 +08:00
Sheng f6d2776a20 Let tornado parse xheaders 2018-10-10 10:51:40 +08:00
Sheng 88405eddac Added to_int to utils 2018-10-10 08:49:59 +08:00
Sheng 33703f0ca3 Updated lookup_hostname 2018-10-08 22:37:03 +08:00
Sheng a576a41ea4 Lookup hostname before connection under reject policy 2018-10-08 20:25:21 +08:00
Sheng 90e7ea0327 Fixed test_print_version 2018-10-03 19:22:20 +08:00
Sheng 2adcf93362 Updated tests/utils.py 2018-09-18 20:56:34 +08:00
Sheng 1a7c395c75 Updated requirements.txt 2018-09-13 18:44:13 +08:00
Sheng b3c33ff6bd Use form attribute novalidate for debug mode 2018-09-12 13:47:33 +08:00
Sheng b372fcbbb2 Pass None for empty password 2018-09-12 13:07:05 +08:00
Sheng 5f3641701e Increase buffer size for channel 2018-09-01 11:00:01 +08:00
Sheng f4351318ec Updated tests 2018-08-29 18:10:57 +08:00
Sheng fa717491cd Updated test_server_error 2018-08-29 09:40:07 +08:00
Sheng 6cfd981e80 Tested server error 2018-08-29 09:19:35 +08:00
Sheng ad12876b0c Strip encoding 2018-08-28 20:25:07 +08:00
Sheng 58feb5e76b Enable xsrf for testing 2018-08-28 20:08:03 +08:00
Sheng 688ca78bb2 Use command "locale charmap" to detect encoding 2018-08-28 07:55:41 +08:00
Sheng 80bdddc280 Added setting swallow_http_errors 2018-08-28 07:43:43 +08:00
Sheng e1fbc417fd Added test for bad authentication type 2018-08-26 21:53:28 +08:00
Sheng 1a3880ecee Raise InvalidException for empty required value 2018-08-26 15:40:08 +08:00
Sheng 5519a17016 Return 400 http error for invalid post requests 2018-08-26 15:13:02 +08:00
Sheng df26d0e677 Catch ValueError instead of Exception for post method 2018-08-25 19:51:05 +08:00
Sheng 48acf09f21 Move method get_value to MixinHandler 2018-08-25 17:35:31 +08:00
Sheng f3d9d297bb Updated tests 2018-08-25 06:53:21 +08:00
Sheng 757702127a Move all tests data into a separate directory 2018-08-24 15:11:21 +08:00
Sheng 4710d8c0e6 Added connect_with_options function 2018-08-24 11:11:43 +08:00
Sheng 2e34702988 Changed validation error messages 2018-08-22 17:37:23 +08:00
Sheng 3c139e05f8 Added KEY_MAX_SIZE to validate the private key 2018-08-22 13:03:14 +08:00
Sheng 37299468a9 Added is_valid_hostname to utils 2018-08-20 21:20:55 +08:00
Sheng f610020758 Changed quotes 2018-08-20 20:42:54 +08:00
Sheng bd803328fc Changed error message 2018-08-20 18:55:00 +08:00
Sheng e85ae1692e Added to_bytes function to utils 2018-08-20 18:36:04 +08:00
Sheng f4197f0e4c Use base_dir as the project root directory 2018-08-18 17:39:50 +08:00
Sheng d6de1340c4 Added max_body_size for limiting the size of post form 2018-08-18 16:33:21 +08:00
Sheng 1e4ece58c8 Added functions for validating ip and port 2018-08-10 09:23:25 +08:00
Sheng babd9bd24f Updated tests 2018-06-01 09:32:14 +08:00
Sheng cbeca1c377 Updated sshserver.py 2018-05-30 22:02:17 +08:00
Sheng 469d86ac77 Auto detect system default encoding 2018-05-30 21:29:44 +08:00
Sheng cb5424a166 Added dummy check_channel_window_change_request for testing 2018-05-30 17:35:51 +08:00
Sheng a893507946 Made WsockHandler more robust 2018-05-26 15:51:53 +08:00
Sheng c439f2b6ee Instantly update pseudo-terminal size by client terminal size 2018-05-23 20:25:28 +08:00
Sheng 82929ea484 Changed string to bytes 2018-05-22 19:39:14 +08:00
Sheng 72df3b9ee9 Added print_version 2018-05-06 18:32:31 +08:00
Sheng c70117e590 Updated sshserver.py 2018-04-27 14:41:08 +08:00
Sheng 330145484d Updated test_app.py and sshserver.py 2018-04-27 14:34:06 +08:00
Sheng de0a903de8 Updated test_app.py and sshserver.py 2018-04-27 09:49:48 +08:00
Sheng e88ecb2879 Modified test_app.py sshserver.py 2018-04-27 09:31:52 +08:00
Sheng ffb776ca6c Use absolute path for importing modules 2018-04-26 22:38:16 +08:00
Sheng 81d838c053 Updated test_app.py 2018-04-26 22:21:04 +08:00
Sheng 6094d4bb43 Change listen address to 127.0.0.1 2018-04-26 22:13:51 +08:00
Sheng c90f1e5a57 Added test_app.py 2018-04-26 21:51:01 +08:00
Sheng 331eaa2ba7 Remove unused modules 2018-04-25 21:08:02 +08:00
Sheng d6e4339540 Updated test_handler.py 2018-04-25 21:05:01 +08:00
Sheng d1177bc2c5 Updated handler.py and test_hanlder.py 2018-04-25 19:01:54 +08:00
Sheng 50ab045c1f Use HTTPServerRequest instead 2018-04-24 10:57:25 +08:00
Sheng 42ac3daf87 Updated test_handler.py 2018-04-24 10:23:45 +08:00
Sheng acc3b47ec6 Added test_handler.py 2018-04-24 09:59:51 +08:00
Sheng 5dd08a72a5 Updated test_settings.py 2018-04-24 09:06:27 +08:00
Sheng 99d4b5fbea Updated test_policy.py 2018-04-23 19:55:29 +08:00
Sheng 3165cf2399 Updated test_settings.py 2018-04-23 17:11:07 +08:00
Sheng 5245560b81 Updated test_setttings.py 2018-04-23 17:03:58 +08:00
Sheng 189a30af96 Added test_settings.py 2018-04-23 16:46:49 +08:00
Sheng e5990f4384 Updated tests 2018-04-23 15:49:43 +08:00
Sheng 8e31cf5259 Changed host_keys_filename 2018-04-23 10:25:39 +08:00
Sheng 251fd90e5f Added more unittests to test_policy.py 2018-04-23 10:17:29 +08:00
Sheng c1d7c9cd7f Added test_get_policy_dictionary 2018-04-22 22:25:40 +08:00
Sheng 09d5804a09 Prepare to write unit tests 2018-04-22 20:11:36 +08:00