>>> trivy: Building testing/trivy 0.20.1-r0 (using abuild 3.9.0_rc2-r1) started Sat, 16 Oct 2021 19:28:15 +0000 >>> trivy: Checking sanity of /home/buildozer/aports/testing/trivy/APKBUILD... >>> trivy: Analyzing dependencies... >>> trivy: Installing for build: build-base btrfs-progs-dev go linux-headers lvm2-dev (1/37) Installing linux-headers (5.10.41-r0) (2/37) Installing libblkid (2.37.2-r1) (3/37) Installing eudev-libs (3.2.10-r1) (4/37) Installing libuuid (2.37.2-r1) (5/37) Installing btrfs-progs-libs (5.14.2-r0) (6/37) Installing btrfs-progs-dev (5.14.2-r0) (7/37) Installing go (1.17.1-r0) (8/37) Installing device-mapper-libs (2.02.187-r1) (9/37) Installing device-mapper-event-libs (2.02.187-r1) (10/37) Installing libaio (0.3.112-r1) (11/37) Installing lvm2-libs (2.02.187-r1) (12/37) Installing util-linux (2.37.2-r1) (13/37) Installing libeconf (0.4.1-r0) (14/37) Installing libfdisk (2.37.2-r1) (15/37) Installing libmount (2.37.2-r1) (16/37) Installing libsmartcols (2.37.2-r1) (17/37) Installing util-linux-misc (2.37.2-r1) (18/37) Installing linux-pam (1.5.2-r0) (19/37) Installing runuser (2.37.2-r1) (20/37) Installing hexdump (2.37.2-r1) (21/37) Installing uuidgen (2.37.2-r1) (22/37) Installing blkid (2.37.2-r1) (23/37) Installing sfdisk (2.37.2-r1) (24/37) Installing mcookie (2.37.2-r1) (25/37) Installing wipefs (2.37.2-r1) (26/37) Installing cfdisk (2.37.2-r1) (27/37) Installing flock (2.37.2-r1) (28/37) Installing lsblk (2.37.2-r1) (29/37) Installing libcap-ng (0.8.2-r0) (30/37) Installing setpriv (2.37.2-r1) (31/37) Installing logger (2.37.2-r1) (32/37) Installing partx (2.37.2-r1) (33/37) Installing findmnt (2.37.2-r1) (34/37) Installing util-linux-dev (2.37.2-r1) (35/37) Installing lvm2-dev (2.02.187-r1) (36/37) Installing .makedepends-trivy (20211016.192816) (37/37) Installing util-linux-openrc (2.37.2-r1) Executing busybox-1.34.1-r1.trigger OK: 691 MiB in 137 packages >>> trivy: Cleaning up srcdir >>> trivy: Cleaning up pkgdir >>> trivy: Fetching https://distfiles.alpinelinux.org/distfiles/trivy-0.20.1.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 >>> trivy: Fetching https://github.com/aquasecurity/trivy/archive/v0.20.1/trivy-0.20.1.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 127 100 127 0 0 702 0 --:--:-- --:--:-- --:--:-- 705 100 1968k 0 1968k 0 0 3861k 0 --:--:-- --:--:-- --:--:-- 3861k 100 22.3M 0 22.3M 0 0 15.4M 0 --:--:-- 0:00:01 --:--:-- 21.7M >>> trivy: Fetching https://distfiles.alpinelinux.org/distfiles/trivy-0.20.1.tar.gz >>> trivy: Checking sha512sums... trivy-0.20.1.tar.gz: OK >>> trivy: Unpacking /var/cache/distfiles/trivy-0.20.1.tar.gz... go build -ldflags "-s -w -X=main.version=v3.15.0_alpha20210804-4073-gb39e1241e8" ./cmd/trivy go: downloading go.uber.org/zap v1.19.1 go: downloading github.com/aquasecurity/go-dep-parser v0.0.0-20211013074621-eb58e8565220 go: downloading github.com/spf13/afero v1.6.0 go: downloading github.com/urfave/cli/v2 v2.3.0 go: downloading github.com/google/wire v0.4.0 go: downloading github.com/open-policy-agent/opa v0.32.0 go: downloading k8s.io/utils v0.0.0-20201110183641-67b214c5f920 go: downloading github.com/aquasecurity/trivy-db v0.0.0-20210916043317-726b7b72a47b go: downloading github.com/aquasecurity/fanal v0.0.0-20211014152324-29fbacfbfca4 go: downloading github.com/caarlos0/env/v6 v6.0.0 go: downloading github.com/cheggaaa/pb/v3 v3.0.3 go: downloading github.com/stretchr/objx v0.3.0 go: downloading github.com/google/go-github/v33 v33.0.0 go: downloading golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c go: downloading github.com/fatih/color v1.10.0 go: downloading github.com/google/go-containerregistry v0.6.0 go: downloading github.com/go-redis/redis/v8 v8.11.4 go: downloading github.com/cheggaaa/pb v1.0.27 go: downloading github.com/hashicorp/go-getter v1.5.2 go: downloading github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46 go: downloading github.com/twitchtv/twirp v8.1.0+incompatible go: downloading github.com/mattn/go-runewidth v0.0.12 go: downloading github.com/knqyf263/go-apk-version v0.0.0-20200609155635-041fdbb8563f go: downloading github.com/go-redis/redis v6.15.9+incompatible go: downloading github.com/knqyf263/go-deb-version v0.0.0-20190517075300-09fca494f03d go: downloading github.com/knqyf263/go-rpm-version v0.0.0-20170716094938-74609b86c936 go: downloading golang.org/x/text v0.3.7 go: downloading github.com/urfave/cli v1.22.5 go: downloading github.com/Masterminds/goutils v1.1.1 go: downloading github.com/google/uuid v1.3.0 go: downloading github.com/mitchellh/copystructure v1.1.1 go: downloading github.com/VividCortex/ewma v1.1.1 go: downloading cloud.google.com/go/storage v1.10.0 go: downloading github.com/aws/aws-sdk-go v1.41.0 go: downloading github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d go: downloading github.com/hashicorp/go-safetemp v1.0.0 go: downloading github.com/klauspost/compress v1.13.5 go: downloading github.com/mitchellh/go-testing-interface v1.0.0 go: downloading github.com/ulikunitz/xz v0.5.8 go: downloading google.golang.org/api v0.47.0 go: downloading github.com/cespare/xxhash/v2 v2.1.2 go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f go: downloading cloud.google.com/go v0.83.0 go: downloading github.com/aquasecurity/go-gem-version v0.0.0-20201115065557-8eed6fe000ce go: downloading github.com/cpuguy83/go-md2man v1.0.10 go: downloading github.com/aquasecurity/go-version v0.0.0-20210121072130-637058cfe492 go: downloading github.com/masahiro331/go-mvn-version v0.0.0-20210429150710-d3157d602a08 go: downloading github.com/aquasecurity/go-npm-version v0.0.0-20201110091526-0b796d180798 go: downloading github.com/aquasecurity/go-pep440-version v0.0.0-20210121094942-22b2f8951d46 go: downloading golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf go: downloading golang.org/x/net v0.0.0-20210825183410-e898025ed96a go: downloading go.etcd.io/bbolt v1.3.6 go: downloading github.com/docker/cli v20.10.7+incompatible go: downloading github.com/docker/distribution v2.7.1+incompatible go: downloading github.com/BurntSushi/toml v0.4.1 go: downloading github.com/russross/blackfriday v1.5.2 go: downloading github.com/briandowns/spinner v1.12.0 go: downloading gopkg.in/cheggaaa/pb.v1 v1.0.28 go: downloading github.com/opencontainers/image-spec v1.0.2-0.20190823105129-775207bd45b6 go: downloading github.com/googleapis/gax-go v2.0.2+incompatible go: downloading google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c go: downloading google.golang.org/grpc v1.38.0 go: downloading github.com/opencontainers/go-digest v1.0.0 go: downloading github.com/docker/docker v20.10.8+incompatible go: downloading github.com/docker/docker-credential-helpers v0.6.3 go: downloading github.com/ghodss/yaml v1.0.0 go: downloading github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 go: downloading github.com/OneOfOne/xxhash v1.2.8 go: downloading github.com/gobwas/glob v0.2.3 go: downloading github.com/yashtewari/glob-intersection v0.0.0-20180916065949-5c77d914dd0b go: downloading github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 go: downloading github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb go: downloading github.com/knqyf263/nested v0.0.1 go: downloading github.com/go-git/go-git/v5 v5.4.2 go: downloading github.com/aquasecurity/tfsec v0.58.11 go: downloading github.com/saracen/walker v0.0.0-20191201085201-324a081bae7e go: downloading golang.org/x/mod v0.5.1 go: downloading github.com/tmccombs/hcl2json v0.3.1 go: downloading sigs.k8s.io/yaml v1.3.0 go: downloading github.com/mitchellh/mapstructure v1.4.2 go: downloading github.com/moby/buildkit v0.8.1 go: downloading github.com/knqyf263/go-rpmdb v0.0.0-20210911072402-73bd0ce46c49 go: downloading github.com/containerd/stargz-snapshotter/estargz v0.7.0 go: downloading github.com/GoogleCloudPlatform/docker-credential-gcr v1.5.0 go: downloading github.com/hashicorp/go-retryablehttp v0.7.0 go: downloading github.com/docker/go-connections v0.4.0 go: downloading github.com/docker/go-units v0.4.0 go: downloading github.com/containerd/containerd v1.5.4 go: downloading github.com/hashicorp/hcl/v2 v2.10.1 go: downloading github.com/containerd/stargz-snapshotter v0.0.0-20201027054423-3a04e4c2c116 go: downloading github.com/zclconf/go-cty v1.9.1 go: downloading github.com/apparentlymart/go-textseg/v13 v13.0.0 go: downloading github.com/go-git/go-billy/v5 v5.3.1 go: downloading github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 go: downloading github.com/sergi/go-diff v1.1.0 go: downloading github.com/emirpasic/gods v1.12.0 go: downloading github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 go: downloading github.com/go-git/gcfg v1.5.0 go: downloading github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 go: downloading github.com/xanzy/ssh-agent v0.3.0 go: downloading github.com/apparentlymart/go-textseg v1.0.0 go: downloading gopkg.in/warnings.v0 v0.1.2 go: downloading github.com/agext/levenshtein v1.2.2 go: downloading github.com/containerd/typeurl v1.0.2 go: downloading github.com/zclconf/go-cty-yaml v1.0.2 go: downloading github.com/owenrumney/squealer v0.2.28 go: downloading github.com/bmatcuk/doublestar v1.3.4 go: downloading github.com/go-restruct/restruct v0.0.0-20191227155143-5734170a48a1 go test -v -short -coverprofile=coverage.txt -covermode=atomic ./... go: downloading github.com/aquasecurity/bolt-fixtures v0.0.0-20200903104109-d34e7f983986 go: downloading github.com/kylelemons/godebug v1.1.0 go: downloading github.com/goccy/go-yaml v1.8.2 ? github.com/aquasecurity/trivy/cmd/trivy [no test files] ? github.com/aquasecurity/trivy/integration/docker [no test files] ? github.com/aquasecurity/trivy/misc/eol [no test files] === RUN TestRemoteCache_PutArtifact === RUN TestRemoteCache_PutArtifact/happy_path === RUN TestRemoteCache_PutArtifact/sad_path === RUN TestRemoteCache_PutArtifact/sad_path:_invalid_token --- PASS: TestRemoteCache_PutArtifact (0.00s) --- PASS: TestRemoteCache_PutArtifact/happy_path (0.00s) --- PASS: TestRemoteCache_PutArtifact/sad_path (0.00s) --- PASS: TestRemoteCache_PutArtifact/sad_path:_invalid_token (0.00s) === RUN TestRemoteCache_PutBlob === RUN TestRemoteCache_PutBlob/happy_path === RUN TestRemoteCache_PutBlob/sad_path === RUN TestRemoteCache_PutBlob/sad_path:_invalid_token --- PASS: TestRemoteCache_PutBlob (0.00s) --- PASS: TestRemoteCache_PutBlob/happy_path (0.00s) --- PASS: TestRemoteCache_PutBlob/sad_path (0.00s) --- PASS: TestRemoteCache_PutBlob/sad_path:_invalid_token (0.00s) === RUN TestRemoteCache_MissingBlobs === RUN TestRemoteCache_MissingBlobs/happy_path === RUN TestRemoteCache_MissingBlobs/sad_path === RUN TestRemoteCache_MissingBlobs/sad_path_with_invalid_token --- PASS: TestRemoteCache_MissingBlobs (0.00s) --- PASS: TestRemoteCache_MissingBlobs/happy_path (0.00s) --- PASS: TestRemoteCache_MissingBlobs/sad_path (0.00s) --- PASS: TestRemoteCache_MissingBlobs/sad_path_with_invalid_token (0.00s) PASS coverage: 100.0% of statements ok github.com/aquasecurity/trivy/pkg/cache 0.053s coverage: 100.0% of statements === RUN Test_showVersion === RUN Test_showVersion/happy_path,_table_output === RUN Test_showVersion/happy_path,_JSON_output === RUN Test_showVersion/sad_path,_no_DB_is_available === RUN Test_showVersion/sad_path,_bogus_cache_dir --- PASS: Test_showVersion (0.00s) --- PASS: Test_showVersion/happy_path,_table_output (0.00s) --- PASS: Test_showVersion/happy_path,_JSON_output (0.00s) --- PASS: Test_showVersion/sad_path,_no_DB_is_available (0.00s) --- PASS: Test_showVersion/sad_path,_bogus_cache_dir (0.00s) === RUN TestNewCommands --- PASS: TestNewCommands (0.00s) PASS coverage: 93.7% of statements ok github.com/aquasecurity/trivy/pkg/commands 0.202s coverage: 93.7% of statements === RUN TestOption_Init === RUN TestOption_Init/happy_path === RUN TestOption_Init/config_scanning === RUN TestOption_Init/happy_path:_reset === RUN TestOption_Init/happy_path_with_an_unknown_severity === RUN TestOption_Init/invalid_option_combination:_--template_enabled_without_--format === RUN TestOption_Init/invalid_option_combination:_--template_and_--format_json === RUN TestOption_Init/invalid_option_combination:_--format_template_without_--template === RUN TestOption_Init/sad:_skip_and_download_db === RUN TestOption_Init/sad:_multiple_image_names --- PASS: TestOption_Init (0.00s) --- PASS: TestOption_Init/happy_path (0.00s) --- PASS: TestOption_Init/config_scanning (0.00s) --- PASS: TestOption_Init/happy_path:_reset (0.00s) --- PASS: TestOption_Init/happy_path_with_an_unknown_severity (0.00s) --- PASS: TestOption_Init/invalid_option_combination:_--template_enabled_without_--format (0.00s) --- PASS: TestOption_Init/invalid_option_combination:_--template_and_--format_json (0.00s) --- PASS: TestOption_Init/invalid_option_combination:_--format_template_without_--template (0.00s) --- PASS: TestOption_Init/sad:_skip_and_download_db (0.00s) --- PASS: TestOption_Init/sad:_multiple_image_names (0.00s) PASS coverage: 8.5% of statements ok github.com/aquasecurity/trivy/pkg/commands/artifact 0.131s coverage: 8.5% of statements === RUN TestConfig_Init === RUN TestConfig_Init/happy_path === RUN TestConfig_Init/config_scanning === RUN TestConfig_Init/happy_path_with_token_and_token_header === RUN TestConfig_Init/happy_path_with_good_custom_headers === RUN TestConfig_Init/happy_path_with_bad_custom_headers === RUN TestConfig_Init/happy_path_with_an_unknown_severity === RUN TestConfig_Init/invalid_option_combination:_--template_enabled_without_--format === RUN TestConfig_Init/invalid_option_combination:_--template_and_--format_json === RUN TestConfig_Init/invalid_option_combination:_--format_template_without_--template === RUN TestConfig_Init/invalid_option_combination:_--format_template_without_--template#01 === RUN TestConfig_Init/sad:_multiple_image_names --- PASS: TestConfig_Init (0.00s) --- PASS: TestConfig_Init/happy_path (0.00s) --- PASS: TestConfig_Init/config_scanning (0.00s) --- PASS: TestConfig_Init/happy_path_with_token_and_token_header (0.00s) --- PASS: TestConfig_Init/happy_path_with_good_custom_headers (0.00s) --- PASS: TestConfig_Init/happy_path_with_bad_custom_headers (0.00s) --- PASS: TestConfig_Init/happy_path_with_an_unknown_severity (0.00s) --- PASS: TestConfig_Init/invalid_option_combination:_--template_enabled_without_--format (0.00s) --- PASS: TestConfig_Init/invalid_option_combination:_--template_and_--format_json (0.00s) --- PASS: TestConfig_Init/invalid_option_combination:_--format_template_without_--template (0.00s) --- PASS: TestConfig_Init/invalid_option_combination:_--format_template_without_--template#01 (0.00s) --- PASS: TestConfig_Init/sad:_multiple_image_names (0.00s) === RUN Test_splitCustomHeaders === RUN Test_splitCustomHeaders/happy_path --- PASS: Test_splitCustomHeaders (0.00s) --- PASS: Test_splitCustomHeaders/happy_path (0.00s) PASS coverage: 15.0% of statements ok github.com/aquasecurity/trivy/pkg/commands/client 0.145s coverage: 15.0% of statements ? github.com/aquasecurity/trivy/pkg/commands/operation [no test files] === RUN TestReportReportConfig_Init === RUN TestReportReportConfig_Init/happy_path === RUN TestReportReportConfig_Init/happy_path_with_an_unknown_severity === RUN TestReportReportConfig_Init/invalid_option_combination:_--template_enabled_without_--format === RUN TestReportReportConfig_Init/invalid_option_combination:_--template_and_--format_json === RUN TestReportReportConfig_Init/invalid_option_combination:_--format_template_without_--template --- PASS: TestReportReportConfig_Init (0.00s) --- PASS: TestReportReportConfig_Init/happy_path (0.00s) --- PASS: TestReportReportConfig_Init/happy_path_with_an_unknown_severity (0.00s) --- PASS: TestReportReportConfig_Init/invalid_option_combination:_--template_enabled_without_--format (0.00s) --- PASS: TestReportReportConfig_Init/invalid_option_combination:_--template_and_--format_json (0.00s) --- PASS: TestReportReportConfig_Init/invalid_option_combination:_--format_template_without_--template (0.00s) === RUN TestArtifactOption_Init === RUN TestArtifactOption_Init/happy_path === RUN TestArtifactOption_Init/sad:_multiple_image_names --- PASS: TestArtifactOption_Init (0.00s) --- PASS: TestArtifactOption_Init/happy_path (0.00s) --- PASS: TestArtifactOption_Init/sad:_multiple_image_names (0.00s) === RUN TestNewCacheOption === RUN TestNewCacheOption/happy_path === RUN TestNewCacheOption/default --- PASS: TestNewCacheOption (0.00s) --- PASS: TestNewCacheOption/happy_path (0.00s) --- PASS: TestNewCacheOption/default (0.00s) === RUN TestCacheOption_Init === RUN TestCacheOption_Init/fs === RUN TestCacheOption_Init/redis === RUN TestCacheOption_Init/sad_path --- PASS: TestCacheOption_Init (0.00s) --- PASS: TestCacheOption_Init/fs (0.00s) --- PASS: TestCacheOption_Init/redis (0.00s) --- PASS: TestCacheOption_Init/sad_path (0.00s) === RUN TestNewDBOption === RUN TestNewDBOption/happy_path --- PASS: TestNewDBOption (0.00s) --- PASS: TestNewDBOption/happy_path (0.00s) === RUN TestDBOption_Init === RUN TestDBOption_Init/happy_path === RUN TestDBOption_Init/sad_path --- PASS: TestDBOption_Init (0.00s) --- PASS: TestDBOption_Init/happy_path (0.00s) --- PASS: TestDBOption_Init/sad_path (0.00s) === RUN TestNewGlobalConfig === RUN TestNewGlobalConfig/happy_path --- PASS: TestNewGlobalConfig (0.00s) --- PASS: TestNewGlobalConfig/happy_path (0.00s) PASS coverage: 80.6% of statements ok github.com/aquasecurity/trivy/pkg/commands/option 0.011s coverage: 80.6% of statements ? github.com/aquasecurity/trivy/pkg/commands/plugin [no test files] === RUN TestNew === RUN TestNew/happy_path --- PASS: TestNew (0.00s) --- PASS: TestNew/happy_path (0.00s) === RUN TestConfig_Init === RUN TestConfig_Init/happy_path === RUN TestConfig_Init/happy_path:_reset === RUN TestConfig_Init/sad:_skip_and_download_db --- PASS: TestConfig_Init (0.00s) --- PASS: TestConfig_Init/happy_path (0.00s) --- PASS: TestConfig_Init/happy_path:_reset (0.00s) --- PASS: TestConfig_Init/sad:_skip_and_download_db (0.00s) PASS coverage: 21.4% of statements ok github.com/aquasecurity/trivy/pkg/commands/server 0.149s coverage: 21.4% of statements === RUN TestClient_NeedsUpdate === RUN TestClient_NeedsUpdate/happy_path === RUN TestClient_NeedsUpdate/happy_path_for_first_run === RUN TestClient_NeedsUpdate/happy_path_with_different_type === RUN TestClient_NeedsUpdate/happy_path_with_old_schema_version === RUN TestClient_NeedsUpdate/happy_path_with_--skip-update === RUN TestClient_NeedsUpdate/skip_downloading_DB === RUN TestClient_NeedsUpdate/newer_schema_version 2021-10-16T19:29:08.435Z ERROR Trivy version (test) is old. Update to the latest version. === RUN TestClient_NeedsUpdate/--skip-update_on_the_first_run 2021-10-16T19:29:08.435Z ERROR The first run cannot skip downloading DB === RUN TestClient_NeedsUpdate/--skip-update_with_different_schema_version 2021-10-16T19:29:08.435Z ERROR The local DB is old and needs to be updated === RUN TestClient_NeedsUpdate/happy_with_old_DownloadedAt === RUN TestClient_NeedsUpdate/skip_downloading_DB_with_recent_DownloadedAt --- PASS: TestClient_NeedsUpdate (0.00s) --- PASS: TestClient_NeedsUpdate/happy_path (0.00s) --- PASS: TestClient_NeedsUpdate/happy_path_for_first_run (0.00s) --- PASS: TestClient_NeedsUpdate/happy_path_with_different_type (0.00s) --- PASS: TestClient_NeedsUpdate/happy_path_with_old_schema_version (0.00s) --- PASS: TestClient_NeedsUpdate/happy_path_with_--skip-update (0.00s) --- PASS: TestClient_NeedsUpdate/skip_downloading_DB (0.00s) --- PASS: TestClient_NeedsUpdate/newer_schema_version (0.00s) --- PASS: TestClient_NeedsUpdate/--skip-update_on_the_first_run (0.00s) --- PASS: TestClient_NeedsUpdate/--skip-update_with_different_schema_version (0.00s) --- PASS: TestClient_NeedsUpdate/happy_with_old_DownloadedAt (0.00s) --- PASS: TestClient_NeedsUpdate/skip_downloading_DB_with_recent_DownloadedAt (0.00s) === RUN TestClient_Download === RUN TestClient_Download/happy_path db_test.go:264: PASS: DownloadDB(string,string) === RUN TestClient_Download/DownloadDB_returns_an_error db_test.go:264: PASS: DownloadDB(string,string) === RUN TestClient_Download/invalid_gzip db_test.go:264: PASS: DownloadDB(string,string) --- PASS: TestClient_Download (0.00s) --- PASS: TestClient_Download/happy_path (0.00s) --- PASS: TestClient_Download/DownloadDB_returns_an_error (0.00s) --- PASS: TestClient_Download/invalid_gzip (0.00s) === RUN TestClient_UpdateMetadata === RUN TestClient_UpdateMetadata/happy_path === RUN TestClient_UpdateMetadata/sad_path,_get_metadata_fails === RUN TestClient_UpdateMetadata/sad_path,_store_metadata_fails --- PASS: TestClient_UpdateMetadata (1.07s) --- PASS: TestClient_UpdateMetadata/happy_path (0.77s) --- PASS: TestClient_UpdateMetadata/sad_path,_get_metadata_fails (0.29s) --- PASS: TestClient_UpdateMetadata/sad_path,_store_metadata_fails (0.01s) PASS coverage: 56.8% of statements ok github.com/aquasecurity/trivy/pkg/db 1.080s coverage: 56.8% of statements ? github.com/aquasecurity/trivy/pkg/dbtest [no test files] === RUN TestAdvisory_DetectVulnerabilities === RUN TestAdvisory_DetectVulnerabilities/happy_path === RUN TestAdvisory_DetectVulnerabilities/no_patched_versions_in_the_advisory === RUN TestAdvisory_DetectVulnerabilities/no_vulnerable_versions_in_the_advisory === RUN TestAdvisory_DetectVulnerabilities/no_vulnerability --- PASS: TestAdvisory_DetectVulnerabilities (0.01s) --- PASS: TestAdvisory_DetectVulnerabilities/happy_path (0.01s) --- PASS: TestAdvisory_DetectVulnerabilities/no_patched_versions_in_the_advisory (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/no_vulnerable_versions_in_the_advisory (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/no_vulnerability (0.00s) === RUN TestDriver_Detect === RUN TestDriver_Detect/happy_path === RUN TestDriver_Detect/non-prefix_buckets === RUN TestDriver_Detect/no_patched_versions_in_the_advisory === RUN TestDriver_Detect/no_vulnerable_versions_in_the_advisory === RUN TestDriver_Detect/no_vulnerability --- PASS: TestDriver_Detect (0.01s) --- PASS: TestDriver_Detect/happy_path (0.00s) --- PASS: TestDriver_Detect/non-prefix_buckets (0.00s) --- PASS: TestDriver_Detect/no_patched_versions_in_the_advisory (0.00s) --- PASS: TestDriver_Detect/no_vulnerable_versions_in_the_advisory (0.00s) --- PASS: TestDriver_Detect/no_vulnerability (0.00s) PASS coverage: 39.0% of statements ok github.com/aquasecurity/trivy/pkg/detector/library 0.034s coverage: 39.0% of statements === RUN TestAdvisory_DetectVulnerabilities === RUN TestAdvisory_DetectVulnerabilities/detected === RUN TestAdvisory_DetectVulnerabilities/not_detected === RUN TestAdvisory_DetectVulnerabilities/invalid_JSON --- PASS: TestAdvisory_DetectVulnerabilities (0.01s) --- PASS: TestAdvisory_DetectVulnerabilities/detected (0.01s) --- PASS: TestAdvisory_DetectVulnerabilities/not_detected (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/invalid_JSON (0.00s) === RUN TestRubyGemsComparer_IsVulnerable === RUN TestRubyGemsComparer_IsVulnerable/happy_path === RUN TestRubyGemsComparer_IsVulnerable/pre-release === RUN TestRubyGemsComparer_IsVulnerable/pre-release_without_dot === RUN TestRubyGemsComparer_IsVulnerable/hyphen === RUN TestRubyGemsComparer_IsVulnerable/pessimistic === RUN TestRubyGemsComparer_IsVulnerable/invalid_version 2021-10-16T19:29:10.310Z WARN RubyGems version error (1.2..4): invalid gem version === RUN TestRubyGemsComparer_IsVulnerable/invalid_constraint 2021-10-16T19:29:10.311Z WARN RubyGems constraint error (!1.2.0): improper constraint: !1.2.0 --- PASS: TestRubyGemsComparer_IsVulnerable (0.00s) --- PASS: TestRubyGemsComparer_IsVulnerable/happy_path (0.00s) --- PASS: TestRubyGemsComparer_IsVulnerable/pre-release (0.00s) --- PASS: TestRubyGemsComparer_IsVulnerable/pre-release_without_dot (0.00s) --- PASS: TestRubyGemsComparer_IsVulnerable/hyphen (0.00s) --- PASS: TestRubyGemsComparer_IsVulnerable/pessimistic (0.00s) --- PASS: TestRubyGemsComparer_IsVulnerable/invalid_version (0.00s) --- PASS: TestRubyGemsComparer_IsVulnerable/invalid_constraint (0.00s) PASS coverage: 100.0% of statements ok github.com/aquasecurity/trivy/pkg/detector/library/bundler 0.023s coverage: 100.0% of statements === RUN TestAdvisory_DetectVulnerabilities === RUN TestAdvisory_DetectVulnerabilities/detected === RUN TestAdvisory_DetectVulnerabilities/not_detected === RUN TestAdvisory_DetectVulnerabilities/no_patched_version === RUN TestAdvisory_DetectVulnerabilities/invalid_JSON --- PASS: TestAdvisory_DetectVulnerabilities (0.01s) --- PASS: TestAdvisory_DetectVulnerabilities/detected (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/not_detected (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/no_patched_version (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/invalid_JSON (0.00s) PASS coverage: 100.0% of statements ok github.com/aquasecurity/trivy/pkg/detector/library/cargo 0.015s coverage: 100.0% of statements === RUN TestGenericComparer_IsVulnerable === RUN TestGenericComparer_IsVulnerable/happy_path === RUN TestGenericComparer_IsVulnerable/no_patch === RUN TestGenericComparer_IsVulnerable/pre-release === RUN TestGenericComparer_IsVulnerable/multiple_constraints === RUN TestGenericComparer_IsVulnerable/invalid_version 2021-10-16T19:29:07.934Z WARN version error (1.2..4): malformed version: 1.2..4 === RUN TestGenericComparer_IsVulnerable/improper_constraint 2021-10-16T19:29:07.934Z WARN constraint error (1.2.3): improper constraint: * === RUN TestGenericComparer_IsVulnerable/empty_patched_version === RUN TestGenericComparer_IsVulnerable/empty_vulnerable_&_patched_version --- PASS: TestGenericComparer_IsVulnerable (0.00s) --- PASS: TestGenericComparer_IsVulnerable/happy_path (0.00s) --- PASS: TestGenericComparer_IsVulnerable/no_patch (0.00s) --- PASS: TestGenericComparer_IsVulnerable/pre-release (0.00s) --- PASS: TestGenericComparer_IsVulnerable/multiple_constraints (0.00s) --- PASS: TestGenericComparer_IsVulnerable/invalid_version (0.00s) --- PASS: TestGenericComparer_IsVulnerable/improper_constraint (0.00s) --- PASS: TestGenericComparer_IsVulnerable/empty_patched_version (0.00s) --- PASS: TestGenericComparer_IsVulnerable/empty_vulnerable_&_patched_version (0.00s) PASS coverage: 89.3% of statements ok github.com/aquasecurity/trivy/pkg/detector/library/comparer 0.008s coverage: 89.3% of statements === RUN TestAdvisory_DetectVulnerabilities === RUN TestAdvisory_DetectVulnerabilities/detected === RUN TestAdvisory_DetectVulnerabilities/not_detected === RUN TestAdvisory_DetectVulnerabilities/malformed_JSON --- PASS: TestAdvisory_DetectVulnerabilities (0.01s) --- PASS: TestAdvisory_DetectVulnerabilities/detected (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/not_detected (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/malformed_JSON (0.00s) PASS coverage: 100.0% of statements ok github.com/aquasecurity/trivy/pkg/detector/library/composer 0.018s coverage: 100.0% of statements === RUN TestAdvisory_DetectVulnerabilities === RUN TestAdvisory_DetectVulnerabilities/composer_detected === RUN TestAdvisory_DetectVulnerabilities/nuget_detected === RUN TestAdvisory_DetectVulnerabilities/not_detected === RUN TestAdvisory_DetectVulnerabilities/malformed_JSON --- PASS: TestAdvisory_DetectVulnerabilities (0.01s) --- PASS: TestAdvisory_DetectVulnerabilities/composer_detected (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/nuget_detected (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/not_detected (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/malformed_JSON (0.00s) PASS coverage: 100.0% of statements ok github.com/aquasecurity/trivy/pkg/detector/library/ghsa 0.021s coverage: 100.0% of statements === RUN TestComparer_IsVulnerable === RUN TestComparer_IsVulnerable/happy_path === RUN TestComparer_IsVulnerable/final_release === RUN TestComparer_IsVulnerable/pre-release === RUN TestComparer_IsVulnerable/multiple_constraints === RUN TestComparer_IsVulnerable/version_requirements === RUN TestComparer_IsVulnerable/version_soft_requirements_happy === RUN TestComparer_IsVulnerable/version_soft_requirements === RUN TestComparer_IsVulnerable/invalid_constraint 2021-10-16T19:29:07.916Z WARN maven constraint error (<1.0\.0): failed to new comparer: 2 errors occurred: * improper constraint: <1.0\.0 * improper requirements: [] --- PASS: TestComparer_IsVulnerable (0.00s) --- PASS: TestComparer_IsVulnerable/happy_path (0.00s) --- PASS: TestComparer_IsVulnerable/final_release (0.00s) --- PASS: TestComparer_IsVulnerable/pre-release (0.00s) --- PASS: TestComparer_IsVulnerable/multiple_constraints (0.00s) --- PASS: TestComparer_IsVulnerable/version_requirements (0.00s) --- PASS: TestComparer_IsVulnerable/version_soft_requirements_happy (0.00s) --- PASS: TestComparer_IsVulnerable/version_soft_requirements (0.00s) --- PASS: TestComparer_IsVulnerable/invalid_constraint (0.00s) PASS coverage: 87.5% of statements ok github.com/aquasecurity/trivy/pkg/detector/library/maven 0.011s coverage: 87.5% of statements === RUN TestAdvisory_DetectVulnerabilities === RUN TestAdvisory_DetectVulnerabilities/detected === RUN TestAdvisory_DetectVulnerabilities/not_detected === RUN TestAdvisory_DetectVulnerabilities/empty_value === RUN TestAdvisory_DetectVulnerabilities/malformed_JSON --- PASS: TestAdvisory_DetectVulnerabilities (0.01s) --- PASS: TestAdvisory_DetectVulnerabilities/detected (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/not_detected (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/empty_value (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/malformed_JSON (0.00s) === RUN TestNpmComparer_IsVulnerable === RUN TestNpmComparer_IsVulnerable/happy_path === RUN TestNpmComparer_IsVulnerable/no_patch === RUN TestNpmComparer_IsVulnerable/no_patch_with_wildcard === RUN TestNpmComparer_IsVulnerable/pre-release === RUN TestNpmComparer_IsVulnerable/multiple_constraints === RUN TestNpmComparer_IsVulnerable/x === RUN TestNpmComparer_IsVulnerable/exact_versions === RUN TestNpmComparer_IsVulnerable/caret === RUN TestNpmComparer_IsVulnerable/invalid_version 2021-10-16T19:29:10.368Z WARN npm version error (1.2..4): invalid semantic version === RUN TestNpmComparer_IsVulnerable/invalid_constraint 2021-10-16T19:29:10.368Z WARN npm constraint error (!1.0.0): improper constraint: !1.0.0 --- PASS: TestNpmComparer_IsVulnerable (0.00s) --- PASS: TestNpmComparer_IsVulnerable/happy_path (0.00s) --- PASS: TestNpmComparer_IsVulnerable/no_patch (0.00s) --- PASS: TestNpmComparer_IsVulnerable/no_patch_with_wildcard (0.00s) --- PASS: TestNpmComparer_IsVulnerable/pre-release (0.00s) --- PASS: TestNpmComparer_IsVulnerable/multiple_constraints (0.00s) --- PASS: TestNpmComparer_IsVulnerable/x (0.00s) --- PASS: TestNpmComparer_IsVulnerable/exact_versions (0.00s) --- PASS: TestNpmComparer_IsVulnerable/caret (0.00s) --- PASS: TestNpmComparer_IsVulnerable/invalid_version (0.00s) --- PASS: TestNpmComparer_IsVulnerable/invalid_constraint (0.00s) PASS coverage: 100.0% of statements ok github.com/aquasecurity/trivy/pkg/detector/library/npm 0.020s coverage: 100.0% of statements === RUN TestAdvisory_DetectVulnerabilities === RUN TestAdvisory_DetectVulnerabilities/detected === RUN TestAdvisory_DetectVulnerabilities/not_detected === RUN TestAdvisory_DetectVulnerabilities/malformed_JSON --- PASS: TestAdvisory_DetectVulnerabilities (0.01s) --- PASS: TestAdvisory_DetectVulnerabilities/detected (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/not_detected (0.00s) --- PASS: TestAdvisory_DetectVulnerabilities/malformed_JSON (0.00s) === RUN TestPep440Comparer_IsVulnerable === RUN TestPep440Comparer_IsVulnerable/happy_path === RUN TestPep440Comparer_IsVulnerable/no_patch === RUN TestPep440Comparer_IsVulnerable/no_patch_with_wildcard === RUN TestPep440Comparer_IsVulnerable/pre-release === RUN TestPep440Comparer_IsVulnerable/multiple_constraints === RUN TestPep440Comparer_IsVulnerable/exact_versions === RUN TestPep440Comparer_IsVulnerable/invalid_version 2021-10-16T19:29:10.318Z WARN python version error (1.2..4): malformed version: 1.2..4 === RUN TestPep440Comparer_IsVulnerable/invalid_constraint 2021-10-16T19:29:10.318Z WARN python constraint error (!1.0.0): improper constraint: !1.0.0 --- PASS: TestPep440Comparer_IsVulnerable (0.00s) --- PASS: TestPep440Comparer_IsVulnerable/happy_path (0.00s) --- PASS: TestPep440Comparer_IsVulnerable/no_patch (0.00s) --- PASS: TestPep440Comparer_IsVulnerable/no_patch_with_wildcard (0.00s) --- PASS: TestPep440Comparer_IsVulnerable/pre-release (0.00s) --- PASS: TestPep440Comparer_IsVulnerable/multiple_constraints (0.00s) --- PASS: TestPep440Comparer_IsVulnerable/exact_versions (0.00s) --- PASS: TestPep440Comparer_IsVulnerable/invalid_version (0.00s) --- PASS: TestPep440Comparer_IsVulnerable/invalid_constraint (0.00s) PASS coverage: 100.0% of statements ok github.com/aquasecurity/trivy/pkg/detector/library/python 0.023s coverage: 100.0% of statements ? github.com/aquasecurity/trivy/pkg/detector/ospkg [no test files] === RUN TestScanner_Detect === RUN TestScanner_Detect/happy_path 2021-10-16T19:29:10.369Z INFO Detecting Alpine vulnerabilities... === RUN TestScanner_Detect/contain_rc 2021-10-16T19:29:10.373Z INFO Detecting Alpine vulnerabilities... === RUN TestScanner_Detect/contain_pre 2021-10-16T19:29:10.377Z INFO Detecting Alpine vulnerabilities... === RUN TestScanner_Detect/Get_returns_an_error 2021-10-16T19:29:10.379Z INFO Detecting Alpine vulnerabilities... --- PASS: TestScanner_Detect (0.01s) --- PASS: TestScanner_Detect/happy_path (0.00s) --- PASS: TestScanner_Detect/contain_rc (0.00s) --- PASS: TestScanner_Detect/contain_pre (0.00s) --- PASS: TestScanner_Detect/Get_returns_an_error (0.00s) === RUN TestScanner_IsSupportedVersion === RUN TestScanner_IsSupportedVersion/alpine_3.6 === RUN TestScanner_IsSupportedVersion/alpine_3.6_with_EOL === RUN TestScanner_IsSupportedVersion/alpine_3.9 === RUN TestScanner_IsSupportedVersion/alpine_3.10 === RUN TestScanner_IsSupportedVersion/unknown 2021-10-16T19:29:10.380Z WARN This OS version is not on the EOL list: alpine unknown --- PASS: TestScanner_IsSupportedVersion (0.00s) --- PASS: TestScanner_IsSupportedVersion/alpine_3.6 (0.00s) --- PASS: TestScanner_IsSupportedVersion/alpine_3.6_with_EOL (0.00s) --- PASS: TestScanner_IsSupportedVersion/alpine_3.9 (0.00s) --- PASS: TestScanner_IsSupportedVersion/alpine_3.10 (0.00s) --- PASS: TestScanner_IsSupportedVersion/unknown (0.00s) PASS coverage: 95.7% of statements ok github.com/aquasecurity/trivy/pkg/detector/ospkg/alpine 0.022s coverage: 95.7% of statements === RUN TestScanner_Detect === RUN TestScanner_Detect/amazon_linux_1 2021-10-16T19:29:10.479Z INFO Detecting Amazon Linux vulnerabilities... === RUN TestScanner_Detect/amazon_linux_2 2021-10-16T19:29:10.482Z INFO Detecting Amazon Linux vulnerabilities... === RUN TestScanner_Detect/empty_version 2021-10-16T19:29:10.484Z INFO Detecting Amazon Linux vulnerabilities... === RUN TestScanner_Detect/Get_returns_an_error 2021-10-16T19:29:10.486Z INFO Detecting Amazon Linux vulnerabilities... --- PASS: TestScanner_Detect (0.01s) --- PASS: TestScanner_Detect/amazon_linux_1 (0.00s) --- PASS: TestScanner_Detect/amazon_linux_2 (0.00s) --- PASS: TestScanner_Detect/empty_version (0.00s) --- PASS: TestScanner_Detect/Get_returns_an_error (0.00s) === RUN TestScanner_IsSupportedVersion === RUN TestScanner_IsSupportedVersion/amazon_linux_1 === RUN TestScanner_IsSupportedVersion/amazon_linux_1_EOL === RUN TestScanner_IsSupportedVersion/amazon_linux_2 --- PASS: TestScanner_IsSupportedVersion (0.00s) --- PASS: TestScanner_IsSupportedVersion/amazon_linux_1 (0.00s) --- PASS: TestScanner_IsSupportedVersion/amazon_linux_1_EOL (0.00s) --- PASS: TestScanner_IsSupportedVersion/amazon_linux_2 (0.00s) PASS coverage: 85.4% of statements ok github.com/aquasecurity/trivy/pkg/detector/ospkg/amazon 0.018s coverage: 85.4% of statements === RUN TestScanner_Detect === RUN TestScanner_Detect/happy_path 2021-10-16T19:29:10.370Z INFO Detecting Debian vulnerabilities... === RUN TestScanner_Detect/invalid_bucket 2021-10-16T19:29:10.373Z INFO Detecting Debian vulnerabilities... --- PASS: TestScanner_Detect (0.01s) --- PASS: TestScanner_Detect/happy_path (0.00s) --- PASS: TestScanner_Detect/invalid_bucket (0.00s) === RUN TestScanner_IsSupportedVersion === RUN TestScanner_IsSupportedVersion/debian_7 === RUN TestScanner_IsSupportedVersion/debian_8_EOL === RUN TestScanner_IsSupportedVersion/unknown 2021-10-16T19:29:10.374Z WARN This OS version is not on the EOL list: debian unknown --- PASS: TestScanner_IsSupportedVersion (0.00s) --- PASS: TestScanner_IsSupportedVersion/debian_7 (0.00s) --- PASS: TestScanner_IsSupportedVersion/debian_8_EOL (0.00s) --- PASS: TestScanner_IsSupportedVersion/unknown (0.00s) PASS coverage: 90.9% of statements ok github.com/aquasecurity/trivy/pkg/detector/ospkg/debian 0.015s coverage: 90.9% of statements === RUN TestScanner_IsSupportedVersion === RUN TestScanner_IsSupportedVersion/oracle5 === RUN TestScanner_IsSupportedVersion/oracle8-same-time === RUN TestScanner_IsSupportedVersion/unknown 2021-10-16T19:29:10.464Z WARN This OS version is not on the EOL list: oracle unknown === RUN TestScanner_IsSupportedVersion/oracle3 === RUN TestScanner_IsSupportedVersion/oracle4 === RUN TestScanner_IsSupportedVersion/oracle6 === RUN TestScanner_IsSupportedVersion/oracle7 === RUN TestScanner_IsSupportedVersion/oracle7.6 === RUN TestScanner_IsSupportedVersion/oracle8 --- PASS: TestScanner_IsSupportedVersion (0.00s) --- PASS: TestScanner_IsSupportedVersion/oracle5 (0.00s) --- PASS: TestScanner_IsSupportedVersion/oracle8-same-time (0.00s) --- PASS: TestScanner_IsSupportedVersion/unknown (0.00s) --- PASS: TestScanner_IsSupportedVersion/oracle3 (0.00s) --- PASS: TestScanner_IsSupportedVersion/oracle4 (0.00s) --- PASS: TestScanner_IsSupportedVersion/oracle6 (0.00s) --- PASS: TestScanner_IsSupportedVersion/oracle7 (0.00s) --- PASS: TestScanner_IsSupportedVersion/oracle7.6 (0.00s) --- PASS: TestScanner_IsSupportedVersion/oracle8 (0.00s) === RUN TestScanner_Detect === RUN TestScanner_Detect/detected 2021-10-16T19:29:10.467Z INFO Detecting Oracle Linux vulnerabilities... === RUN TestScanner_Detect/without_ksplice 2021-10-16T19:29:10.469Z INFO Detecting Oracle Linux vulnerabilities... === RUN TestScanner_Detect/the_installed_version_has_ksplice2 2021-10-16T19:29:10.471Z INFO Detecting Oracle Linux vulnerabilities... === RUN TestScanner_Detect/with_ksplice 2021-10-16T19:29:10.473Z INFO Detecting Oracle Linux vulnerabilities... === RUN TestScanner_Detect/malformed 2021-10-16T19:29:10.474Z INFO Detecting Oracle Linux vulnerabilities... --- PASS: TestScanner_Detect (0.01s) --- PASS: TestScanner_Detect/detected (0.00s) --- PASS: TestScanner_Detect/without_ksplice (0.00s) --- PASS: TestScanner_Detect/the_installed_version_has_ksplice2 (0.00s) --- PASS: TestScanner_Detect/with_ksplice (0.00s) --- PASS: TestScanner_Detect/malformed (0.00s) PASS coverage: 97.1% of statements ok github.com/aquasecurity/trivy/pkg/detector/ospkg/oracle 0.016s coverage: 97.1% of statements === RUN TestScanner_Detect === RUN TestScanner_Detect/happy_path 2021-10-16T19:29:10.315Z INFO Detecting Photon Linux vulnerabilities... === RUN TestScanner_Detect/invalid_bucket 2021-10-16T19:29:10.318Z INFO Detecting Photon Linux vulnerabilities... --- PASS: TestScanner_Detect (0.01s) --- PASS: TestScanner_Detect/happy_path (0.00s) --- PASS: TestScanner_Detect/invalid_bucket (0.00s) PASS coverage: 94.7% of statements ok github.com/aquasecurity/trivy/pkg/detector/ospkg/photon 0.014s coverage: 94.7% of statements === RUN TestScanner_Detect === RUN TestScanner_Detect/happy_path:_src_pkg_name_is_different_from_bin_pkg_name 2021-10-16T19:29:10.500Z INFO Detecting RHEL/CentOS vulnerabilities... === RUN TestScanner_Detect/happy_path:_src_pkg_name_is_the_same_as_bin_pkg_name 2021-10-16T19:29:10.503Z INFO Detecting RHEL/CentOS vulnerabilities... === RUN TestScanner_Detect/happy_path:_modular_packages 2021-10-16T19:29:10.506Z INFO Detecting RHEL/CentOS vulnerabilities... === RUN TestScanner_Detect/happy_path:_packages_from_remi_repository_are_skipped 2021-10-16T19:29:10.509Z INFO Detecting RHEL/CentOS vulnerabilities... === RUN TestScanner_Detect/invalid_bucket 2021-10-16T19:29:10.511Z INFO Detecting RHEL/CentOS vulnerabilities... --- PASS: TestScanner_Detect (0.01s) --- PASS: TestScanner_Detect/happy_path:_src_pkg_name_is_different_from_bin_pkg_name (0.00s) --- PASS: TestScanner_Detect/happy_path:_src_pkg_name_is_the_same_as_bin_pkg_name (0.00s) --- PASS: TestScanner_Detect/happy_path:_modular_packages (0.00s) --- PASS: TestScanner_Detect/happy_path:_packages_from_remi_repository_are_skipped (0.00s) --- PASS: TestScanner_Detect/invalid_bucket (0.00s) === RUN TestScanner_IsSupportedVersion === RUN TestScanner_IsSupportedVersion/centos_6 === RUN TestScanner_IsSupportedVersion/centos_6_EOL === RUN TestScanner_IsSupportedVersion/two_dots === RUN TestScanner_IsSupportedVersion/rhel_8 === RUN TestScanner_IsSupportedVersion/unknown 2021-10-16T19:29:10.511Z WARN This OS version is not on the EOL list: unknown 8 --- PASS: TestScanner_IsSupportedVersion (0.00s) --- PASS: TestScanner_IsSupportedVersion/centos_6 (0.00s) --- PASS: TestScanner_IsSupportedVersion/centos_6_EOL (0.00s) --- PASS: TestScanner_IsSupportedVersion/two_dots (0.00s) --- PASS: TestScanner_IsSupportedVersion/rhel_8 (0.00s) --- PASS: TestScanner_IsSupportedVersion/unknown (0.00s) PASS coverage: 98.3% of statements ok github.com/aquasecurity/trivy/pkg/detector/ospkg/redhat 0.019s coverage: 98.3% of statements === RUN TestScanner_Detect === RUN TestScanner_Detect/happy_path 2021-10-16T19:29:10.560Z INFO Detecting SUSE vulnerabilities... === RUN TestScanner_Detect/broken_bucket 2021-10-16T19:29:10.562Z INFO Detecting SUSE vulnerabilities... --- PASS: TestScanner_Detect (0.01s) --- PASS: TestScanner_Detect/happy_path (0.00s) --- PASS: TestScanner_Detect/broken_bucket (0.00s) === RUN TestScanner_IsSupportedVersion === RUN TestScanner_IsSupportedVersion/opensuse.leap42.3 === RUN TestScanner_IsSupportedVersion/sles12.3 === RUN TestScanner_IsSupportedVersion/unknown 2021-10-16T19:29:10.563Z WARN This OS version is not on the EOL list: unknown unknown --- PASS: TestScanner_IsSupportedVersion (0.00s) --- PASS: TestScanner_IsSupportedVersion/opensuse.leap42.3 (0.00s) --- PASS: TestScanner_IsSupportedVersion/sles12.3 (0.00s) --- PASS: TestScanner_IsSupportedVersion/unknown (0.00s) PASS coverage: 97.2% of statements ok github.com/aquasecurity/trivy/pkg/detector/ospkg/suse 0.012s coverage: 97.2% of statements === RUN TestScanner_Detect === RUN TestScanner_Detect/happy_path 2021-10-16T19:29:10.560Z INFO Detecting Ubuntu vulnerabilities... === RUN TestScanner_Detect/broken_bucket 2021-10-16T19:29:10.563Z INFO Detecting Ubuntu vulnerabilities... --- PASS: TestScanner_Detect (0.01s) --- PASS: TestScanner_Detect/happy_path (0.00s) --- PASS: TestScanner_Detect/broken_bucket (0.00s) === RUN TestScanner_IsSupportedVersion === RUN TestScanner_IsSupportedVersion/ubuntu_12.04_eol_ends === RUN TestScanner_IsSupportedVersion/ubuntu12.04 === RUN TestScanner_IsSupportedVersion/unknown 2021-10-16T19:29:10.564Z WARN This OS version is not on the EOL list: ubuntu unknown --- PASS: TestScanner_IsSupportedVersion (0.00s) --- PASS: TestScanner_IsSupportedVersion/ubuntu_12.04_eol_ends (0.00s) --- PASS: TestScanner_IsSupportedVersion/ubuntu12.04 (0.00s) --- PASS: TestScanner_IsSupportedVersion/unknown (0.00s) PASS coverage: 88.9% of statements ok github.com/aquasecurity/trivy/pkg/detector/ospkg/ubuntu 0.012s coverage: 88.9% of statements ? github.com/aquasecurity/trivy/pkg/downloader [no test files] === RUN TestClient_DownloadDB === RUN TestClient_DownloadDB/happy_path github_test.go:455: PASS: ListReleases(string,string) github_test.go:455: PASS: DownloadAsset(string,int64) === RUN TestClient_DownloadDB/happy_path_with_redirect_URL github_test.go:455: PASS: ListReleases(string,string) github_test.go:455: PASS: DownloadAsset(string,int64) === RUN TestClient_DownloadDB/happy_path_with_inorder_releases github_test.go:455: PASS: ListReleases(string,string) github_test.go:455: PASS: DownloadAsset(string,int64) === RUN TestClient_DownloadDB/happy_path_with_no_asset github_test.go:455: PASS: ListReleases(string,string) github_test.go:455: PASS: DownloadAsset(string,int64) === RUN TestClient_DownloadDB/no_asset github_test.go:455: PASS: ListReleases(string,string) === RUN TestClient_DownloadDB/the_file_name_doesn't_match github_test.go:455: PASS: ListReleases(string,string) === RUN TestClient_DownloadDB/ListReleases_returns_error github_test.go:455: PASS: ListReleases(string,string) === RUN TestClient_DownloadDB/DownloadAsset_returns_error github_test.go:455: PASS: ListReleases(string,string) github_test.go:455: PASS: DownloadAsset(string,int64) === RUN TestClient_DownloadDB/404_error github_test.go:455: PASS: ListReleases(string,string) github_test.go:455: PASS: DownloadAsset(string,int64) --- PASS: TestClient_DownloadDB (0.01s) --- PASS: TestClient_DownloadDB/happy_path (0.00s) --- PASS: TestClient_DownloadDB/happy_path_with_redirect_URL (0.00s) --- PASS: TestClient_DownloadDB/happy_path_with_inorder_releases (0.00s) --- PASS: TestClient_DownloadDB/happy_path_with_no_asset (0.00s) --- PASS: TestClient_DownloadDB/no_asset (0.00s) --- PASS: TestClient_DownloadDB/the_file_name_doesn't_match (0.00s) --- PASS: TestClient_DownloadDB/ListReleases_returns_error (0.00s) --- PASS: TestClient_DownloadDB/DownloadAsset_returns_error (0.00s) --- PASS: TestClient_DownloadDB/404_error (0.00s) PASS coverage: 50.0% of statements ok github.com/aquasecurity/trivy/pkg/github 0.368s coverage: 50.0% of statements ? github.com/aquasecurity/trivy/pkg/indicator [no test files] ? github.com/aquasecurity/trivy/pkg/log [no test files] === RUN TestPlugin_Run === RUN TestPlugin_Run/happy_path foo === RUN TestPlugin_Run/no_selector foo === RUN TestPlugin_Run/no_matched_platform === RUN TestPlugin_Run/no_execution_file === RUN TestPlugin_Run/plugin_exec_error --- PASS: TestPlugin_Run (0.03s) --- PASS: TestPlugin_Run/happy_path (0.01s) --- PASS: TestPlugin_Run/no_selector (0.00s) --- PASS: TestPlugin_Run/no_matched_platform (0.00s) --- PASS: TestPlugin_Run/no_execution_file (0.01s) --- PASS: TestPlugin_Run/plugin_exec_error (0.01s) === RUN TestInstall === RUN TestInstall/happy_path === RUN TestInstall/plugin_not_found === RUN TestInstall/no_plugin.yaml --- PASS: TestInstall (0.00s) --- PASS: TestInstall/happy_path (0.00s) --- PASS: TestInstall/plugin_not_found (0.00s) --- PASS: TestInstall/no_plugin.yaml (0.00s) === RUN TestUninstall --- PASS: TestUninstall (0.00s) === RUN TestLoadAll1 === RUN TestLoadAll1/happy_path === RUN TestLoadAll1/sad_path --- PASS: TestLoadAll1 (0.00s) --- PASS: TestLoadAll1/happy_path (0.00s) --- PASS: TestLoadAll1/sad_path (0.00s) PASS coverage: 84.2% of statements ok github.com/aquasecurity/trivy/pkg/plugin 0.088s coverage: 84.2% of statements === RUN TestClient_LoadBuiltinPolicies === RUN TestClient_LoadBuiltinPolicies/happy_path === RUN TestClient_LoadBuiltinPolicies/empty_roots === RUN TestClient_LoadBuiltinPolicies/broken_manifest === RUN TestClient_LoadBuiltinPolicies/no_such_file --- PASS: TestClient_LoadBuiltinPolicies (0.00s) --- PASS: TestClient_LoadBuiltinPolicies/happy_path (0.00s) --- PASS: TestClient_LoadBuiltinPolicies/empty_roots (0.00s) --- PASS: TestClient_LoadBuiltinPolicies/broken_manifest (0.00s) --- PASS: TestClient_LoadBuiltinPolicies/no_such_file (0.00s) === RUN TestClient_NeedsUpdate === RUN TestClient_NeedsUpdate/recent_download === RUN TestClient_NeedsUpdate/same_digest === RUN TestClient_NeedsUpdate/different_digest === RUN TestClient_NeedsUpdate/sad:_Digest_returns__an_error === RUN TestClient_NeedsUpdate/sad:_non-existent_metadata === RUN TestClient_NeedsUpdate/sad:_broken_metadata 2021-10-16T19:29:10.286Z WARN Policy metadata decode error: json: cannot unmarshal string into Go value of type policy.Metadata --- PASS: TestClient_NeedsUpdate (0.00s) --- PASS: TestClient_NeedsUpdate/recent_download (0.00s) --- PASS: TestClient_NeedsUpdate/same_digest (0.00s) --- PASS: TestClient_NeedsUpdate/different_digest (0.00s) --- PASS: TestClient_NeedsUpdate/sad:_Digest_returns__an_error (0.00s) --- PASS: TestClient_NeedsUpdate/sad:_non-existent_metadata (0.00s) --- PASS: TestClient_NeedsUpdate/sad:_broken_metadata (0.00s) === RUN TestClient_DownloadBuiltinPolicies === RUN TestClient_DownloadBuiltinPolicies/happy_path === RUN TestClient_DownloadBuiltinPolicies/sad:_two_layers === RUN TestClient_DownloadBuiltinPolicies/sad:_Layers_returns_an_error === RUN TestClient_DownloadBuiltinPolicies/sad:_Digest_returns_an_error --- PASS: TestClient_DownloadBuiltinPolicies (0.00s) --- PASS: TestClient_DownloadBuiltinPolicies/happy_path (0.00s) --- PASS: TestClient_DownloadBuiltinPolicies/sad:_two_layers (0.00s) --- PASS: TestClient_DownloadBuiltinPolicies/sad:_Layers_returns_an_error (0.00s) --- PASS: TestClient_DownloadBuiltinPolicies/sad:_Digest_returns_an_error (0.00s) PASS coverage: 79.8% of statements ok github.com/aquasecurity/trivy/pkg/policy 0.031s coverage: 79.8% of statements === RUN TestReportWriter_toSarifRuleName === RUN TestReportWriter_toSarifRuleName/ubuntu === RUN TestReportWriter_toSarifRuleName/alpine === RUN TestReportWriter_toSarifRuleName/redhat === RUN TestReportWriter_toSarifRuleName/redhat-oval === RUN TestReportWriter_toSarifRuleName/debian === RUN TestReportWriter_toSarifRuleName/debian-oval === RUN TestReportWriter_toSarifRuleName/fedora === RUN TestReportWriter_toSarifRuleName/amazon === RUN TestReportWriter_toSarifRuleName/oracle-oval === RUN TestReportWriter_toSarifRuleName/suse-cvrf === RUN TestReportWriter_toSarifRuleName/opensuse-cvrf === RUN TestReportWriter_toSarifRuleName/photon === RUN TestReportWriter_toSarifRuleName/centos === RUN TestReportWriter_toSarifRuleName/npm === RUN TestReportWriter_toSarifRuleName/yarn === RUN TestReportWriter_toSarifRuleName/nuget === RUN TestReportWriter_toSarifRuleName/pipenv === RUN TestReportWriter_toSarifRuleName/poetry === RUN TestReportWriter_toSarifRuleName/bundler === RUN TestReportWriter_toSarifRuleName/cargo === RUN TestReportWriter_toSarifRuleName/composer === RUN TestReportWriter_toSarifRuleName/redis --- PASS: TestReportWriter_toSarifRuleName (0.00s) --- PASS: TestReportWriter_toSarifRuleName/ubuntu (0.00s) --- PASS: TestReportWriter_toSarifRuleName/alpine (0.00s) --- PASS: TestReportWriter_toSarifRuleName/redhat (0.00s) --- PASS: TestReportWriter_toSarifRuleName/redhat-oval (0.00s) --- PASS: TestReportWriter_toSarifRuleName/debian (0.00s) --- PASS: TestReportWriter_toSarifRuleName/debian-oval (0.00s) --- PASS: TestReportWriter_toSarifRuleName/fedora (0.00s) --- PASS: TestReportWriter_toSarifRuleName/amazon (0.00s) --- PASS: TestReportWriter_toSarifRuleName/oracle-oval (0.00s) --- PASS: TestReportWriter_toSarifRuleName/suse-cvrf (0.00s) --- PASS: TestReportWriter_toSarifRuleName/opensuse-cvrf (0.00s) --- PASS: TestReportWriter_toSarifRuleName/photon (0.00s) --- PASS: TestReportWriter_toSarifRuleName/centos (0.00s) --- PASS: TestReportWriter_toSarifRuleName/npm (0.00s) --- PASS: TestReportWriter_toSarifRuleName/yarn (0.00s) --- PASS: TestReportWriter_toSarifRuleName/nuget (0.00s) --- PASS: TestReportWriter_toSarifRuleName/pipenv (0.00s) --- PASS: TestReportWriter_toSarifRuleName/poetry (0.00s) --- PASS: TestReportWriter_toSarifRuleName/bundler (0.00s) --- PASS: TestReportWriter_toSarifRuleName/cargo (0.00s) --- PASS: TestReportWriter_toSarifRuleName/composer (0.00s) --- PASS: TestReportWriter_toSarifRuleName/redis (0.00s) === RUN TestReportWriter_toSarifErrorLevel === RUN TestReportWriter_toSarifErrorLevel/CRITICAL === RUN TestReportWriter_toSarifErrorLevel/HIGH === RUN TestReportWriter_toSarifErrorLevel/MEDIUM === RUN TestReportWriter_toSarifErrorLevel/LOW === RUN TestReportWriter_toSarifErrorLevel/UNKNOWN === RUN TestReportWriter_toSarifErrorLevel/OTHER --- PASS: TestReportWriter_toSarifErrorLevel (0.00s) --- PASS: TestReportWriter_toSarifErrorLevel/CRITICAL (0.00s) --- PASS: TestReportWriter_toSarifErrorLevel/HIGH (0.00s) --- PASS: TestReportWriter_toSarifErrorLevel/MEDIUM (0.00s) --- PASS: TestReportWriter_toSarifErrorLevel/LOW (0.00s) --- PASS: TestReportWriter_toSarifErrorLevel/UNKNOWN (0.00s) --- PASS: TestReportWriter_toSarifErrorLevel/OTHER (0.00s) === RUN TestReportWriter_JSON === RUN TestReportWriter_JSON/happy_path --- PASS: TestReportWriter_JSON (0.00s) --- PASS: TestReportWriter_JSON/happy_path (0.00s) === RUN TestReportWriter_Table === RUN TestReportWriter_Table/happy_path_full test () ======= Total: 0 () === RUN TestReportWriter_Table/happy_path_light test () ======= Total: 0 () === RUN TestReportWriter_Table/no_title_for_vuln_and_missing_primary_link test () ======= Total: 0 () === RUN TestReportWriter_Table/long_title_for_vuln test () ======= Total: 0 () === RUN TestReportWriter_Table/happy_path_misconfigurations test () ======= Total: 0 () === RUN TestReportWriter_Table/happy_path_misconfigurations_with_successes test () ======= Total: 0 () === RUN TestReportWriter_Table/no_vulns --- PASS: TestReportWriter_Table (0.01s) --- PASS: TestReportWriter_Table/happy_path_full (0.00s) --- PASS: TestReportWriter_Table/happy_path_light (0.00s) --- PASS: TestReportWriter_Table/no_title_for_vuln_and_missing_primary_link (0.00s) --- PASS: TestReportWriter_Table/long_title_for_vuln (0.00s) --- PASS: TestReportWriter_Table/happy_path_misconfigurations (0.00s) --- PASS: TestReportWriter_Table/happy_path_misconfigurations_with_successes (0.00s) --- PASS: TestReportWriter_Table/no_vulns (0.00s) === RUN TestReportWriter_Template === RUN TestReportWriter_Template/happy_path === RUN TestReportWriter_Template/happy_path#01 === RUN TestReportWriter_Template/happy_path_with/without_period_description_should_return_with_period === RUN TestReportWriter_Template/Calculate_using_sprig === RUN TestReportWriter_Template/happy_path:_env_var_parsing_and_getCurrentTime --- PASS: TestReportWriter_Template (0.00s) --- PASS: TestReportWriter_Template/happy_path (0.00s) --- PASS: TestReportWriter_Template/happy_path#01 (0.00s) --- PASS: TestReportWriter_Template/happy_path_with/without_period_description_should_return_with_period (0.00s) --- PASS: TestReportWriter_Template/Calculate_using_sprig (0.00s) --- PASS: TestReportWriter_Template/happy_path:_env_var_parsing_and_getCurrentTime (0.00s) === RUN TestReportWriter_Template_SARIF --- PASS: TestReportWriter_Template_SARIF (0.00s) === RUN TestResults_Failed === RUN TestResults_Failed/no_vulnerabilities_and_misconfigurations === RUN TestResults_Failed/vulnerabilities_found === RUN TestResults_Failed/failed_misconfigurations === RUN TestResults_Failed/passed_misconfigurations --- PASS: TestResults_Failed (0.00s) --- PASS: TestResults_Failed/no_vulnerabilities_and_misconfigurations (0.00s) --- PASS: TestResults_Failed/vulnerabilities_found (0.00s) --- PASS: TestResults_Failed/failed_misconfigurations (0.00s) --- PASS: TestResults_Failed/passed_misconfigurations (0.00s) PASS coverage: 71.8% of statements ok github.com/aquasecurity/trivy/pkg/report 0.042s coverage: 71.8% of statements === RUN TestClient_FillVulnerabilityInfo === RUN TestClient_FillVulnerabilityInfo/happy_path,_with_only_OS_vulnerability_but_no_vendor_severity,_no_NVD === RUN TestClient_FillVulnerabilityInfo/happy_path,_with_only_OS_vulnerability_but_no_vendor_severity,_yes_NVD === RUN TestClient_FillVulnerabilityInfo/happy_path,_with_only_OS_vulnerability_but_no_severity,_no_vendor_severity,_no_NVD === RUN TestClient_FillVulnerabilityInfo/happy_path,_with_only_OS_vulnerability,_yes_vendor_severity,_with_both_NVD_and_CVSS_info === RUN TestClient_FillVulnerabilityInfo/happy_path_light_db,_with_only_OS_vulnerability,_yes_vendor_severity === RUN TestClient_FillVulnerabilityInfo/happy_path_light_db,_with_only_OS_vulnerability,_no_vendor_severity === RUN TestClient_FillVulnerabilityInfo/happy_path,_with_only_library_vulnerability === RUN TestClient_FillVulnerabilityInfo/happy_path,_with_package-specific_severity === RUN TestClient_FillVulnerabilityInfo/GetVulnerability_returns_an_error 2021-10-16T19:29:11.280Z WARN Error while getting vulnerability details: failed to get the vulnerability: failed to marshal JSON: unexpected end of JSON input --- PASS: TestClient_FillVulnerabilityInfo (0.02s) --- PASS: TestClient_FillVulnerabilityInfo/happy_path,_with_only_OS_vulnerability_but_no_vendor_severity,_no_NVD (0.01s) --- PASS: TestClient_FillVulnerabilityInfo/happy_path,_with_only_OS_vulnerability_but_no_vendor_severity,_yes_NVD (0.00s) --- PASS: TestClient_FillVulnerabilityInfo/happy_path,_with_only_OS_vulnerability_but_no_severity,_no_vendor_severity,_no_NVD (0.00s) --- PASS: TestClient_FillVulnerabilityInfo/happy_path,_with_only_OS_vulnerability,_yes_vendor_severity,_with_both_NVD_and_CVSS_info (0.00s) --- PASS: TestClient_FillVulnerabilityInfo/happy_path_light_db,_with_only_OS_vulnerability,_yes_vendor_severity (0.00s) --- PASS: TestClient_FillVulnerabilityInfo/happy_path_light_db,_with_only_OS_vulnerability,_no_vendor_severity (0.00s) --- PASS: TestClient_FillVulnerabilityInfo/happy_path,_with_only_library_vulnerability (0.00s) --- PASS: TestClient_FillVulnerabilityInfo/happy_path,_with_package-specific_severity (0.00s) --- PASS: TestClient_FillVulnerabilityInfo/GetVulnerability_returns_an_error (0.00s) === RUN TestClient_getPrimaryURL === RUN TestClient_getPrimaryURL/CVE-ID === RUN TestClient_getPrimaryURL/RUSTSEC === RUN TestClient_getPrimaryURL/GHSA === RUN TestClient_getPrimaryURL/Debian_temp_vulnerability === RUN TestClient_getPrimaryURL/npm === RUN TestClient_getPrimaryURL/suse --- PASS: TestClient_getPrimaryURL (0.00s) --- PASS: TestClient_getPrimaryURL/CVE-ID (0.00s) --- PASS: TestClient_getPrimaryURL/RUSTSEC (0.00s) --- PASS: TestClient_getPrimaryURL/GHSA (0.00s) --- PASS: TestClient_getPrimaryURL/Debian_temp_vulnerability (0.00s) --- PASS: TestClient_getPrimaryURL/npm (0.00s) --- PASS: TestClient_getPrimaryURL/suse (0.00s) === RUN TestClient_Filter === RUN TestClient_Filter/happy_path === RUN TestClient_Filter/happy_path_with_ignore-unfixed === RUN TestClient_Filter/happy_path_with_ignore-file === RUN TestClient_Filter/happy_path_with_a_policy_file === RUN TestClient_Filter/happy_path_with_duplicates,_one_with_empty_fixed_version --- PASS: TestClient_Filter (0.00s) --- PASS: TestClient_Filter/happy_path (0.00s) --- PASS: TestClient_Filter/happy_path_with_ignore-unfixed (0.00s) --- PASS: TestClient_Filter/happy_path_with_ignore-file (0.00s) --- PASS: TestClient_Filter/happy_path_with_a_policy_file (0.00s) --- PASS: TestClient_Filter/happy_path_with_duplicates,_one_with_empty_fixed_version (0.00s) PASS coverage: 83.7% of statements ok github.com/aquasecurity/trivy/pkg/result 0.039s coverage: 83.7% of statements === RUN TestConvertToRpcPkgs === RUN TestConvertToRpcPkgs/happy_path --- PASS: TestConvertToRpcPkgs (0.00s) --- PASS: TestConvertToRpcPkgs/happy_path (0.00s) === RUN TestConvertFromRpcPkgs === RUN TestConvertFromRpcPkgs/#00 --- PASS: TestConvertFromRpcPkgs (0.00s) --- PASS: TestConvertFromRpcPkgs/#00 (0.00s) === RUN TestConvertFromRpcLibraries === RUN TestConvertFromRpcLibraries/happy_path --- PASS: TestConvertFromRpcLibraries (0.00s) --- PASS: TestConvertFromRpcLibraries/happy_path (0.00s) === RUN TestConvertToRpcLibraries === RUN TestConvertToRpcLibraries/happy_path --- PASS: TestConvertToRpcLibraries (0.00s) --- PASS: TestConvertToRpcLibraries/happy_path (0.00s) === RUN TestConvertToRpcVulns === RUN TestConvertToRpcVulns/happy_path === RUN TestConvertToRpcVulns/invalid_severity 2021-10-16T19:29:09.377Z WARN unknown severity: INVALID --- PASS: TestConvertToRpcVulns (0.00s) --- PASS: TestConvertToRpcVulns/happy_path (0.00s) --- PASS: TestConvertToRpcVulns/invalid_severity (0.00s) === RUN TestConvertFromRPCResults === RUN TestConvertFromRPCResults/happy_path === RUN TestConvertFromRPCResults/happy_path_-_with_nil_dates --- PASS: TestConvertFromRPCResults (0.00s) --- PASS: TestConvertFromRPCResults/happy_path (0.00s) --- PASS: TestConvertFromRPCResults/happy_path_-_with_nil_dates (0.00s) PASS coverage: 42.6% of statements ok github.com/aquasecurity/trivy/pkg/rpc 0.032s coverage: 42.6% of statements === RUN TestScanner_Scan === RUN TestScanner_Scan/happy_path === RUN TestScanner_Scan/sad_path:_Scan_returns_an_error --- PASS: TestScanner_Scan (0.00s) --- PASS: TestScanner_Scan/happy_path (0.00s) --- PASS: TestScanner_Scan/sad_path:_Scan_returns_an_error (0.00s) === RUN TestWithCustomHeaders 2021-10-16T19:29:09.377Z WARN twirp error setting headers: provided header cannot set Content-Type --- PASS: TestWithCustomHeaders (0.00s) PASS coverage: 93.8% of statements ok github.com/aquasecurity/trivy/pkg/rpc/client 0.030s coverage: 93.8% of statements === RUN Test_dbWorker_update === RUN Test_dbWorker_update/happy_path 2021-10-16T19:29:13.241Z INFO Updating DB... 2021-10-16T19:29:13.242Z INFO Suspending all requests during DB update 2021-10-16T19:29:13.242Z INFO Waiting for all requests to be processed before DB update... 2021-10-16T19:29:13.243Z INFO Reopening DB... listen_test.go:156: PASS: NeedsUpdate(string,bool,bool) listen_test.go:156: PASS: UpdateMetadata(string) listen_test.go:156: PASS: Download(string,string,bool) === RUN Test_dbWorker_update/not_update === RUN Test_dbWorker_update/NeedsUpdate_returns_an_error === RUN Test_dbWorker_update/Download_returns_an_error 2021-10-16T19:29:13.247Z INFO Updating DB... --- PASS: Test_dbWorker_update (0.01s) --- PASS: Test_dbWorker_update/happy_path (0.00s) --- PASS: Test_dbWorker_update/not_update (0.00s) --- PASS: Test_dbWorker_update/NeedsUpdate_returns_an_error (0.00s) --- PASS: Test_dbWorker_update/Download_returns_an_error (0.00s) === RUN Test_newServeMux === RUN Test_newServeMux/health_check === RUN Test_newServeMux/cache_endpoint === RUN Test_newServeMux/with_token === RUN Test_newServeMux/sad_path:_no_handler === RUN Test_newServeMux/sad_path:_invalid_token --- PASS: Test_newServeMux (0.02s) --- PASS: Test_newServeMux/health_check (0.00s) --- PASS: Test_newServeMux/cache_endpoint (0.00s) --- PASS: Test_newServeMux/with_token (0.00s) --- PASS: Test_newServeMux/sad_path:_no_handler (0.00s) --- PASS: Test_newServeMux/sad_path:_invalid_token (0.00s) === RUN TestScanServer_Scan === RUN TestScanServer_Scan/happy_path === RUN TestScanServer_Scan/sad_path:_Scan_returns_an_error --- PASS: TestScanServer_Scan (0.00s) --- PASS: TestScanServer_Scan/happy_path (0.00s) --- PASS: TestScanServer_Scan/sad_path:_Scan_returns_an_error (0.00s) === RUN TestCacheServer_PutArtifact === RUN TestCacheServer_PutArtifact/happy_path === RUN TestCacheServer_PutArtifact/sad_path === RUN TestCacheServer_PutArtifact/sad_path:_empty_image_info --- PASS: TestCacheServer_PutArtifact (0.00s) --- PASS: TestCacheServer_PutArtifact/happy_path (0.00s) --- PASS: TestCacheServer_PutArtifact/sad_path (0.00s) --- PASS: TestCacheServer_PutArtifact/sad_path:_empty_image_info (0.00s) === RUN TestCacheServer_PutBlob === RUN TestCacheServer_PutBlob/happy_path === RUN TestCacheServer_PutBlob/sad_path === RUN TestCacheServer_PutBlob/sad_path:_empty_layer_info --- PASS: TestCacheServer_PutBlob (0.00s) --- PASS: TestCacheServer_PutBlob/happy_path (0.00s) --- PASS: TestCacheServer_PutBlob/sad_path (0.00s) --- PASS: TestCacheServer_PutBlob/sad_path:_empty_layer_info (0.00s) === RUN TestCacheServer_MissingBlobs === RUN TestCacheServer_MissingBlobs/happy_path server_test.go:538: PASS: MissingBlobs(string,[]string) --- PASS: TestCacheServer_MissingBlobs (0.00s) --- PASS: TestCacheServer_MissingBlobs/happy_path (0.00s) PASS coverage: 73.1% of statements ok github.com/aquasecurity/trivy/pkg/rpc/server 0.217s coverage: 73.1% of statements === RUN TestScanner_ScanArtifact === RUN TestScanner_ScanArtifact/happy_path 2021-10-16T19:29:10.889Z WARN This OS version is no longer supported by the distribution: alpine 3.10 2021-10-16T19:29:10.890Z WARN The vulnerability detection may be insufficient because security updates are not provided === RUN TestScanner_ScanArtifact/sad_path:_AnalyzerAnalyze_returns_an_error === RUN TestScanner_ScanArtifact/sad_path:_Scan_returns_an_error --- PASS: TestScanner_ScanArtifact (0.00s) --- PASS: TestScanner_ScanArtifact/happy_path (0.00s) --- PASS: TestScanner_ScanArtifact/sad_path:_AnalyzerAnalyze_returns_an_error (0.00s) --- PASS: TestScanner_ScanArtifact/sad_path:_Scan_returns_an_error (0.00s) PASS coverage: 66.0% of statements ok github.com/aquasecurity/trivy/pkg/scanner 0.129s coverage: 66.0% of statements === RUN TestScanner_Scan === RUN TestScanner_Scan/happy_path 2021-10-16T19:29:11.866Z INFO Detected OS: alpine 2021-10-16T19:29:11.866Z INFO Number of language-specific files: 1 2021-10-16T19:29:11.866Z INFO Detecting bundler vulnerabilities... scan_test.go:941: PASS: ApplyLayers(string,[]string) scan_test.go:942: PASS: Detect(string,string,string,time.Time,[]types.Package) === RUN TestScanner_Scan/happy_path_with_list_all_packages 2021-10-16T19:29:11.869Z INFO Detected OS: alpine 2021-10-16T19:29:11.869Z INFO Number of language-specific files: 1 2021-10-16T19:29:11.869Z INFO Detecting bundler vulnerabilities... scan_test.go:941: PASS: ApplyLayers(string,[]string) scan_test.go:942: PASS: Detect(string,string,string,time.Time,[]types.Package) === RUN TestScanner_Scan/happy_path_with_empty_os 2021-10-16T19:29:11.872Z INFO Detected OS: 2021-10-16T19:29:11.872Z INFO Number of language-specific files: 1 2021-10-16T19:29:11.872Z INFO Detecting bundler vulnerabilities... scan_test.go:941: PASS: ApplyLayers(string,[]string) === RUN TestScanner_Scan/happy_path_with_no_package 2021-10-16T19:29:11.875Z WARN No OS package is detected. Make sure you haven't deleted any files that contain information about the installed packages. 2021-10-16T19:29:11.875Z WARN e.g. files under "/lib/apk/db/", "/var/lib/dpkg/" and "/var/lib/rpm" 2021-10-16T19:29:11.875Z INFO Detected OS: alpine 2021-10-16T19:29:11.875Z INFO Number of language-specific files: 1 2021-10-16T19:29:11.875Z INFO Detecting bundler vulnerabilities... scan_test.go:941: PASS: ApplyLayers(string,[]string) scan_test.go:942: PASS: Detect(string,string,string,time.Time,[]types.Package) === RUN TestScanner_Scan/happy_path_with_unsupported_os 2021-10-16T19:29:11.878Z INFO Detected OS: fedora 2021-10-16T19:29:11.878Z INFO Number of language-specific files: 1 2021-10-16T19:29:11.878Z INFO Detecting bundler vulnerabilities... scan_test.go:941: PASS: ApplyLayers(string,[]string) scan_test.go:942: PASS: Detect(string,string,string,time.Time,[]types.Package) === RUN TestScanner_Scan/happy_path_with_a_scratch_image 2021-10-16T19:29:11.881Z INFO Number of language-specific files: 0 scan_test.go:941: PASS: ApplyLayers(string,[]string) === RUN TestScanner_Scan/happy_path_with_only_library_detection 2021-10-16T19:29:11.883Z INFO Number of language-specific files: 2 2021-10-16T19:29:11.883Z INFO Detecting bundler vulnerabilities... 2021-10-16T19:29:11.884Z INFO Detecting composer vulnerabilities... scan_test.go:941: PASS: ApplyLayers(string,[]string) === RUN TestScanner_Scan/happy_path_with_misconfigurations 2021-10-16T19:29:11.888Z INFO Detected config files: 2 2021-10-16T19:29:11.888Z WARN severity must be [UNKNOWN LOW MEDIUM HIGH CRITICAL], but DUMMY scan_test.go:941: PASS: ApplyLayers(string,[]string) === RUN TestScanner_Scan/sad_path:_ApplyLayers_returns_an_error === RUN TestScanner_Scan/sad_path:_ospkgDetector.Detect_returns_an_error 2021-10-16T19:29:11.893Z INFO Detected OS: alpine === RUN TestScanner_Scan/sad_path:_library.Detect_returns_an_error 2021-10-16T19:29:11.895Z INFO Number of language-specific files: 1 2021-10-16T19:29:11.895Z INFO Detecting bundler vulnerabilities... --- PASS: TestScanner_Scan (0.04s) --- PASS: TestScanner_Scan/happy_path (0.01s) --- PASS: TestScanner_Scan/happy_path_with_list_all_packages (0.00s) --- PASS: TestScanner_Scan/happy_path_with_empty_os (0.00s) --- PASS: TestScanner_Scan/happy_path_with_no_package (0.00s) --- PASS: TestScanner_Scan/happy_path_with_unsupported_os (0.00s) --- PASS: TestScanner_Scan/happy_path_with_a_scratch_image (0.00s) --- PASS: TestScanner_Scan/happy_path_with_only_library_detection (0.00s) --- PASS: TestScanner_Scan/happy_path_with_misconfigurations (0.00s) --- PASS: TestScanner_Scan/sad_path:_ApplyLayers_returns_an_error (0.00s) --- PASS: TestScanner_Scan/sad_path:_ospkgDetector.Detect_returns_an_error (0.00s) --- PASS: TestScanner_Scan/sad_path:_library.Detect_returns_an_error (0.00s) PASS coverage: 84.3% of statements ok github.com/aquasecurity/trivy/pkg/scanner/local 0.057s coverage: 84.3% of statements === RUN TestFormatSrcVersion === RUN TestFormatSrcVersion/happy_path === RUN TestFormatSrcVersion/with_epoch --- PASS: TestFormatSrcVersion (0.00s) --- PASS: TestFormatSrcVersion/happy_path (0.00s) --- PASS: TestFormatSrcVersion/with_epoch (0.00s) === RUN TestFormatVersion === RUN TestFormatVersion/happy_path === RUN TestFormatVersion/with_epoch --- PASS: TestFormatVersion (0.00s) --- PASS: TestFormatVersion/happy_path (0.00s) --- PASS: TestFormatVersion/with_epoch (0.00s) PASS coverage: 100.0% of statements ok github.com/aquasecurity/trivy/pkg/scanner/utils 0.007s coverage: 100.0% of statements ? github.com/aquasecurity/trivy/pkg/types [no test files] === RUN TestFileWalk --- PASS: TestFileWalk (0.39s) === RUN TestFilterTargets === RUN TestFilterTargets/normal === RUN TestFilterTargets/other_directory_with_the_same_prefix --- PASS: TestFilterTargets (0.00s) --- PASS: TestFilterTargets/normal (0.00s) --- PASS: TestFilterTargets/other_directory_with_the_same_prefix (0.00s) === RUN TestCopyFile === RUN TestCopyFile/happy_path --- PASS: TestCopyFile (0.00s) --- PASS: TestCopyFile/happy_path (0.00s) PASS coverage: 65.5% of statements ok github.com/aquasecurity/trivy/pkg/utils 0.398s coverage: 65.5% of statements ? github.com/aquasecurity/trivy/rpc/cache [no test files] ? github.com/aquasecurity/trivy/rpc/common [no test files] ? github.com/aquasecurity/trivy/rpc/scanner [no test files] >>> trivy: Entering fakeroot... >>> trivy*: Running postcheck for trivy >>> trivy*: Preparing package trivy... >>> trivy*: Stripping binaries >>> trivy*: Scanning shared objects >>> trivy*: Tracing dependencies... so:libc.musl-x86.so.1 >>> trivy*: Package size: 37.5 MB >>> trivy*: Compressing data... >>> trivy*: Create checksum... >>> trivy*: Create trivy-0.20.1-r0.apk >>> trivy: Build complete at Sat, 16 Oct 2021 19:29:15 +0000 elapsed time 0h 1m 0s >>> trivy: Cleaning up srcdir >>> trivy: Cleaning up pkgdir >>> trivy: Uninstalling dependencies... (1/37) Purging util-linux-misc (2.37.2-r1) (2/37) Purging runuser (2.37.2-r1) (3/37) Purging hexdump (2.37.2-r1) (4/37) Purging uuidgen (2.37.2-r1) (5/37) Purging blkid (2.37.2-r1) (6/37) Purging sfdisk (2.37.2-r1) (7/37) Purging mcookie (2.37.2-r1) (8/37) Purging wipefs (2.37.2-r1) (9/37) Purging cfdisk (2.37.2-r1) (10/37) Purging flock (2.37.2-r1) (11/37) Purging lsblk (2.37.2-r1) (12/37) Purging setpriv (2.37.2-r1) (13/37) Purging logger (2.37.2-r1) (14/37) Purging partx (2.37.2-r1) (15/37) Purging findmnt (2.37.2-r1) (16/37) Purging .makedepends-trivy (20211016.192816) (17/37) Purging btrfs-progs-dev (5.14.2-r0) (18/37) Purging btrfs-progs-libs (5.14.2-r0) (19/37) Purging go (1.17.1-r0) (20/37) Purging lvm2-dev (2.02.187-r1) (21/37) Purging linux-headers (5.10.41-r0) (22/37) Purging lvm2-libs (2.02.187-r1) (23/37) Purging util-linux-openrc (2.37.2-r1) (24/37) Purging util-linux-dev (2.37.2-r1) (25/37) Purging util-linux (2.37.2-r1) (26/37) Purging libfdisk (2.37.2-r1) (27/37) Purging libmount (2.37.2-r1) (28/37) Purging libsmartcols (2.37.2-r1) (29/37) Purging libuuid (2.37.2-r1) (30/37) Purging libblkid (2.37.2-r1) (31/37) Purging eudev-libs (3.2.10-r1) (32/37) Purging device-mapper-event-libs (2.02.187-r1) (33/37) Purging device-mapper-libs (2.02.187-r1) (34/37) Purging libaio (0.3.112-r1) (35/37) Purging libeconf (0.4.1-r0) (36/37) Purging linux-pam (1.5.2-r0) (37/37) Purging libcap-ng (0.8.2-r0) Executing busybox-1.34.1-r1.trigger OK: 321 MiB in 100 packages >>> trivy: Updating the testing/x86 repository index... >>> trivy: Signing the index...