Commit Graph

211 Commits

Author SHA1 Message Date
Heikki Hannikainen a950c8ab4e Added messaging test with different SSID 2013-06-25 08:18:21 +03:00
Heikki Hannikainen a71eba8b77 Messaging test: Test 0xFF byte too, and sleep less, run faster. 2013-04-23 08:02:57 +03:00
Heikki Hannikainen 10de64f0ed Added messaging test which tries high value bytes (127-255) 2013-04-23 06:50:07 +03:00
Heikki Hannikainen 6bbc2c7e91 Tests: test CWOP filtering with CW and EW prefixes 2013-04-19 20:08:44 +03:00
Heikki Hannikainen ca13794f61 incoming srccall check: relax SSID length requirement a bit to match javap3 for now 2013-04-18 23:05:25 +03:00
Heikki Hannikainen 8da002be7f Renamed c->handler to handler_line_in 2013-04-13 14:06:09 +03:00
Heikki Hannikainen 1c5106925b Allow -0 SSID in srccall (and dstcall), to match javaprssrvr 2013-04-10 08:13:24 +03:00
Heikki Hannikainen fca8f208e9 Drop incoming packets with -0 SSIDs in callsigns. Speedup in callsign
checking (array reference instead of pointer math and referencing) and
stricter callsign syntax checks.
2013-04-09 18:33:12 +03:00
Heikki Hannikainen 8540eb7752 parse_aprs: Fix logging of "Unknown NMEA" to use hlog_packet 2013-03-07 21:23:54 +02:00
Heikki Hannikainen 75d860808b ca/cert-selfsigned: Fixed hashbang shell path, thanks to Ge0rG for bug report 2013-03-05 01:23:04 +02:00
Heikki Hannikainen 6265b05d42 ssl key + cert for testing, + openssl scripts to create 2013-03-04 20:22:52 +02:00
Heikki Hannikainen 203925785f Improved quirks mode: Clean up spaces in end of path elements 2013-03-01 16:55:10 +02:00
Heikki Hannikainen 4c6dcd6f21 quirks mode: Trim spaces from the end of srccall 2013-02-26 17:36:09 +02:00
Heikki Hannikainen 62848fb241 HTTP status server test: further JSON content tests 2013-02-24 08:27:17 +02:00
Heikki Hannikainen 98baac306a HTTP status server tests: Make sure JSON responses actually decode 2013-02-24 08:20:31 +02:00
Heikki Hannikainen 77456779aa HTTP status server test cases: Do compressed downloads 2013-02-24 08:08:06 +02:00
Heikki Hannikainen fbe1933f5f http status web test: added test for counterdata fetch 2013-02-23 18:05:53 +02:00
Heikki Hannikainen 5173a3fc06 Fix issue 20: Escape unprintable characters when logging packets 2013-02-19 18:02:49 +02:00
Heikki Hannikainen f99bcd70f3 Fix third-party header parser to allow more than 2 path elements. 2013-02-06 19:07:07 +02:00
Heikki Hannikainen 4e5f5f6243 misc-drops: Fix pass test in the end to use a valid packet 2013-02-06 17:44:41 +02:00
Heikki Hannikainen d6087a259e Really drop invalid 3rd-party packets (and test it right) 2013-02-05 22:46:16 +02:00
Heikki Hannikainen 0a41e69a9f Make p and b filters work on 3rd-party packets. Validate
3rd party packet header validation in tests, too.
2013-02-05 22:29:02 +02:00
Heikki Hannikainen ef56b7431f Parse most data out of 3rd-party packets, add tests.
Validate calls in path after Q construct.
2013-02-05 13:28:22 +02:00
Heikki Hannikainen 7475552ca2 startup: Don't do DNS call-home when running the test suite. 2013-02-04 23:55:40 +02:00
Heikki Hannikainen ed37f32189 Classify clients only when they have logged in. Use classification
presence to determine if packets should be sent in outgoing.c, which
saves one more condition check for login status for every packet.
2013-02-01 07:33:04 +02:00
Heikki Hannikainen 6ac7098b5a Dupeclients: Prepend "dup\t" to outgoing dupe packets
in order to prevent regular clients from processing them.
2013-01-20 08:21:54 +02:00
Heikki Hannikainen 0312148286 PeerGroup config: Ignore local address quietly to allow symmetric configs 2012-11-23 09:57:51 +02:00
Heikki Hannikainen 48982660ac tests: Make them run 20 seconds faster by making sleeps in tests shorter 2012-11-22 00:19:11 +02:00
Heikki Hannikainen 4eba57d4b1 PeerGroup config: Specify remote ServerIDs before IP addresses 2012-11-20 22:15:35 +02:00
Heikki Hannikainen 74fdfadc30 udp-load test: use a smaller burst to reduce spurious failures 2012-11-20 22:15:00 +02:00
Heikki Hannikainen 45d807d20f Implemented "quirks mode" for buggy unmaintained blacklisted clients.
Initially contains only HR-IXPWIND / Haute Networks HauteWIND.
It transmits LF NUL for line termination instead of CR LF. Enabled
quirks mode for the client, and made it strip spaces and NULs
from beginning of packets.
2012-11-12 22:17:12 +02:00
Heikki Hannikainen 0e7ea413b3 Q construct drops: Account them separately for better drop reason reporting 2012-11-01 01:08:07 +02:00
Heikki Hannikainen 24131405f5 dupecheck: Catch dupes which have had their DEL (0x7f) bytes eaten.
Either replaced by spaces or completely stripped away. With counters,
web presentation and tests in test suite.
2012-10-29 19:22:38 +02:00
Heikki Hannikainen 9960016878 Dupecheck+web: Detect duplicates with low (< 0x20) bytes mangled,
either stripped or replaced with spaces. Count and show counters.
2012-10-26 21:06:53 +03:00
Heikki Hannikainen b554e09319 incoming: Only drop 3rd-party packets with TCPIP/TCPXX in second path 2012-10-21 14:56:52 +03:00
Heikki Hannikainen faea0af01b Disallow unverified packets with TCPXX in path or qAX q construct 2012-10-19 22:16:06 +03:00
Heikki Hannikainen 745c092044 allow testing with 40000 clients 2012-10-11 22:43:32 +03:00
Heikki Hannikainen 5f021c73f8 testing: test cases for dupecheck 8-bit mangling handling 2012-10-09 01:57:32 +03:00
Heikki Hannikainen 627605bc68 dupecheck: Store a space-trimmed version of packet to dupecheck db
(if there were spaces in the end of the packet), and drop any
further whitespace-trimmed packets. Whitespace-appended packets
will get throught, still.
This is an UI-View hack - it tends to drop spaces in TNC2 mode.
2012-10-09 00:47:10 +03:00
Heikki Hannikainen 1968dc4b38 Improve validation for srccall/dstcall/path/q construct
* separate src/dstcall check function
* check lenghts of callsigns
* allow '*' after callsign only in digipeater elements
* allow hex IPv6 address after Q construct (only)
2012-10-08 23:01:23 +03:00
Heikki Hannikainen eef48259ce incoming: validate all callsigns in digi path to not contain junk,
allow alphanumeric, '-', and '*' only in the end.
(test case updated, in 11misc-drops.t)
2012-10-08 10:11:49 +03:00
Heikki Hannikainen 514e19916c misc-drops test: added cntrl-chars-in-srccall-and-dstcall tests 2012-10-08 09:31:44 +03:00
Heikki Hannikainen 3fe8cad58c Fixed ,qAI login processing - don't do it for UDP core peers
since we don't know their usernames anyway.
Added test case within 61udp-peer.t.
2012-10-07 14:28:15 +03:00
Heikki Hannikainen 3d5e849b69 incoming #filter commands: make the filter keyword case insensitive
like it is in javaprssrvr. Test case update included.
2012-10-05 00:59:13 +03:00
Heikki Hannikainen b0154fa542 Testing: Validate that all packets from unverified clients are dropped 2012-10-05 00:49:28 +03:00
Heikki Hannikainen ded7b6146c 30filter-cmd test: less debug output 2012-10-05 00:25:29 +03:00
Heikki Hannikainen ca96f895e0 Drop general queries (?APRS?), since they cause reply floods.
Commit includes test case within the misc-drops test.
2012-10-01 00:12:28 +03:00
Heikki Hannikainen ae89e64575 dupecheck test cases: added case with different dstcall SSID
(it must be ignored in dupecheck algorithm)
2012-09-28 17:10:20 +03:00
Heikki Hannikainen 81c6a049f1 Removed unnecessary timers (with default settings) from test configs 2012-09-22 13:39:58 +03:00
Heikki Hannikainen d6ad1c4ba0 Increased UDP socket buffer sizes to make UDP peers pass higher
packet rates. Tuned UDP load test to run with a larger window.
2012-09-19 14:31:37 +03:00
Heikki Hannikainen b790aabcfe Added an UDP load test script in the testing suite. 2012-09-19 14:19:11 +03:00
Heikki Hannikainen b7e9d89a3b IS_Fake_UDP.pm (testing UDP fake peer): increase buffer sizes
to 64k.
2012-09-19 14:18:26 +03:00
Heikki Hannikainen 7e5c6828f4 Additional mic-e test cases with large longitude values
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@870 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-09-17 20:26:39 +00:00
Heikki Hannikainen e8993533ba tests: second mic-e testing packet, and use a prefix which does not match the P/ filter
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@869 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-09-17 19:44:09 +00:00
Heikki Hannikainen 5c0ab36f5b Removed LogDir configuration directive - it's a command line parameter,
we need to log even if config file reading fails.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@790 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-09-01 11:03:08 +00:00
Heikki Hannikainen c664bab01c aggregator tests: fix to do real login procedures
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@788 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-09-01 11:01:55 +00:00
Heikki Hannikainen 463f4ebafb filter messages: reply to filter?
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@784 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-09-01 10:15:08 +00:00
Heikki Hannikainen 84bbe35a77 filter-cmd: more accurate test for filter command in message, validated
against javap 4.0


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@778 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-31 23:22:01 +00:00
Heikki Hannikainen 3b5bbb9515 + filter-cmd test for filter-in-message
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@777 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-31 22:53:04 +00:00
Heikki Hannikainen e99cab345a aggregator test: put PassCode in place
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@756 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-30 13:28:23 +00:00
Heikki Hannikainen d93b888201 tests/runproduct: allow setting PRODUCT_NORUN environment variable to test
a pre-running instance under gdb.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@734 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-28 16:56:02 +00:00
Heikki Hannikainen 6d8d2d7fec version 0.7.1:
passcode configuration


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@733 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-28 08:05:53 +00:00
Heikki Hannikainen 1021d1ff8b Add udp submit in example + testing config files
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@730 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-28 07:37:50 +00:00
Heikki Hannikainen e43668ebd1 Commit missing qAI test set
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@729 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-28 07:37:06 +00:00
Heikki Hannikainen 740689fe88 Added UDP submit port test case
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@723 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-27 18:42:48 +00:00
Heikki Hannikainen 3b3ae34b1b q algorithm: fixes for TCPIP*,qAC,TESTING insertion in all the right places
Added separate test cases for clientonly and non-clientonly
verified clients


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@670 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-23 07:10:15 +00:00
Heikki Hannikainen 867aafaef8 tests updats for load testing
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@665 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-19 06:43:50 +00:00
Heikki Hannikainen c1eacfc5e4 http-client test: test with variable case headers
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@627 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-14 09:35:29 +00:00
Heikki Hannikainen 5abc1ec3a5 removed obsolete messageonly options from testing config files
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@622 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-13 21:04:59 +00:00
Heikki Hannikainen 14e5192204 added test to check for dropping 3rd party packets and NOGATE/RFONLY
paths


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@598 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-05 08:18:13 +00:00
Heikki Hannikainen 2b3508a453 Accept irregular filter commands (#kjaehrlfkjwfilter <filterstring>) like
the other software.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@586 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-04 07:26:36 +00:00
Heikki Hannikainen 330772c897 Updated test set config files to user ServerId instead of MyCall
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@561 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-01 14:42:16 +00:00
Heikki Hannikainen 26881bb247 Messaging fix: route messages destined to the logged-in username/callsign,
even before a position packet has been transmitted by that call.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@543 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-30 17:43:06 +00:00
Heikki Hannikainen f09f6318c3 added a http post testing tool
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@524 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-29 19:29:11 +00:00
Heikki Hannikainen 92ad943f2b Fixed callsign filters to be case insensitive, and changed the
filter test to test that.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@522 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-29 19:28:08 +00:00
Heikki Hannikainen 1345b9f57a basic config: document the ro flag
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@519 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-29 16:42:20 +00:00
Heikki Hannikainen 299a0c3280 basic config: document Uplink syntax
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@518 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-29 16:03:27 +00:00
Heikki Hannikainen 673f18a779 http upload test: actually verify what comes out
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@509 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-28 13:06:40 +00:00
Heikki Hannikainen ca3e38cc91 added initial test for HTTP packet uploading
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@508 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-28 13:02:33 +00:00
Heikki Hannikainen 2b2c025e54 Log getaddrinfo failure messages from gai_strerrors where applicable.
Handle lookup errors as fatal errors at startup and bail out.
Properly pick IPv6 core peers based on their address in the incoming
packets.
When configuring peergroups, check foor looping and duplicate-generating
configs pointing to myself or having the same peer twice.
Handle [addr]:port syntax in configuration for IPv6.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@506 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-28 09:37:44 +00:00
Heikki Hannikainen 1a7514b4f8 Tuned UDP tests
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@503 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-26 18:03:42 +00:00
Heikki Hannikainen 27e09d345b javap test config: set up an uplink in basic profile
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@501 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-26 06:28:16 +00:00
Heikki Hannikainen db44312240 Implemented UDP peer group tests
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@499 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-25 22:03:00 +00:00
Heikki Hannikainen 517e4097ae load test: tune parameters a bit
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@498 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-25 22:02:38 +00:00
Heikki Hannikainen a634554ec1 qAS multiple-appending bug test for 3.15
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@497 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-25 22:00:40 +00:00
Heikki Hannikainen 9d6e7e3f8e IS.pm: support UDP client connection
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@491 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-12 13:11:04 +00:00
Heikki Hannikainen dc1ecbe659 Basic UDP client test
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@490 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-12 10:34:12 +00:00
Heikki Hannikainen 092a2598ed Put UDP ports in the basic test config for aprsc
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@489 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-12 10:33:52 +00:00
Heikki Hannikainen 73912c64aa javap: o/ filter requires spaces after object name
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@482 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-11 08:18:02 +00:00
Heikki Hannikainen 310f2aef93 filter test: try upper-case filter characters R/ and P/ too
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@481 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-11 08:16:52 +00:00
Heikki Hannikainen 60a0142c6e Added test cases for heavier packet load (very crude benchmark test),
larger blobs of packets getting truncated, and packet without CRLF in the
end followed by a disconnect getting passed.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@474 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-28 06:44:00 +00:00
Heikki Hannikainen 35cafce30d IS.pm: check for a real CRLF line termination, a CR or LF alone is not enough.
Support for smaller timeouts in readline than 1s (even 0 to just poll once).
sendline: Support raw transmit without CRLF appended, and a noflush parameter.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@473 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-28 06:42:28 +00:00
Heikki Hannikainen c86949abb3 tests runproduct: javaserver 4.0 RC1 startup command support
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@472 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-28 06:38:46 +00:00
Heikki Hannikainen f5f61e22ef Filter preprocessor: Check (with relative efficiency) if packet's path
contains TCPIP*. If it's present, set flag F_HAS_TCPIP, and pass packets
from TCPIP stations to clients having heard that same station before.
Also added a test for this case in 40messaging.t


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@462 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-19 15:46:10 +00:00
Heikki Hannikainen 0cd9de3127 fixed filter tests
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@453 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-13 19:45:03 +00:00
Heikki Hannikainen 7beaadf832 packet type filter test: directed query is just a message, not a query
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@447 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-10 20:30:51 +00:00
Heikki Hannikainen 9d8b8443b6 Filter tests: q construct tests implemented
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@445 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-10 17:33:51 +00:00
Heikki Hannikainen fa27405bc5 filter tests: my position and friend position
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@444 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-10 14:09:45 +00:00
Heikki Hannikainen b2e5daca0e filter test: test for a/ area filter
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@443 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-10 13:54:15 +00:00
Heikki Hannikainen 7d9e15be48 filter tests: rename t33
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@442 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-10 13:34:49 +00:00