When I run the API tests I see the responses from the individual tests. Why this might be useful for debugging it is a lot of noise if you just want to see the test results.
$ jasmine-node api/1704E468-cve-scoring.spec.js --config targetURL https://recommender.api.openshift.io/api/v1/
......{ result:
{ data:
[ { package:
{ ecosystem: [ �[32m'maven'�[39m ],
gh_forks: [ �[33m-1�[39m ],
gh_issues_last_month_closed: [ �[33m-1�[39m ],
gh_issues_last_month_opened: [ �[33m-1�[39m ],
gh_issues_last_year_closed: [ �[33m-1�[39m ],
gh_issues_last_year_opened: [ �[33m-1�[39m ],
gh_prs_last_month_closed: [ �[33m-1�[39m ],
gh_prs_last_month_opened: [ �[33m-1�[39m ],
gh_prs_last_year_closed: [ �[33m-1�[39m ],
gh_prs_last_year_opened: [ �[33m-1�[39m ],
gh_stargazers: [ �[33m-1�[39m ],
last_updated: [ �[33m1496417783.87�[39m ],
latest_version: [ �[32m'20040616'�[39m ],
name: [ �[32m'commons-collections:commons-collections'�[39m ],
package_dependents_count: [ �[33m-1�[39m ],
package_relative_used: [ �[32m'not used'�[39m ],
tokens: [ �[32m'collections'�[39m, �[32m'commons'�[39m ],
vertex_label: [ �[32m'Package'�[39m ] },
version:
{ cm_avg_cyclomatic_complexity: [ �[33m-1�[39m ],
cm_loc: [ �[33m64414�[39m ],
cm_num_files: [ �[33m286�[39m ],
cve_ids: [ �[32m'CVE-2015-6420:7.5'�[39m ],
dependents_count: [ �[33m-1�[39m ],
description: [ �[32m'types that extend and augment the java collections framework'�[39m ],
last_updated: [ �[33m1493052149.69�[39m ],
licenses: [ �[32m'ASL 2.0'�[39m ],
pecosystem: [ �[32m'maven'�[39m ],
pname: [ �[32m'commons-collections:commons-collections'�[39m ],
relative_used: [ �[32m''�[39m ],
shipped_as_downstream: [ �[33mtrue�[39m ],
version: [ �[32m'3.2.1'�[39m ],
vertex_label: [ �[32m'Version'�[39m ] } } ],
recommendation: { �[32m'component-analyses'�[39m: { cve: [ { cvss: �[33m7.5�[39m, id: �[32m'CVE-2015-6420'�[39m } ] } } },
schema:
{ name: �[32m'analyses_graphdb'�[39m,
url: �[32m'http://recommender.api.openshift.io/api/v1/schemas/api/analyses_graphdb/1-2-0/'�[39m,
version: �[32m'1-2-0'�[39m } }
.{ result:
{ data:
[ { package:
{ ecosystem: [ �[32m'maven'�[39m ],
gh_forks: [ �[33m-1�[39m ],
gh_issues_last_month_closed: [ �[33m-1�[39m ],
gh_issues_last_month_opened: [ �[33m-1�[39m ],
gh_issues_last_year_closed: [ �[33m-1�[39m ],
gh_issues_last_year_opened: [ �[33m-1�[39m ],
gh_prs_last_month_closed: [ �[33m-1�[39m ],
gh_prs_last_month_opened: [ �[33m-1�[39m ],
gh_prs_last_year_closed: [ �[33m-1�[39m ],
gh_prs_last_year_opened: [ �[33m-1�[39m ],
gh_stargazers: [ �[33m-1�[39m ],
last_updated: [ �[33m1493054564.43�[39m ],
latest_version: [ �[32m'1.3.2'�[39m ],
name: [ �[32m'commons-fileupload:commons-fileupload'�[39m ],
package_dependents_count: [ �[33m-1�[39m ],
package_relative_used: [ �[32m'not used'�[39m ],
tokens: [ �[32m'commons'�[39m, �[32m'fileupload'�[39m ],
vertex_label: [ �[32m'Package'�[39m ] },
version:
{ cm_avg_cyclomatic_complexity: [ �[33m-1�[39m ],
cm_loc: [ �[33m7149�[39m ],
cm_num_files: [ �[33m39�[39m ],
cve_ids: [ �[32m'CVE-2016-1000031:7.5'�[39m, �[32m'CVE-2016-3092:7.8'�[39m ],
dependents_count: [ �[33m-1�[39m ],
description: [ �[32m'the apache commons fileupload component provides a simple yet flexible means of adding support for multipart file upload functionality to servlets and web applications'�[39m ],
last_updated: [ �[33m1492821853.72�[39m ],
licenses: [ �[32m'ASL 2.0'�[39m ],
pecosystem: [ �[32m'maven'�[39m ],
pname: [ �[32m'commons-fileupload:commons-fileupload'�[39m ],
relative_used: [ �[32m''�[39m ],
shipped_as_downstream: [ �[33mfalse�[39m ],
version: [ �[32m'1.3.1'�[39m ],
vertex_label: [ �[32m'Version'�[39m ] } } ],
recommendation:
{ change_to: �[32m'1.3.2'�[39m,
�[32m'component-analyses'�[39m:
{ cve:
[ { cvss: �[33m7.5�[39m, id: �[32m'CVE-2016-1000031'�[39m },
{ cvss: �[33m7.8�[39m, id: �[32m'CVE-2016-3092'�[39m } ] },
message: �[32m'CVE/s found for Package - commons-fileupload:commons-fileupload, Version - 1.3.1\nCVE-2016-1000031, CVE-2016-3092 with a max cvss score of - 7.8\n It is recommended to use Version - 1.3.2\n It is recommended to use Version - 1.3.2\n It is recommended to use Version - 1.3.2\n It is recommended to use Version - 1.3.2\n It is recommended to use Version - 1.3.2\n It is recommended to use Version - 1.3.2'�[39m } },
schema:
{ name: �[32m'analyses_graphdb'�[39m,
url: �[32m'http://recommender.api.openshift.io/api/v1/schemas/api/analyses_graphdb/1-2-0/'�[39m,
version: �[32m'1-2-0'�[39m } }
.{ result:
{ data:
[ { package:
{ ecosystem: [ �[32m'maven'�[39m ],
gh_forks: [ �[33m-1�[39m ],
gh_issues_last_month_closed: [ �[33m-1�[39m ],
gh_issues_last_month_opened: [ �[33m-1�[39m ],
gh_issues_last_year_closed: [ �[33m-1�[39m ],
gh_issues_last_year_opened: [ �[33m-1�[39m ],
gh_prs_last_month_closed: [ �[33m-1�[39m ],
gh_prs_last_month_opened: [ �[33m-1�[39m ],
gh_prs_last_year_closed: [ �[33m-1�[39m ],
gh_prs_last_year_opened: [ �[33m-1�[39m ],
gh_stargazers: [ �[33m-1�[39m ],
last_updated: [ �[33m1497540953.71�[39m ],
latest_version: [ �[32m'2.0.5'�[39m ],
name: [ �[32m'org.apache.pdfbox:pdfbox'�[39m ],
package_dependents_count: [ �[33m-1�[39m ],
package_relative_used: [ �[32m'not used'�[39m ],
tokens: [ �[32m'apache'�[39m, �[32m'org'�[39m, �[32m'pdfbox'�[39m ],
vertex_label: [ �[32m'Package'�[39m ] },
version:
{ cm_avg_cyclomatic_complexity: [ �[33m-1�[39m ],
cm_loc: [ �[33m127509�[39m ],
cm_num_files: [ �[33m593�[39m ],
cve_ids: [ �[32m'CVE-2016-2175:7.5'�[39m ],
dependents_count: [ �[33m-1�[39m ],
description: [ �[32m'the apache pdfbox library is an open source java tool for working with pdf documents'�[39m ],
last_updated: [ �[33m1492825323.68�[39m ],
licenses: [ �[32m'APAFML'�[39m, �[32m'ASL 2.0'�[39m, �[32m'BSD'�[39m ],
pecosystem: [ �[32m'maven'�[39m ],
pname: [ �[32m'org.apache.pdfbox:pdfbox'�[39m ],
relative_used: [ �[32m''�[39m ],
shipped_as_downstream: [ �[33mfalse�[39m ],
version: [ �[32m'1.8.11'�[39m ],
vertex_label: [ �[32m'Version'�[39m ] } } ],
recommendation: { �[32m'component-analyses'�[39m: { cve: [ { cvss: �[33m7.5�[39m, id: �[32m'CVE-2016-2175'�[39m } ] } } },
schema:
{ name: �[32m'analyses_graphdb'�[39m,
url: �[32m'http://recommender.api.openshift.io/api/v1/schemas/api/analyses_graphdb/1-2-0/'�[39m,
version: �[32m'1-2-0'�[39m } }
.{ result:
{ data:
[ { package:
{ ecosystem: [ �[32m'maven'�[39m ],
gh_forks: [ �[33m1112�[39m ],
gh_issues_last_month_closed: [ �[33m22�[39m ],
gh_issues_last_month_opened: [ �[33m27�[39m ],
gh_issues_last_year_closed: [ �[33m231�[39m ],
gh_issues_last_year_opened: [ �[33m290�[39m ],
gh_prs_last_month_closed: [ �[33m32�[39m ],
gh_prs_last_month_opened: [ �[33m38�[39m ],
gh_prs_last_year_closed: [ �[33m260�[39m ],
gh_prs_last_year_opened: [ �[33m268�[39m ],
gh_stargazers: [ �[33m-1�[39m ],
last_updated: [ �[33m1498245532.97�[39m ],
latest_version: [ �[32m'3.4.1'�[39m ],
name: [ �[32m'io.vertx:vertx-core'�[39m ],
package_dependents_count: [ �[33m-1�[39m ],
package_relative_used: [ �[32m'not used'�[39m ],
tokens: [ �[32m'core'�[39m, �[32m'io'�[39m, �[32m'vertx'�[39m ],
vertex_label: [ �[32m'Package'�[39m ] },
version:
{ cm_avg_cyclomatic_complexity: [ �[33m1.34�[39m ],
cm_loc: [ �[33m80586�[39m ],
cm_num_files: [ �[33m441�[39m ],
dependents_count: [ �[33m-1�[39m ],
description: [ �[32m'sonatype helps open source projects to set up maven repositories on httpsosssonatypeorg'�[39m ],
last_updated: [ �[33m1498245532.97�[39m ],
licenses: [ �[32m'Apache 2.0'�[39m, �[32m'EPL 1.0'�[39m, �[32m'MIT License'�[39m ],
pecosystem: [ �[32m'maven'�[39m ],
pname: [ �[32m'io.vertx:vertx-core'�[39m ],
relative_used: [ �[32m''�[39m ],
shipped_as_downstream: [ �[33mfalse�[39m ],
version: [ �[32m'3.4.1'�[39m ],
vertex_label: [ �[32m'Version'�[39m ] } } ],
recommendation: {} },
schema:
{ name: �[32m'analyses_graphdb'�[39m,
url: �[32m'http://recommender.api.openshift.io/api/v1/schemas/api/analyses_graphdb/1-2-0/'�[39m,
version: �[32m'1-2-0'�[39m } }
.{ result:
{ data:
[ { package:
{ ecosystem: [ �[32m'maven'�[39m ],
gh_forks: [ �[33m-1�[39m ],
gh_issues_last_month_closed: [ �[33m-1�[39m ],
gh_issues_last_month_opened: [ �[33m-1�[39m ],
gh_issues_last_year_closed: [ �[33m-1�[39m ],
gh_issues_last_year_opened: [ �[33m-1�[39m ],
gh_prs_last_month_closed: [ �[33m-1�[39m ],
gh_prs_last_month_opened: [ �[33m-1�[39m ],
gh_prs_last_year_closed: [ �[33m-1�[39m ],
gh_prs_last_year_opened: [ �[33m-1�[39m ],
gh_stargazers: [ �[33m-1�[39m ],
last_updated: [ �[33m1498245621.73�[39m ],
latest_version: [ �[32m'3.4.1'�[39m ],
name: [ �[32m'io.vertx:vertx-web'�[39m ],
package_dependents_count: [ �[33m-1�[39m ],
package_relative_used: [ �[32m'not used'�[39m ],
tokens: [ �[32m'io'�[39m, �[32m'vertx'�[39m, �[32m'web'�[39m ],
vertex_label: [ �[32m'Package'�[39m ] },
version:
{ cm_avg_cyclomatic_complexity: [ �[33m1.22�[39m ],
cm_loc: [ �[33m37699�[39m ],
cm_num_files: [ �[33m239�[39m ],
dependents_count: [ �[33m-1�[39m ],
description: [ �[32m'sonatype helps open source projects to set up maven repositories on httpsosssonatypeorg'�[39m ],
last_updated: [ �[33m1498245621.73�[39m ],
licenses: [ �[32m'Apache 2.0'�[39m, �[32m'EPL 1.0'�[39m ],
pecosystem: [ �[32m'maven'�[39m ],
pname: [ �[32m'io.vertx:vertx-web'�[39m ],
shipped_as_downstream: [ �[33mfalse�[39m ],
version: [ �[32m'3.4.1'�[39m ],
vertex_label: [ �[32m'Version'�[39m ] } } ],
recommendation: {} },
schema:
{ name: �[32m'analyses_graphdb'�[39m,
url: �[32m'http://recommender.api.openshift.io/api/v1/schemas/api/analyses_graphdb/1-2-0/'�[39m,
version: �[32m'1-2-0'�[39m } }
.{ result:
{ data:
[ { package:
{ ecosystem: [ �[32m'maven'�[39m ],
gh_forks: [ �[33m9704�[39m ],
gh_issues_last_month_closed: [ �[33m0�[39m ],
gh_issues_last_month_opened: [ �[33m0�[39m ],
gh_issues_last_year_closed: [ �[33m0�[39m ],
gh_issues_last_year_opened: [ �[33m0�[39m ],
gh_prs_last_month_closed: [ �[33m33�[39m ],
gh_prs_last_month_opened: [ �[33m34�[39m ],
gh_prs_last_year_closed: [ �[33m327�[39m ],
gh_prs_last_year_opened: [ �[33m358�[39m ],
gh_stargazers: [ �[33m-1�[39m ],
last_updated: [ �[33m1498245706.49�[39m ],
latest_version: [ �[32m'4.3.7.RELEASE'�[39m ],
name: [ �[32m'org.springframework:spring-core'�[39m ],
package_dependents_count: [ �[33m-1�[39m ],
package_relative_used: [ �[32m'not used'�[39m ],
tokens: [ �[32m'core'�[39m, �[32m'org'�[39m, �[32m'springframework'�[39m, �[32m'spring'�[39m ],
vertex_label: [ �[32m'Package'�[39m ] },
version:
{ cm_avg_cyclomatic_complexity: [ �[33m-1�[39m ],
cm_loc: [ �[33m69221�[39m ],
cm_num_files: [ �[33m376�[39m ],
dependents_count: [ �[33m-1�[39m ],
description: [ �[32m'spring core'�[39m ],
last_updated: [ �[33m1492815354.51�[39m ],
licenses: [ �[32m'ASL 2.0'�[39m, �[32m'LBNL BSD'�[39m ],
pecosystem: [ �[32m'maven'�[39m ],
pname: [ �[32m'org.springframework:spring-core'�[39m ],
relative_used: [ �[32m''�[39m ],
shipped_as_downstream: [ �[33mfalse�[39m ],
version: [ �[32m'4.3.3.RELEASE'�[39m ],
vertex_label: [ �[32m'Version'�[39m ] } } ],
recommendation: {} },
schema:
{ name: �[32m'analyses_graphdb'�[39m,
url: �[32m'http://recommender.api.openshift.io/api/v1/schemas/api/analyses_graphdb/1-2-0/'�[39m,
version: �[32m'1-2-0'�[39m } }
F
Failures:
1) Frisby Test: Connecting to REST API - endpoint :: https://recommender.api.openshift.io/api/v1/maven/org.springframework:spring-core/4.3.3.RELEASE
[ GET https://recommender.api.openshift.io/api/v1/component-analyses/maven/org.springframework:spring-core/4.3.3.RELEASE ]
Message:
Expected [ 'ASL 2.0', 'LBNL BSD' ] to contain 'Apache 2.0'.
Stacktrace:
Error: Expected [ 'ASL 2.0', 'LBNL BSD' ] to contain 'Apache 2.0'.
at Frisby.<anonymous> (/Users/mdl/workspace/git-hub-lib/redhat/fabric8-test/analytics_EE_tests/api/1704E468-cve-scoring.spec.js:89:58)
at Frisby.<anonymous> (/Users/mdl/workspace/git-hub-lib/redhat/fabric8-test/analytics_EE_tests/node_modules/frisby/lib/frisby.js:951:8)
at jasmine.Spec.<anonymous> (/Users/mdl/workspace/git-hub-lib/redhat/fabric8-test/analytics_EE_tests/node_modules/frisby/lib/frisby.js:1112:18)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
Finished in 3.543 seconds
12 tests, 17 assertions, 1 failure, 0 skipped