You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: exit with non-zero code if the api is not happy (#352)
* fix: exit with a non-zero code if the api is not happy
* test: add cases
* test: use custom tmp directory
* test: normalize localhost:<port> references
Using config at <tempdir>/.osv-detector.yml (0 ignores)
68
+
Using db api#http://<localhost>:<port> (using batches of 1000)
69
+
Using db RubyGems (%% vulnerabilities, including withdrawn - last updated %%)
70
+
71
+
no known vulnerabilities found
72
+
73
+
---
74
+
75
+
[TestRun_APIError/#00 - 2]
76
+
an api error occurred while trying to check the packages listed in <tempdir>/Gemfile.lock: api returned unexpected status (POST http://<localhost>:<port>/querybatch 400)
77
+
78
+
---
79
+
80
+
[TestRun_APIError/#01 - 1]
81
+
Loaded the following OSV databases:
82
+
api#http://<localhost>:<port> (using batches of 1000)
83
+
RubyGems (%% vulnerabilities, including withdrawn - last updated %%)
84
+
85
+
<tempdir>/Gemfile.lock: found 1 package
86
+
Using config at <tempdir>/.osv-detector.yml (0 ignores)
87
+
Using db api#http://<localhost>:<port> (using batches of 1000)
88
+
Using db RubyGems (%% vulnerabilities, including withdrawn - last updated %%)
89
+
90
+
no known vulnerabilities found
91
+
92
+
---
93
+
94
+
[TestRun_APIError/#01 - 2]
95
+
an api error occurred while trying to check the packages listed in <tempdir>/Gemfile.lock: api response could not be parsed as json (POST http://<localhost>:<port>/querybatch): invalid character '<' looking for beginning of value
0 commit comments