summaryrefslogtreecommitdiff
path: root/spec/integration
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-17 17:19:34 -0600
committermo khan <mo.khan@gmail.com>2020-03-17 17:19:34 -0600
commit369a5b949cfbe091422c291322a4103ee0898151 (patch)
tree93fcb5e5b3ed0f31525c3f81fbc3ca39eb14e5d8 /spec/integration
parent4bdf75794919001453102d9ccfcd8ceb19946f58 (diff)
Add extension point to specify different formats of the report
Diffstat (limited to 'spec/integration')
-rw-r--r--spec/integration/cli/scan_spec.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/integration/cli/scan_spec.rb b/spec/integration/cli/scan_spec.rb
index 00a04cb..b9b548e 100644
--- a/spec/integration/cli/scan_spec.rb
+++ b/spec/integration/cli/scan_spec.rb
@@ -13,6 +13,8 @@ RSpec.describe '`spandx scan` command', type: :cli do
-a, [--airgap], [--no-airgap] # Disable network connections
-l, [--logfile=LOGFILE] # Path to a logfile
# Default: /dev/null
+ -f, [--format=FORMAT] # Format of report
+ # Default: json
Scan a lockfile and list dependencies/licenses
OUT
@@ -26,7 +28,7 @@ RSpec.describe '`spandx scan` command', type: :cli do
expected_output = <<~OUT
{
"version": "1.0",
- "packages": [
+ "dependencies": [
{
"name": "net-hippie",
"version": "0.2.7",
@@ -46,7 +48,7 @@ RSpec.describe '`spandx scan` command', type: :cli do
expected_output = <<~OUT
{
"version": "1.0",
- "packages": [
+ "dependencies": [
{
"name": "net-hippie",
"version": "0.2.7",
@@ -66,7 +68,7 @@ RSpec.describe '`spandx scan` command', type: :cli do
expected_output = <<~OUT
{
"version": "1.0",
- "packages": [
+ "dependencies": [
{
"name": "six",
"version": "1.13.0",