41 Commits

Author SHA1 Message Date
Athanasius
26dac58ceb eddn-report-log-errors: Some EDD 15.0.0.0 reported issues 2022-03-12 08:32:57 +00:00
Athanasius
1d15c546a8 scripts/eddn-report: Add Moonlight/1.3.4/Scan case 2022-02-27 18:58:32 +00:00
Athanasius
6607e3eb45 scripts/eddn-report-log-errors: EDSM/1.0.3: Materials as dict 2022-02-22 15:43:59 +00:00
Athanasius
2b141bf8ac scripts/eddn-report-log-errors: New 'EDSM'/1.0.3/journal/Scan error
* Also corrects the conditionals to both skip this and always log
  anything else.
2022-02-21 10:15:53 +00:00
Athanasius
a93c342550 scripts/eddn-report-log-errors: Ensure only 'known' things aren't printed
* Bump EDMC version to 5.3.0
* Use matching *for* known things and `pass`, and ensure there's an
  "else print" everywhere to catch unknown things.
2022-02-20 10:55:42 +00:00
Athanasius
b38659a6f8 Merge branch 'develop' of github.com:EDCD/EDDN into develop 2022-02-20 08:30:56 +00:00
Athanasius
dfead5b2ab scripts/eddn-report-log-errors: Don't print for 'old' G19s Companion 2022-02-20 08:30:05 +00:00
Athanasius
42866fdda9
approachesettlement/1: Add no-MarketID samples for testing 2022-02-19 11:38:56 +00:00
Athanasius
8c2a5dca6f scripts/eddn-report-log-errors: Use fileinput & update for latest
* Use fileinput, makes it easy to use '-' as 'stdin please'.
* EDDLite 2.0.0.0: Bad date-time
* EDMC >= 5.2.4: approachsettelement/1 issues
2022-02-18 18:07:14 +00:00
Athanasius
05d5d0215a scripts/eddn-report-log-errors: Use a semantic_version comparison
Hardcoding to only **equal** to 'current known latest version' requires
maintenance on any new release of a Sender.  So leverage
`semantic_version.Version.coerce('<version>')` instead so we catch "this
or later versions".
2022-02-17 11:06:01 +00:00
Athanasius
ad9503d37b scripts/testing: journal Location samples 2022-02-15 11:57:30 +00:00
Athanasius
2b653733d2 scripts/apache-log-rate: Bug fix & misc.
* Comparison had an off-by one, accidentally including "second before"
  still.
* Print out compiled regex for matching apache lines, in case of custom
  request text usage.
* Output the timestamp at the end of the largest window.  This enables
  easy checking of logs for possible anomalies around then.
* Comment about how apache logs *aren't* actually strictly in
  time-order, but we assume they are.
2022-02-10 19:25:53 +00:00
Athanasius
0414b18f97 scripts/apache-log-rate: Use a deque instead of a list 2022-02-10 16:26:25 +00:00
Athanasius
42129a50ce scripts/apache-log-rate: Attempt to speed up with an array slice 2022-02-10 16:17:49 +00:00
Athanasius
cb1991739e scripts/apache-log-rate: Determine highest message rate from apache logs 2022-02-10 15:46:47 +00:00
Athanasius
a619a2a2ec scripts/testing: Correct example codexentry $schemaRef 2022-01-31 10:34:26 +00:00
Athanasius
13287083c1
scripts/testing: Actual 'EDDN message' version of codexentry.json 2022-01-31 10:24:18 +00:00
Athanasius
245a111248
scripts/testing: Example codexentry file 2022-01-31 10:23:30 +00:00
Athanasius
1678c467d7 scripts/testing: Various additional inputs to test-sender 2022-01-28 15:14:00 +00:00
Athanasius
79b78ac831 scripts/eddn-report: Quieten some EDMC errors
They're noted in <https://github.com/EDCD/EDMarketConnector/issues/1403>
2022-01-18 11:21:21 +00:00
Athanasius
a1e330be2c scripts/eddn-report: EVA is abandoned, so ignore 2022-01-17 09:18:40 +00:00
Athanasius
cc5ae32227 scripts/eddn-report: Correct EliteLogAgent comment 2022-01-12 15:43:59 +00:00
Athanasius
e93c04bb21 scripts/eddn-report: EliteLogAgent latest is 2.0.0.660
This allows for ignoring the ancient 0.9.2.412 that showed some errors
yesterday.
2022-01-12 09:40:47 +00:00
Athanasius
00071ba7e9 scripts/testing: Remove per-scenario scripts
The required functionality is now all in `test-sender.py`.
2022-01-11 16:43:30 +00:00
Athanasius
ad8fc57df3 scripts/test-sender: Support --gzip=bad 2022-01-11 16:41:25 +00:00
Athanasius
7537a300c0 scripts/test-sender: Support for valid gzip compression 2022-01-11 16:31:05 +00:00
Athanasius
fb83aae240 scripts/test-sender: Support for requesting good or bad form encoding 2022-01-11 16:27:20 +00:00
Athanasius
ecd3afbbbc scripts/test-sender.py: Allow 'beta' and 'dev' --url aliases
Also explicitly states the URL and input file it uses.
2022-01-11 16:12:21 +00:00
Athanasius
02b2ea6e18 scripts/test-sender.py: Allow for changing target URL 2022-01-11 16:08:59 +00:00
Athanasius
6799a7fae9 scripts/testing: Target dev:4432, not beta:4431
In the long-term these all need to support a CL arg to select the
target.
2022-01-11 15:36:53 +00:00
Athanasius
a1d347aec5 scripts/testing: Add general "uses gzip" script 2022-01-11 15:35:24 +00:00
Athanasius
759b14c844 scripts/testing: Add "valid JSON looks like form-encoded" file
Ref: https://github.com/EDCD/EDDN/issues/165
2022-01-11 14:40:16 +00:00
Athanasius
495e27861e scripts: Make it obvious that test-bad-gzip.py doesn't work 2022-01-10 15:53:44 +00:00
Athanasius
a8098f45b9 Move eddn-report-log-errors into scripts/ 2022-01-10 09:42:17 +00:00
Athanasius
ddb9480ee6
Gateway/testscripts: Add a small README 2022-01-09 16:27:08 +00:00
Athanasius
2a8eb8d021
Gateway: Add test scripts and supporting files
These are what I was using on my home server to test the prior code
changes to how the Gateway code reports errors.

Ultimately these should become a part of proper tests, but for now
they're at least in the repository for anyone to utilise.
2022-01-09 16:21:23 +00:00
Athanasius
080136127e scripts/eddn-restore-db-data: Handles if file is .gz or not 2021-07-14 09:45:46 +00:00
Athanasius
88e199e94e scripts/mysql dumps: Add data dump script 2021-07-10 12:26:44 +00:00
Athanasius
f02efdd98b scripts/eddn-dump-db-schema: For dumping the current DB schema 2021-07-10 11:22:00 +00:00
Athanasius
0e3ef098ab systemd/start-eddn-service: Now replacing scripts/run-from-source.sh
* Removed scripts/run-from-source.sh as it's now redundant.
* Added `--background` optional argument, only for when using
  `--from-source` to start-eddn-service.  The script will leave the
  service in the foreground, no output redirection, without it.

  It tells you the PID of the process when it's backgrounded, as well as
  placing it in the appropriate .pid file.
2021-07-06 11:17:52 +00:00
Athanasius
3116927b12 run-from-source: Moved into new ./scripts/ directory 2021-07-06 10:04:55 +00:00