JanHoefelmeyer
81edb6ccbe
Merge pull request #481 from csaf-poc/improve_logging2
...
fix: improve logging for downloader and aggregator
2023-10-18 09:02:18 +02:00
Bernhard E. Reiter
abc8b10988
docs: improve timerange documentation ( #482 )
...
* docs: improve timerange documentation
* add a documentation section to the downloader docs for the
timerange-option.
* point aggregator and checker docs to the downloader section for
timerange.
* docs: use a better example for timerange minutes
2023-10-17 18:53:53 +02:00
Sascha L. Teichmann
8f6e6ee8bb
improve logging output
2023-10-17 18:52:38 +02:00
Bernhard Reiter
3923dc7044
fix: improve logging for downloader and aggregator
...
* use full name for printing out the used logfile for the downloader.
* for debug or verbose, log the timeintervall that will be used
for downloader and aggregator. (The checker has this as part
of its output already.)
2023-10-17 11:33:03 +02:00
Bernhard Reiter
1e506d46cc
feat: add macos binaries archive to Makefile
2023-10-13 17:52:14 +02:00
Bernhard Reiter
e354e4b201
docs: add note about support level of MacOS builds
2023-10-13 17:21:25 +02:00
cintek
c05a4023ff
Merge branch 'csaf-poc:main' into main
2023-10-12 14:18:42 +02:00
JanHoefelmeyer
5f2596665a
Add new binary, the searcher(, the main and docs) from https://github.com/cintek/csaf_advisory_example+
2023-10-12 12:07:40 +02:00
Andreas Huber
d69101924b
Add build for macOS
2023-10-06 17:47:12 +02:00
JanHoefelmeyer
666913e61e
Merge pull request #475 from csaf-poc/schema-validation-assert-format
...
Schema validation: Add AssertFormat flag to schema compiler
2023-10-04 07:39:27 +02:00
Sascha L. Teichmann
3ba37b41c7
Add AssertFormat flag to schema compiler
2023-09-30 07:49:44 +02:00
Sascha L. Teichmann
716f128754
Fix year folder check ( #472 )
2023-09-29 09:47:11 +02:00
Sascha L. Teichmann
1cc42f0ec0
Downloader: unit test forwarder ( #470 )
...
* Simplify forward method
* Add unit test for validation status
* Add unit test for stats logging in forwarder.
* Add unit test for http client creation.
* Add unit test for replaceExt
* Add unit test for buildRequest
* Add unit test for limitedString
* Add unit test for storeFailedAdvisory
* Add unit test for storeFailedAdvisory ... fixed
* Add unit test for storeFailed
* Add unit test for forward
* comment wording
2023-09-29 09:46:51 +02:00
Bernhard E. Reiter
2bb2a2e018
docs: update main README ( #469 )
...
* Change release action to use elder Ubuntu runner
* use `ubuntu-20.04` so we get binaries that are more
compatible with elder GNU/Linux distribution, because
go binaries link to glibc (for some operating system operations
like dns).
resolve #456
* docs: update main README
* introduce more structure and put commands for users to the top.
* improve description of the command for the 3.0 release.
* Add 'Tools for ...' to make it more readable.
---------
Co-authored-by: Sascha L. Teichmann <sascha.teichmann@intevation.de>
2023-09-29 04:40:32 +02:00
Sascha L. Teichmann
0198cb470a
Update 3rd-party dependencies. ( #468 )
2023-09-28 16:08:13 +02:00
Sascha L. Teichmann
7a8cdb6d19
Lift distribution from v2 to v3. ( #467 )
...
* v2 -> v3
* Increase version within Makefile
---------
Co-authored-by: JanHoefelmeyer <hoefelmeyer.jan@gmail.com>
2023-09-27 15:46:57 +02:00
Sascha L. Teichmann
703127a6b3
Remove verbose flag from downloader test. ( #466 )
2023-09-27 13:19:08 +02:00
JanHoefelmeyer
2e5038f06d
Merge pull request #465 from csaf-poc/downloader-document-forward
...
Downloader: Document the implementes forward API
2023-09-27 12:16:24 +02:00
JanHoefelmeyer
37f770ed3d
Merge pull request #463 from csaf-poc/downloader-unit-tests
...
Downloader: unit tests for stats
2023-09-27 12:16:05 +02:00
JanHoefelmeyer
a569b573a4
Merge pull request #460 from csaf-poc/unit_tests
...
Unit tests of internal packages
2023-09-27 12:15:44 +02:00
JanHoefelmeyer
0ec5f22a74
Removed subjective informal 'little bit' phrasing
2023-09-27 11:30:35 +02:00
Sascha L. Teichmann
7cd076d4f8
Downloader: Remove verbose flag ( #464 )
...
* Remove verbose flag from downloader.
* Do structured http logging in forwarder, too.
* Use structured logging to separate http traffic of downloader from forwarder.
2023-09-27 11:30:24 +02:00
Sascha L. Teichmann
e470529dfb
Add a paragraph about the remote forward API.
2023-09-27 10:13:15 +02:00
cintek
49da14d47f
feat: log redirects ( #458 )
...
* feat: log redirects
* improved logging and renamed function
2023-09-26 10:03:09 +02:00
Bernhard E. Reiter
0c9516ac08
Change release action to use elder Ubuntu runner ( #461 )
...
* use `ubuntu-20.04` so we get binaries that are more
compatible with elder GNU/Linux distribution, because
go binaries link to glibc (for some operating system operations
like dns).
resolve #456
2023-09-26 09:37:12 +02:00
Sascha L. Teichmann
fca3f5bb9b
Fix stats unit test.
2023-09-25 23:32:19 +02:00
Sascha L. Teichmann
b0d7dbb387
Add unit test for stats.
2023-09-25 23:23:28 +02:00
Sascha L. Teichmann
6b07885848
Fix copyright headers. Make staticcheck happy.
2023-09-25 21:19:41 +02:00
Sascha L. Teichmann
52476f8560
use defer to restore original args.
2023-09-25 20:12:17 +02:00
Sascha L. Teichmann
1854cc4c58
Add test to trigger help output in second pass in command line parsing.
2023-09-25 18:15:09 +02:00
Sascha L. Teichmann
abce4e7f78
Add test for second pass command line passing.
2023-09-25 17:54:35 +02:00
JanHoefelmeyer
62290215ec
Test os.exit and log.Fatalf in options_test.go
2023-09-25 14:17:22 +02:00
Sascha L. Teichmann
21fbd401b7
Cosmetics
2023-09-25 13:05:53 +02:00
JanHoefelmeyer
1f7d5ada14
Formatted TestCreateFormFile()
2023-09-25 11:31:22 +02:00
JanHoefelmeyer
3de42e746d
Add function documentation to certs_test.go
2023-09-25 11:20:58 +02:00
JanHoefelmeyer
17945d67ac
Update filter_test.go's function documentation
2023-09-25 11:19:32 +02:00
JanHoefelmeyer
22e6d49f3f
Updated mime_test.go's function documentation
2023-09-25 11:16:47 +02:00
JanHoefelmeyer
b06c316ee0
Add minimum documentation to some functions
2023-09-25 11:15:01 +02:00
JanHoefelmeyer
b14d775422
Add a minimum of documentation to test functions
2023-09-25 11:13:13 +02:00
JanHoefelmeyer
a495416882
Expanded tests where missing (models)
2023-09-25 11:05:59 +02:00
JanHoefelmeyer
be50b7fc3a
Introduce actual tests where missing
2023-09-25 11:03:51 +02:00
JanHoefelmeyer
e4c636fe41
Complete Certs test
2023-09-19 16:11:23 +02:00
JanHoefelmeyer
2a82c53585
Merge pull request #441 from csaf-poc/fix_missing
...
Checker: Fix checking of missing files
2023-09-19 15:52:05 +02:00
cintek
b3332cf288
Merge pull request #5 from s-l-teichmann/fix-lint
...
Fix typo in doc comment
2023-09-13 17:05:30 +02:00
Sascha L. Teichmann
20b2bd27b3
Fix typo in comment.
2023-09-13 14:35:22 +02:00
Christoph Klassen
37cdda7c42
dont use pointer for lists of elements
2023-09-13 08:55:28 +02:00
Christoph Klassen
c8f1361c52
added validation for vulnerabilites
2023-09-12 17:26:28 +02:00
Christoph Klassen
b5db976f05
completed validation of product tree
2023-09-12 16:21:00 +02:00
cintek
f145a633c1
Merge pull request #4 from s-l-teichmann/cleanup-validation
...
Simplify validation code
2023-09-12 15:38:09 +02:00
cintek
094fe37026
Merge branch 'main' into cleanup-validation
2023-09-12 15:37:51 +02:00