1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00
Commit graph

37 commits

Author SHA1 Message Date
Sascha L. Teichmann
91ab7f6b1c
Chance supported minimal Go version back to 1.20 (#514) 2023-11-28 10:37:16 +01:00
Sascha L. Teichmann
455010dc64
Accept days, months and years in time ranges. (#483) 2023-10-19 13:13:11 +02:00
Sascha L. Teichmann
716f128754
Fix year folder check (#472) 2023-09-29 09:47:11 +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
JanHoefelmeyer
a569b573a4
Merge pull request #460 from csaf-poc/unit_tests
Unit tests of internal packages
2023-09-27 12:15:44 +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
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
3a7b411789 formatting 2023-09-08 13:34:45 +02:00
JanHoefelmeyer
daab24eb2f Corrected wrong error requirement 2023-09-08 13:26:38 +02:00
JanHoefelmeyer
2e129b9dc8 Clean up certs_test.go a bit 2023-09-08 11:00:50 +02:00
JanHoefelmeyer
a217f88ea1 Many unittests for internal folder 2023-09-08 09:40:41 +02:00
Sascha L. Teichmann
e0475791ff
Downloader: Add forwarding to HTTP endpoint (#442)
* started with forwarding support in downloader

* Add missing files.

* Add missing files.

* Raise needed Go version

* More Go version bumping.

* Fix forwarding

* Go 1.21+ needed

* Make terminating forwarder more robust.

* Better var naming

* Remove dead code. Improve commentary.

* Prepare validation status adjustment.

* Move validations to functions to make them executable in a loop.

* Introduce validation mode flag (strict, unsafe)
2023-08-25 10:31:27 +02:00
Sascha L. Teichmann
468e91cb8b Remove the years flag from checker. 2023-08-17 11:01:45 +02:00
Sascha L. Teichmann
017a6b0a10 Move cert handling into library and add option passphrase. Adjust uploader and checker. 2023-08-02 21:02:58 +02:00
Sascha L. Teichmann
873eb4879b Add time range to checker report. 2023-08-02 20:01:04 +02:00
Sascha L. Teichmann
5a4e5607cb Factored out matching lists of regular expressions. 2023-08-01 17:05:49 +02:00
Sascha L. Teichmann
125028773f go-flag needs its own Unmarshaler. 2023-07-26 12:06:16 +02:00
Sascha L. Teichmann
eade9f7ae4 Fixed switched time.Parse args. 2023-07-26 10:52:20 +02:00
Sascha L. Teichmann
de0599ebe3 Add time interval filtering to downloader. 2023-07-26 03:22:33 +02:00
Sascha L. Teichmann
0e297fc616 Add internal model for time ranges. 2023-07-26 02:22:45 +02:00
Sascha L. Teichmann
1bdaf5854a Fallback to default config files if no config file was given. 2023-07-25 10:53:18 +02:00
Sascha L. Teichmann
9697e99d86 Improve comment 2023-07-25 00:17:44 +02:00
Sascha L. Teichmann
95bd705036 Factor command line parsing into an internal package for reuse. 2023-07-24 23:25:16 +02:00